-
After getting the bangle 2, I realised I like this event-based loop more than arduino coding style, so I took a bit of yesterday afternoon to reprogram my home environment monitors to be espurinos.
Hardware-wise 8266 + dht22 + cheap screen.
I'm on the wrong pc right now, I'll copy-paste the code I threw on them, it's about 3 tutorials sewn together.
They were sending mqtt to an internal mosquitto server, but it kept falling over and it's a pain to unplug all 3 to fix them wired in. Now the node-red box queries them with the super tiny webserver the espurino can hold. Bonus - I can reprogram them over the air, at least when I'm at the right computer.
-
-
-
-
Hiya, in the last few days alerts have not appeared on my bangle2, and my (android) phone tells me the gadgetbridge app/plugin isn't on the watch.
I was running the android app on the watch, successfully, until the last couple of days.
For now I've 'fixed' it by shifting back to the gadgetbridge app.
Have I messed up a setting, need to update something, or missed something easy?
-
I've tweaked the example first app for something else that I wanted/needed - a 3 minute timer for my rest periods in the gym. Except I did it in binary for nerd cred and a random FB chat I was involved in.
JS file attached, MIT licence as usual.
- I think I've not got the button-press for reset registered entirely correctly, but putting that line anywhere else in the code made it not reset on countdown & out of time
- next step would be throwing the reset time into the settings app - can anyone point me at the documentation for hooking up with settings? I'm failing at site navigtion.
- I think I've not got the button-press for reset registered entirely correctly, but putting that line anywhere else in the code made it not reset on countdown & out of time
-
-
-
Hi Board,
I forked the forked cli-clock from the app page - https://github.com/espruino/BangleApps/tree/master/apps/cliclockJS2Enhanced
Except I didn't actually fork it, because the relevant git repo is the whole app site. For the avoidance of doubt, my changes are MIT licence.
1: Is there a sensible way to clone a single app, or a sensible way to clone the whole app repo and put it sensibly in the projects folder?
I had a few false starts importing the suncalc code from elsewhere - it looks like the IDE grabbed a copy of the code and my watch doesn't need access to the internet to run this, that took a little bit of thought.
I've added two more lines - sunrise and sunset in local time. I get the winter blues, it helps me not get shocked that it's dark at 5pm.
2: Does anyone know a sensible icon for sunrise/sunset that I can pass into the writeLine function, or is my best bet hacking together a vector/bitmap and telling the writeline to leave space for the image?
Next steps are to grab location from the GPS rather than hardcoding my city. I'll be back when I get the hang of it and get a bit more free time.
I might try turning this into a full-blown tutorial for the pages, but in case that never gets started, here's the code I've copy-pasted together:
My node.red asks http://esp_hostname.local for the page, and parses it as csv.