Line 33 of wunderground.py needed to be changed on Raspberry Pi to self._unit_of_measurement = TEMP_FAHRENHEIT from self._unit_of_measurement = “°F” because of ‘utf-8’ codec error. TEMP_FAHRENHEIT is defined in the homeassistant package in const.py and also needs to be added after line 7: from homeassistant.const import TEMP_FAHRENHEIT
For those newbies like me, I included the following in my configuration.yaml file:
At the end of the homeassistant: section, I added ’ customize: !include customize.yaml’. Note the two spaces in front of the line.
I added wunderground as my first sensor (note there are two spaces in front of everything after sensor below
sensor:
platform: wunderground
api_key: YOURKEY
pws_id: KMANORTH112
I added the sensor templates file as my next sensor:
sensor 2: !include sensor_templates.yaml
Towards the end of my configuration.yaml file, I added the group line:
group: !include group_config.yaml
Before you try customizing/grouping, just make sure that you are getting those sensors created with the right data (start simple). What error are you getting?
thanks… i actually figured it out last night. was struggling with it for a few days… I used wget to grab py file so opening it revealed html code. used git to grab py file everything is working now.
I finally got around to trying this but was disappointed when I saw how many attributes were missing from the original implementation and so I went back. I’d love to use the component and get rid of all the overhead associated with all the template sensors, but not at the expense of losing all that data I was getting.
Any chance the code will be updated to get all of the WU attributes that were available?
I took a look at readding forecast data. I am still blocked by this question.
I haven’t tried it yet (still on 0.26), but I assume I could update, remove the built-in WU component, and just keep using my existing custom component. You should try that.
I didn’t have to remove the HA Component, I just had to return the original to the custom components directory and uncomment all my templates when I was done testing.
Hey There,
I just wanted to pick this Topic up again, because weatherunderground doesn’t need an api key to get data from it.
You just can send a request to http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=INEUNKIR2 where INEUNKIR2 is the ID of the desired weatherstation and get an xml view of all data.
Very interesting! I tried this with my own weather station ID and noticed some additional info that isn’t available via the API key like the Type of Weather Station (AcuRite Weather Station). I wonder if there are any limitations on this method?