Dear all,
I've tried to make an HTTP Device in the smarthome UI that allows me to get the wind speed in my city. (see attached picture).
I use this in the "URL to get value" field : http://api.wunderground.com/api/myapike ... ype:1/.xml
As you can see I use wunderground.com and I have checked that my api key is working fine (key not shown here).
I use in the "Inline Javascript to parse incoming data to number" field, this :
{var wind = parseFloat($.findOne('/response/current_observation/wind_kph/text()')); return wind;}
I'm an absolute newbie in coding in javascript and in smarthome, may be my error is obvious ...
Whatever, please let me know!
httpdevice.jpg (133.4 KiB) Viewed 8149 times
Nick
Raspberry + Razberry + FGS221 x 4 + FGRM 222 + Aeon Labs Micro Motor Controller + FGK 101 + Z-Wave Aeotec Smart Plug-in Switch GEN5 + Minimote + Aeotec KeyFob + Greenwave Smart Power Node x 2
Thanks. In fact I took the ideas there. I was thinking that it will be simple, 2 lines implemented in the HTTP device. But it does not work.
Thus I've tried to install userModules such as wunderground, XMLdevice and none of them is working (the device appears, but no value is displayed whatever the city chosen is).
The local weather app is not working too (it was working before, but before what...)
Nick
Raspberry + Razberry + FGS221 x 4 + FGRM 222 + Aeon Labs Micro Motor Controller + FGK 101 + Z-Wave Aeotec Smart Plug-in Switch GEN5 + Minimote + Aeotec KeyFob + Greenwave Smart Power Node x 2
Just to confirm, Local Weather, WeatherUnderground and Wunderground Weather Services are not working for me either.
My plan was to circumvent this by creating HTTP Devices (sensorMultilevel type) and have EventGhost periodically send the values by the API, doing this I could get weather forecasts as well my own weather station data appearing in Z-Way reliably.
With these settings Wunderground Weather Services works for me on raspi2 with v2.1.1 (Click on image or scroll down for all settings)
WU.JPG (33.46 KiB) Viewed 8109 times
Note that you must have a valid personal license number. Do not select xml as source format. That won't work anymore.
In the recipes section there are some instructions to taylor it for your needs. Most of the screendumps there are outdated unfortunately.
note You can't place just any location (City). Check Wunderground.com for the place nearest to you
Insteresting answers for future applications!
One more thing, I have succeeded in getting the wind speed as I want this morning using XML Device (with the same approach I suggested before in the HTML device).
It was not working fine yesterday because I have forgotten the last slash when specifying the path :
/reponse/current_observation/wind_kph/
Nick
Raspberry + Razberry + FGS221 x 4 + FGRM 222 + Aeon Labs Micro Motor Controller + FGK 101 + Z-Wave Aeotec Smart Plug-in Switch GEN5 + Minimote + Aeotec KeyFob + Greenwave Smart Power Node x 2