[App][Pro]Weather Underground PWS app (Release 3.0.9)

I have written an app to retrieve data from a PWS on Weather Underground.
I will see if Athom will publish it, so if you have any interest in this then let me know so I can see if it worth pursuing for anything but my own use.

How to setup the app:

The app requires a token provided by WU to access the data. This token is called the API Key and is available on your account page in the WU web site.

You might see a button to generate the key if you haven’t already done so.
Click on Show Key to see the value and then copy that to the app when adding a new device. The key is long so copy and paste is the best option if possible.

You will also need your Station ID which is also available on the WU website:

The ID is not secret and can be found on the web site for any station. In fact you can access any stations data with your API key. However WU put a limit on the number of access that can be made per day with your key (maximum of 10 per minute and a total of 1500 per day).

The app provides two device types that can be add, “Weather Station” and “Weather Forecast”.
The “Weather Station” device provides data from the weather station indicated by the ID and updates once every minute.
The “Weather Forecast” device provides five days of weather predictions for area around the station location.
So to add either of these, select the + symbol in the Devices tab of the Homey app, tap on the WU app and then selected an option (station or forecast). You will then see a screen to enter the Station ID and the API key. Then tap on Add Station. Provided the Station ID and API key a valid the device will then be added.

For the Forecast, you can select the period that you want to view on the first screen and the second screen will then refresh with those values.

Version 2 is available. The main feature is a rewrite of the Forecast flow triggers so they can select which day you want to watch. To make use of the new feature you will have to removes the old forecast device and add it back again.

Version 2.1.12

  • Added ‘Data Resumed’ flow trigger

Version 2.1.13

  • Added an app option to specify the number of weather stations on your account so the update rate can be optimised.

Version 2.1.14

  • Added a global option in the Confure App page to select the wind speed units between Km/H and m/s.

Version 2.1.15

  • Fixed an issue with using forecast flow condition cards.

Version 2.1.16

  • Fix problem with speed units changing to m/s after update and put default back to Km/H unless already set manually.

Version 2.1.17

  • If the station ID is not found then you now have the option to add it anyway. Adding / removing a station automatically increments / decrements the station count to adjust the polling interval.

Version 3.0.3

  • Made cloud ready (probably won’t be accepted though).

Version 3.0.4

  • Fixed units selection for wind.

Version 3.0.5

  • Added missing German translation thanks to Dirk Göbel.

Version 3.0.6

  • Added more missing German translation thanks to Dirk Göbel.

Version 3.0.7

  • Fixed Temperature reading on Forecast not updating.

Version 3.0.8

  • Added buttons to the connection page to open the WU website on the Station ID and API Key pages.

Version 3.0.9 Weather Underground App for Homey | Homey

  • Removed Homey (cloud) option. The app was rejected for Homey :frowning:
4 Likes

Looking forward to the app, waited long for somone to develop :slight_smile:

1 Like

Is there anything specific that you want?
Currently I have just the real-time readings.

As much data I can get :grinning: at the moment I pull data from Weather Display via MQTT to HA to have a nice dashboard

I have done my part to publish the app so now it is just a wait to see if it gets accepted by Athom.

1 Like

Looking forward :slight_smile:
Thanks

The app is now live in the app store https://homey.app/en-gb/app/com.weatherunderground/Weather-Underground/
Hope you find it useful.

1 Like

What kind of weatherstation and software are you using?
Installing app now

I currently have this one https://www.amazon.co.uk/gp/product/B07JMVG1WC/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1

It doesn’t have any software but pushes the data directly to Weather Underground, hence the app.

If I had seen it before I would have prefered this one https://www.amazon.co.uk/sainlogic-WS3500-Professional-Internet-Wunderground/dp/B081F1VTYT/ref=pd_sbs_86_8?_encoding=UTF8&pd_rd_i=B081F1VTYT&pd_rd_r=ef13a7cc-b78f-42d8-b357-36f0d5394796&pd_rd_w=EvPU7&pd_rd_wg=qj65U&pf_rd_p=96cae456-8d7a-4bc1-91c7-9b20b4dfd7c9&pf_rd_r=EVBNT1NJY1JV82S0EZC3&psc=1&refRID=EVBNT1NJY1JV82S0EZC3
as it also does UV and sunlight.

Take a look of this

i think i`ll order,

at the moment i have a this
https://www.davisinstruments.com/solution/vantage-pro2/#features

And from my weather software i fetch data in real time with MQTT

2 Likes

A bit beyond my budget but very nice.

Works perfect, thanks, now I can control the heater in the weatherstation :blush:

1 Like

One thing that has come to light is that WU provide two keys. One is the short key that appears in thier control panel next in the device table. The other, and this is the one you need, is the long API key. That is shown on a separate tab. See the image below taken from my WU members page:

You might need to click on a button on that tab page to create your key.

If you enter the wrong key into my app it will not collect data.

Sorry if this has caused any inconvenience.

There is a new version ready for test. It can be loaded from the app store by putting /test on the end or the URL or you can click on the link below.

This update has the following:

  • More decimal places for temperature.
  • Added a UV senor to displayed items, but obviously this will only get a value if you station sends UV data.
  • Added a new ‘device’ that can be installed that shows information from the weather forecast for tomorrow. Enter the weather station ID and API key in exactly the same way as for the PWS device. The weather forecast data is updated every hour so the combined PWS and forecast request stay under the allowed 1500 request per day.

Let me know if there any issues. I will leave it in test for a few days and wait for feedback and if it is OK I will request that it is published next week.

It was also mentioned that LUX and Watt sensors are missing but as far as I can see that information is not provided by WU so I can’t do those. I must admit I am surprised that LUX is not available. If anyone sees it in the documentation then let me know and I will do my best.

If anyone wants to translate any of the text in the app that is in English then please let me know the English and translated text (plus language just in case I don’t recognise it). Or you can do it via a pull request on Github if that is easier for you. I would be grateful as, I guess, would other users.

@Adrian_Rockall i got the test version, removed and added it again. it nows also shows UV. although every value is still empty after 24 hours. wgen configuring in homey wu app app, it says ip assigned by your router, but the field name is called hub ID, a bit confusing. I gues you ment weather station ip here?
And what happens is you add wrong ip? any log if enabled?
Regards Ray, finaly my ws is in homey. So i can set greenhouse lightning on and off if thats is a condition in the flow would be awesome !! :grinning: :yum:

@RayCokes The Station ID is the one assigned by WU when you add your station to their system. You can find it in the Members Settings area on WU as shown below:

In the first version of my App I did accidentally type IP instead of ID which has probably caused the confusion for which I apologies.

I will also look at providing feedback with error messages in future versions so thank you for that wake up.

A new version is available (0.1.0) for test that has the Dutch translations.
Removed app configuration page as that was in there by mistake.

A new version is available for test (0.0.1).
Changed the Forecast Wind Strength capability to Gust Strength.
Also a bit of optimisation and hopefully error message should be displayed :crossed_fingers:
Thanks to everyone for the help with translations.

A new version is available for test (0.0.2).
Added Solar Radiation to the Station device.
Added triggers for all (hopefully) custom capabilities.
Clear error message when new data fetched.
Dutch translations for new stuff has been added with the help of Google plus the previous translations so I hope they are OK.

Thanks to everyone that has been helping with the testing.

1 Like

Looks and feels great, nice work :muscle::blush:

1 Like