[PROJECT] Weather Service Monitor 4 Hubitat Driver

I just did some checking and they do appear to have some sample code located here:
https://datahub.metoffice.gov.uk/docs/f/category/site-specific/type/site-specific/sample-download-code

Not sure what it entails or includes though, since I did not use it.

I would like to be able to display Today_IconURL as an image tile in an EZ Dashboard.
Is there a way to accomplish this ? By default it displays the url of the image.
I tried to create a rule with a Virtual Image device but can't find a way to update the image automatically.

Yeah the image tile is the only way. @gopher.ny can you add a refresh setting to that tile like in classic?

Is there a way to create an automation to update a Virtual Image device with the value of Today_IconURL ?

Updated Version(s):

  • WSM4Hubitat.groovy = 0.9.9

Change(s):

  • image attribute has been added to the parent driver. The driver uses the Today_IconURL to provide an img src string for the image attribute so it can display whatever icon the URL is providing.

I tried to update but now I have this error

groovy.lang.MissingMethodException: No signature of method: user_driver_Snell_WSM4Hubitat_712.$() is applicable for argument types: (user_driver_Snell_WSM4Hubitat_712$_GetOWForecast_closure4) values: [user_driver_Snell_WSM4Hubitat_712$_GetOWForecast_closure4@ec9e69]
Possible solutions: is(java.lang.Object), run(), run(), any(), use([Ljava.lang.Object;), any(groovy.lang.Closure) on line 970 (method GetOWForecast)

1 Like

Updated Version(s):

  • WSM4Hubitat.groovy = 0.9.10

Change(s):

  • Correction to line 970 for the OW portion of the new icon URL to image. I accidentally nested a ${ } around the one that was SUPPOSED to be doing it. Thanks to @cedric for bringing the error up so quickly.

Thanks, it"s fixed.
Do you know how I can display this image in an easy dashboard ?

Not sure... I do not use the Easy Dashboard. I just knew I had to get it available as an image at least.

But I am trying out the Easy Dashboard to see if I can give some instruction...

UPDATE:
Maybe someone smarter than me can figure it out, but I cannot. I do not see any way to add the image onto the Easy Dashboard.

EDIT: Someone smarter DID figure it out. A couple posts below this is one from @rlithgow1 explaining a method.

I did it pretty easily using an original Dashboard:

  1. Select the + icon
  2. Select the device
  3. Select the "attribute" template
  4. Select "image" from the Attribute dropdown
  5. Select the Add Tile (make any other changes you might want such as size or position before this of course)

I'm using OpenWeather in a classic dashboard that I set up several years ago.

Today I received the notification that the OpenWeather 2.5 API won't work after 9/30, and I need to update to OW 3.0.

For those of us who are just stumbling around following instructions without really knowing what we are doing, is there a guide for both updating @snell Hubitat driver, and WeatherMap (those are the two virtual devices I ended up with) as well as the API on the OW site?

Create a virtual image device under yourhubip>>devices>>add device

Set your url, set refresh rate

Add that device to the ez dash of your choice..

1 Like

The OpenWeather method within WSM4Hubitat was changed over to support 3.0 in version 0.9.8. So if you update the driver to the current 0.9.10, it should be all set. I do not know about WeatherMap or what you mean by the API on the OW site though.