[UPDATED] Weewx Weather Driver With External Forecasting

Oops..
new feature coming soon... you shouldn’t see that yet : )

I've removed the data from the driver in GitHub :slight_smile:
Same version number though - just a slight 'tweak'

Andy

1 Like

I'm working on a summary - similar to the one in the custom WU driver but using the data from weewx AND the external source.
It's a bit of a pain because the externals report differently
I'll get there (when I get a chance)

Andy

1 Like

OK. I just commented out line 116 and 164

BTW, is a weather icon supposed to show in the driver details, like @bangali 's driver does, or is the URL there for use with dashboards?

It’s just there for dashboards

1 Like

Guys
New Version - 2.2.0
I have added support for daily Min/Max temperatures (inside & outside)
NOTE: This requires additions to your daily.json.tmpl if you want to use these features

You need to add a couple of lines to your daily.json.tmpl under the "sinceMidnight" section.
So that it looks like this:

"sinceMidnight": {
"rainSum":"$day.rain.sum",
"maxtemptoday":"$day.outTemp.max",
"mintemptoday":"$day.outTemp.min",
"maxinsidetemptoday":"$day.inTemp.max",
"mininsidetemptoday":"$day.inTemp.min"
}

(I have also uploaded a new version of daily.json.tmpl to my GitHub repository )

This will probably be one of the last additions to this driver as I'm struggling to find time to work on this along with all the other stuff I'm supporting.

When I get the chance, I'll add these attributes as triggers for Weather Switch

Andy

1 Like

Moving the discusson over here so were're not taking over @bangali 's post with discussion about your driver.

I'm just really learning how these work in a dashboard for the first time, since I wasn't using HE Dashboard. I'm not sure what's correct. It was just an assumption on my part of how that switch worked with your driver, vs what I was seeing from @bangali 's driver. It is mostly cloudy right now and that's what his is showing. I guess I assumed that if I changed the switch from forecast to current, the Icon would follow.

OK.
I've recoded the switch to also control the 'forecastIcon' so you can have either a forecast or current icon in the SharpTools dashboard.

Version 2.8.0 uploading as we speak :slight_smile:
(Obviously this is the Custom WU driver not weewx)

Andy

There's a bit of an odd discrepancy with this driver I've been meaning to ask you about. I see this somewhat on the WU app as well, but not on the WU web page for my station. It shows "The Beaches" which is what it shows on the app, but then shows the custom name I added "The Beach" as well. On the web, it just says, "The Beach". But it's not just the name that is different. For instance, the WU site for my station show's 79% humidity, but the driver is pulling in 82%.

I've entered my exact GPS coordinates, and I also tried entering the coordinates as they appear on my stations WU page. No change. I also tried entering my station ID, but I don't know if that's supported.

Will grab the new code now to test the switch.

Yes, Understood! :grin:

to get WU to use your station data you just use:
pws:stationID in the zipcode box
(obviously changing 'stationID' for your wu station id)

As an example PWS:IDURHAM16 is what I put for my station IDURHAM16

This should force WU to use your data

1 Like

:+1:

But why does the WU driver show a sun and the Apixu driver shows a crescent moon (which is correct for right now)?

What is the forecastIcon data on the driver?

Just flipped to my MacOS dashboard to see what time it was at your house, and I noticed how ridiculous the bleeding sun icon is on the Yahoo weather widget :rofl:

41%20AM

1 Like

cloudy

The thing to do is compare the apixu 'forecastIcon' to the WU one.
If they are the same then in theory they should show the same icon.

It's 7:42 AM here :slight_smile:

I trust you've had your tea? If not, this can wait :wink:

This is what Apixu shows...

  • forecastIcon : nt_cloudy.

That’s because apixu differentiates between night and day but wu doesn’t seem to
In the weewx driver I’ve mapped the apixu icons to day and night so that should be ok.
I have guests this weekend so I’ll have a look on monday if there is anything I can do to try and get wu to report day/night

1 Like

Enjoy! Time for me to sleep before the sun's up :grin:

So I was going through all my apps/drivers and seeing if there were any updates...

Noticed this one had an update, so I went ahead and updated my daily.json and then the driver. Now I'm getting an error... :grin:

Trying different stuff here... one thing I noticed is that I can copy the new json over and it looks OK. Save it, open it up and it looks good. No data but everything looks ok. Then I wait for it to update. After it updates, I open up the json again and the new stuff is gone in the 'sinceMidnight' section.

I've updated the daily.json and the Hubitat driver... Am I missing something?