Every 15 minutes it'll fetch the webpage given and set your phone's Bluetooth advertising to Espruino's 0x0590 manufacturer data with the value from the RegEx's first match group.
By default it'll show you roughly how many people have been rickrolled to date.
Not quite what @epw needs but hopefully it's a good start, and makes it super easy for everyone else to script common tasks (eg grab data from a website, get it on your wrist). Hopefully it's pretty energy efficient too.
It's just a shame the Android API appears to stop an app from executing background tasks more often than every 15 minutes
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
App is here: https://github.com/espruino/AndroidBLEAdvertiser
Every 15 minutes it'll fetch the webpage given and set your phone's Bluetooth advertising to Espruino's 0x0590 manufacturer data with the value from the RegEx's first match group.
By default it'll show you roughly how many people have been rickrolled to date.
Not quite what @epw needs but hopefully it's a good start, and makes it super easy for everyone else to script common tasks (eg grab data from a website, get it on your wrist). Hopefully it's pretty energy efficient too.
It's just a shame the Android API appears to stop an app from executing background tasks more often than every 15 minutes