I am trying to write an app to fetch data from a website, but I was reading on here that the watch does not have its own WiFi (obviously), but Gadgetbridge does not like to have internet functionality for privacy reasons. Is there any way for me to fetch information from a URL? For reference, I'm trying to get the data from this link here:
It returns JSON already, so easy to manage. I tried uploading the code to the IDE, but it doesn't recognize fetch which may be because of the aforementioned lack of internet functionality. Does anyone know if I'm wrong, or if it's possible another way?
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.
I am trying to write an app to fetch data from a website, but I was reading on here that the watch does not have its own WiFi (obviously), but Gadgetbridge does not like to have internet functionality for privacy reasons. Is there any way for me to fetch information from a URL? For reference, I'm trying to get the data from this link here:
https://labs.waterdata.usgs.gov/sta/v1.1/Things('USGS-09380000')/Datastreams?$expand=Observations($orderby=phenomenonTime%20desc;$top=1;$select=result)&$select=unitOfMeasurement,description
It returns JSON already, so easy to manage. I tried uploading the code to the IDE, but it doesn't recognize fetch which may be because of the aforementioned lack of internet functionality. Does anyone know if I'm wrong, or if it's possible another way?