Small flow to extract mobile-alerts sensor data from the Web page http://measurements.mobile-alerts.eu/ using css selectors and store it into a JSON that can be handled by Node RED to ease integration into an IoT solution. Implementation currently covers time, temperature and humidity. It can easily be extended to cover other sensor types by modifying the "Build climate json from array" Node.
Necessary customizations:
- In the "get Website HTML" Node replace xxxxxxxxxx in the URL with your Phone ID from the Mobile-Alerts App
- In the "Build climate json from array" Node set the tag variable to your sensor name
- if your language is not German, you need to modify the tag variables to the keywords in your language as well
Results for the sensor defined in "tag" are stored in msg.payload: msg.payload.name, msg.payload.time, msg.payload.temperature, msg.payload.humidity
The flow works as of 2017-07-20. In case the Web site is changed it probably needs to be adapted.
Hello, I have followed all the steps you mentioned but I get an empty message each time.
I don't know where the problem is.