Closed holgerpieta closed 3 years ago
This has been included for compatibility with the more popular (because global) openweathermap node. Please see: https://github.com/node-red/node-red-web-nodes/blob/master/openweathermap/weather.js Would it help your use case to have an option in the settings to avoid this emit on deploy?
Hm, interesting. I still think that's kind of an unexpected non-standard behavior, at least I haven't encountered any other node that does this. But anyway, yes, having an option to switch that off would help.
The last lines in the code will cause an unrequested message to be emitted.
I don't think that's expected node-red behavior. At least no other node I encountered did this. Also, in my case it caused problems, because I request weather data for a variable time in the future and the unrequested message fetches the forecast for a wrong time.