I'm getting "No Data was returned" when I do a dump from the WebCoRE Storage app. I've found this discussion about setup and that's what I've done but it hasn't helped me. What am I missing?
Not a specific answer, but I use the API weather.gov
How does that work? It is not one of the options in WebCoRE setup.
Use the instructions at the site above to determine your weather location. Sometimes, you will get a Status Code of 500 (Server Error). Thus the loop in my TEST piston below. You will have to query again to get a Status Code of 200 (successful).
Very cool. Thanks for sharing!
Focusing on OpenWeatherMap now because Weatherstack (apiXU) only allows 1000 free calls per month (~1/hr).
I'm getting the "OpenWeatherMap http Response Status: 401 error Message: Unauthorized" errors every 30 minutes.
I have checked that my lat and long and apikey work by doing an API call directly from my browser as described at Current weather data - OpenWeatherMap
I've looked at the WebCoRE Storage source code at the URL it uses is https://api.openweathermap.org/data/2.5/onecall... maybe this still works for paid accounts but it does not work for free accounts. Something like https://api.openweathermap.org/data/2.5/weather... will work. I'm working on modifying the the WebCoRE Storage source code to adjust this but am dealing with a learning curve.
I was able to fix this by making a minor adjustment to line 212 of the WebCoRE Storage source code.
myUri = 'https://api.openweathermap.org/data/2.5/onecall?lat=' + myZip + '&lon=' + myZip1 + '&exclude=minutely&mode=json&units=imperial&appid=' + myKey
myUri = 'https://api.openweathermap.org/data/2.5/weather?lat=' + myZip + '&lon=' + myZip1 + '&exclude=minutely&mode=json&units=imperial&appid=' + myKey
I'm having issue's with WC weather also. Can't get a dump (which I use for illuminance).
I made the change to line 212 of the storage app as @user2232 suggested, still doesn't work.
Any other suggestions? I have several RM Rules that use illuminance factor for lighting.
Have a look at your hub logs. There may be an HTTP error recorded that will give you a clue as to what's going on.
Also, I don't recall seeing illuminance as part of the OpenWeather data.
So webCoRE is using the one call api (to reduce total number of alls and provide more data).