[UPDATED] Weewx Weather Driver With External Forecasting

I dropped the daily.json.tmpl file into /var/www/html/weewx/ which should be the root for a debian install and still no luck. I'm sure I'm missing something simple but I can't figure it out.

The weewx install all went smoothly solid updates to WU and the weewx default html report works fine.

In your weewx.conf is StandardReport enabled or is SeasonsReport enabled? I think they changed the latest versions to use Seasons in which case you have to put your tmpl file in the skins/Seasons folder and modify that skin.conf.

Jackpot!!

Seasons was true so I created the daily.json.tmpl and put in in /etc/weewx/skins/Seasons
Then I modified the skin.conf to reference

[[[json]]]
template = daily.json.tmpl

Then hit up the Pi @

192.168.1.20/weewx/daily.json

and this was the result

{
"title":"Current Values",
"location":"Fox Point North Barrington IL",
"time":"03/21/2019 01:39:00 PM",
"lat":"42Ā° 09.84' N",
"lon":"088Ā° 07.32' W",
"alt":"830 feet",
"hardware":"Vantage",
"uptime":"0 days, 0 hours, 0 minutes",
"serverUptime":"0 days, 17 hours, 48 minutes",
"weewxVersion":"3.9.1",
"stats": {
"current": {
"outTemp":"42.9Ā°F",
"windchill":"42.9Ā°F",
"heatIndex":"42.9Ā°F",
"dewpoint":"39.0Ā°F",
"humidity":"86%",
"insideHumidity":"32%",
"barometer":"30.027 inHg",
"barometerTrendDelta":"3 hours",
"barometerTrendData":"-0.015 inHg",
"windSpeed":"1 mph",
"windDir":"248Ā°",
"windDirText":"WSW",
"windGust":"3 mph",
"windGustDir":"248Ā°",
"rainRate":"0.00 in/hr",
"insideTemp":"69.1Ā°F"

},

"sinceMidnight": {
"rainSum":"0.00 in",
"maxtemptoday":"42.9Ā°F",
"mintemptoday":"37.3Ā°F",
"maxinsidetemptoday":"69.9Ā°F",
"mininsidetemptoday":"64.3Ā°F"
}
},

"almanac":{
"sun":{
"sunrise":"06:52:44 AM",
"sunset":"07:06:13 PM",
},
"moon":{
"phase":"Full",
"fullness":"99%"
}
}
}

1 Like

You could have just installed my weeWX extension.

I tried that's part of my linux ignorance, I couldn't get the installer to work.

wee_extension --install filename

then restart weewx and wait for the template generation

I just started seeing the double F F now. Where did you put your fix at ?

Search for ā€œfcodeā€ and anywhere that is, add another line. I.e

dewpointRaw1 = dewpointRaw1.replace(fcode, "")
dewpointRaw1 = dewpointRaw1.replace("\u00B0F", "")

Even if you do this, things still wonā€™t look right; see the weather tile:

Yup things are still messed up.

image

image

@cobra Needs to work on this more. Has anyone figured out how to strip all the F and C out of the weewx template ?

Guys.
if you are using this driver on a dashboard
TURN OFF ā€˜display data unitsā€™
Most dashboards use logic to put the units back on again.

Iā€™m sure Iā€™ve mentioned this before a few times.

Andy

It is OFF !!!

image

Iā€™ve been using this ever sice I wrote it without any problems
Iā€™ve been so busy that I havenā€™t really been following this thread.

Are you saying that the driver is not removing the units when they are sent from weewx?

Andy

It's ADDING. I removed all the units in the template so there is no F but the code is still adding them twice.

No matter what I try it wont go away.

slot3Data : Temp: 72.7Ā°FĀ°F (Feels Like: 52.3Ā°FĀ°F) Hum:34%

And to top it off that is the INSIDE temp not the outside. Outside is 52 not 72

image

Are you trying to use my super tile beta?

If I use individual tiles everything is ok including the units. It's the attributes "weather" and "weatherdisplay" that's messed up.

???

Sorry, I didnā€™t realise what you,were doing.
Iā€™ll be releasing a much better tile creator next week some time (subject to the final beta going well)

Ok...
As this is using WU then I will be removing the ā€˜tileā€™ attribute from the app when I re write it.
Weather Underground has changed the api so drastically that it is a complete rewrite of the driver.
Iā€™m working on the ā€˜custom wu driverā€™ atm then Iā€™ll move on to this one.
Iā€™m currently using this driver but it will stop working after next week so Iā€™m hoping to get it all done before then.

This is an example of what you will be able to do...

image

Andy

Im using Apiux not WU

The above picture uses apixu actually

But whatever, I was never happy with the way the driver presents the tile.
Also, there is now a restriction on the number of characters sent to a display tile which this exceeds a lot of the time..

Time for a complete rewrite.

Andy

I'm just going to remove the driver. It's not even pulling the outside temp correctly and insists on displaying the inside temp.

If I use the attrib temperature it shows inside_temperature.

image