Pebble timeline app showing random daily fortunes. Extremely minimal app (python, js, c) to help beginners.
Based off of the Daily Fortune app for Timeline in the Pebble appstore (removed universal timezone support to simplify example)
https://apps.getpebble.com/applications/55af2f53ac7b440eed000038
- pypebbleapi for timeline pins with subscription ** fortune_timeline.py = 21 lines of code
- pebble javascript subscribing user to fortune timeline topic ** pebble-js-app.js = 9 lines of code
- minimal required c application running on watch ** fortune_timeline.c = 5 lines of code
Original Daily Fortune Timeline Server was hosted using the free pythonanywhere.com As it has almost no setup overhead
- create free account
- upload python file (or edit using their browser-based text editor)
- enter time to schedule python code to run on the server (or click run button to test)
Additionally this example includes a python3 supported version of fortune.py, based off the command-line fortune app, providing fortunes and quotes from fortune files. fortune.py