Giter VIP home page Giter VIP logo

fitbit-wikipedia's Introduction

Fitbit Wikipedia

Fitbit Wikipedia is a small app for your fitbit device to retrieve articles close to your current location. It fetches the 5 closest articles and puts their title and extract to the watch. You can scroll through the articles by swiping left and right.

image image

Furthermore you can change the language of the articles in the settings on your phone. You can install the app directly from the store: https://gallery.fitbit.com/details/58693936-da0b-4d6a-8d59-dc6b3f6d1fff

Known limitations

This is the first version of this application and it comes with some shortcomings:

  • If the title is too long it exceeds the screen size. I didn't find a good way yet as only a limited version of CSS is available
  • The wikipedia API is requested with a parameter to limit the amount of sentences. The sentence parsing is not very advanced though and labels everything ended by a dot as a sentence. Also if it's semantically not a sentence, but. e.g. part of a date (01.01.2020). This can lead to interesting texts displayed. For now I'm not sure yet how to deal with that as I have to limit the content somehow due to a limited message size between watch and companion app.

Also make sure that the fitbit app has access to your location - even if it runs in the background. On Android: Applications -> Fitbit -> Permissions -> Location -> Always allowed

Building

In order to build the app locally you need to install the NPM dependencies:

npm install

Build the app:

npx fitbit-build

Install it:

npx fitbit
install

To be able to install the app you can either use the Fitbit OS Simulator or your own phone and fitbit device.

Read more about it here:
https://dev.fitbit.com/getting-started/

More info about the building process can be found at:
https://dev.fitbit.com/build/guides/command-line-interface/

Resources

Everything related to developing for fitbit devices can be found here:
https://dev.fitbit.com/

And everything about the Wikipedia API here:
https://www.mediawiki.org/wiki/API:Main_page

Disclaimer

I tested the application in the simulator for all devices, but only own a real Versa 2 device. I can't guarantee it looks well on other devices.

Also I'm actually a python backend developer and consequently my JS and making things look nice experience is very limited.

License

Logo is taken from:
https://de.wikipedia.org/wiki/Datei:Wikipedia_svg_logo.svg.

Logo and brand "Wikipedia" are protected with the creative commons license:
https://creativecommons.org/licenses/by/2.0/

fitbit-wikipedia's People

Contributors

eaccmk avatar saskiakeil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fitbit-wikipedia's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.