Ahh - I'd ignore the fact it says android.calendar.json and just write into it with the data yourself. We can always rename the file later.
android.calendar.json
The main weather library is at https://github.com/espruino/BangleApps/blob/master/apps/weather/lib.js and reads from weather.json. I believe the rough format is in https://www.espruino.com/Gadgetbridge if you search for weather there:
weather.json
weather
temp,hi,lo,hum,rain,uv,code,txt,wind,wdir,loc - weather report (current temp, days highest temp, days lowest temp, current humidity, rain/precip probability, UV Index, current condition code, current condition text, wind speed, wind direction)
temp,hi,lo,hum,rain,uv,code,txt,wind,wdir,loc
Sorry it's not better documented though - you can see roughly what form the data takes at https://github.com/espruino/BangleApps/blob/master/apps/weather/clkinfo.js
@Gordon started
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.
Ahh - I'd ignore the fact it says
android.calendar.json
and just write into it with the data yourself. We can always rename the file later.The main weather library is at https://github.com/espruino/BangleApps/blob/master/apps/weather/lib.js and reads from
weather.json
. I believe the rough format is in https://www.espruino.com/Gadgetbridge if you search forweather
there:Sorry it's not better documented though - you can see roughly what form the data takes at https://github.com/espruino/BangleApps/blob/master/apps/weather/clkinfo.js