Repsonsive Skin - Australian Weather Network data

209 views
Skip to first unread message

Darryn Capes-Davis

unread,
Jan 8, 2017, 3:46:05 AM1/8/17
to weewx-user
Hi All,

Today Carlingford Weather joined the Australian Weather Network (http://www.australiawx.net/), a Mesonet based network. It needs data is some format. I chose to put together a simple WL_stickertags.txt file in the template. See http://www.australiawx.net/instructions.php and http://www.australiawx.net/WL_stickertags.txt. So anyone using the Skin in Aus, joining http://www.australiawx.net/ is straightforward. Steve the moderator was very prompt and helpful.

Get the latest Template files from GitHub - https://github.com/dcapslock/weewx-responsive-skin. The  WL_stickertags.txt template may need some tweaks to work in areas Mesonet networks (probably temp units and date format). If you need help let me know and I will tweak (limited time means I only code features used by users).

All Aus users, once updated, you can register at http://www.australiawx.net/ with the data URL <site>\DATA\WL_stickertags.txt.

Fair winds!

Cheers

Darryn

Steve

unread,
Jan 8, 2017, 8:45:33 AM1/8/17
to weewx-user
Hi Darryn,

I'm a bit thick and lost. I'm in AU and running WeeWx, exactly what do I need to do to get my data uploaded to australiawx. I'm only running the standard skins with my own basic formatting mods. i.e. http://wotid.dyndns.org/weather/

(Sorry)

Regards,

Steve.

Carlingford Weather

unread,
Jan 8, 2017, 4:50:32 PM1/8/17
to weewx...@googlegroups.com
Hi Steve,

If you can manage saving a file to your skin, grab https://raw.githubusercontent.com/dcapslock/weewx-responsive-skin/master/Responsive/DATA/WL_stickertags.txt.tmpl and saved to a new DATA folder in your skin (probably \etc\weewx\skins\Standard. (Does not need oa be a DATA directory but I like to separate out these type of files).

Once you have done that you will need to add to your skin.conf. This is found in the same folder as above. Add the lines below, in the [CheetahGenerator][[ToDate]] section.

  ## Template file for providing data to Australian Weather Network
  ## Based on template file for Weather Link as per instructions
  [[WL_stickertags]]
   template = DATA/WL_stickertags.txt.tmpl

See customising reports -  http://www.weewx.com/docs/customizing.htm#customizing_reports for more information.

If you are having trouble then you would need to wait for someone to build an installer for this. However it is quite straight forward and if you nut it out the you open up more opportunities with Weewx.

Regards

Darryn

From: weewx...@googlegroups.com <weewx...@googlegroups.com> on behalf of Steve <wot...@gmail.com>
Sent: Monday, January 9, 2017 12:45:32 AM
To: weewx-user
Subject: [weewx-user] Re: Repsonsive Skin - Australian Weather Network data
 
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/z-fAVzV5wEs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Steve

unread,
Jan 8, 2017, 10:19:16 PM1/8/17
to weewx-user
Thanks very much Darryn,

For some reason I thought I needed the whole responsive skin. Once I got hold of the WL_stickertags.txt.tmpl all was good.

I've signed up and I'm on the map.

Thanks again,

Steve.

To unsubscribe from this group and all its topics, send an email to weewx-user...@googlegroups.com.

Carlingford Weather

unread,
Jan 8, 2017, 10:31:29 PM1/8/17
to weewx...@googlegroups.com
Great. They would like more of us on the Network. 



Sent: Monday, January 9, 2017 2:19:16 PM
To: weewx-user
Subject: Re: [weewx-user] Re: Repsonsive Skin - Australian Weather Network data
 
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

Glenn McKechnie

unread,
Mar 1, 2017, 12:03:14 AM3/1/17
to weewx...@googlegroups.com
Okay, finally got around to it.
Add another one to the Aus Weather Network, using your addition. So, a Thank You from here as well!

Two things of note.
I added the stanza above to the new Standard skin as you'd described for Steve, above. Sometime later I found that the NOAA template menu wasn't being generated for that skin.
Backtracking through my additions I found that the culprit was with that addition. (The file WL_stickertags.txt.tmpl was being generated just fine) Adding 2 extra square brackets [[[WL_stickertags]]] to correct the nesting fixed it. No error messages just a silent NOAA menu for that skin (no idea if it would affect other skins?) It's repeatable; take them out, it breaks; add them back in - it works. Magical!

Also, I notice that in your Responsive skin config you have 'encoding = strict_ascii' included above it. I wonder if that's why absurd rainfall figures and NaN is showing up at times on the map page - as per the attached image.
I reckon it might be the culprit there as my data (at least the batch that was uploaded to AWN over that period) was okay at this end, and it's suspicous that Steve's @ Bacchus was showing the same error. I'm assuming he's missing that encoding override as well.
I won't know for sure until I swap it out here, but I won't do the swap until I catch it in the act ( I'd already set it up to log all the WL*'s in the one file, before I came across the above error. I'm going to attempt to nail this sucker when it pops up, or at least try!)

The correct format, to add to your skin.conf of choice, follows...

[CheetahGenerator]
 
   [[ToDate]]


        ## Template file for providing data to Australian Weather Network
        ## Based on template file for Weather Link as per instructions
        ## at http://www.australiawx.net/instructions.php
        ## and template file at http://www.australiawx.net/WL_stickertags.txt

        [[[WL_stickertags]]]

            encoding = strict_ascii
            template = DATA/WL_stickertags.txt.tmpl

with the DATA/WL_stickertags.txt.tmpl also in that skins directory, with that path.



To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscribe@googlegroups.com.
HeavyRainNoPressure.png

Carlingford Weather

unread,
Mar 1, 2017, 2:39:26 AM3/1/17
to weewx...@googlegroups.com
Hi Glenn,

The encoding won't have anything to do with the values you are seeing. If you don't use ascii encoding then you will get deg symbol which Aus Weather network won't like. 

The values you are seeing are likely to do with the data you have in you system. The report is bog standard. You would see the same if you used $current.barometer in any template. Perhaps you are using multiple database bindings and need to change to use $latest with a data binding?

Cheers

Darryn

From: weewx...@googlegroups.com <weewx...@googlegroups.com> on behalf of Glenn McKechnie <glenn.m...@gmail.com>
Sent: Wednesday, March 1, 2017 4:03:11 PM
To: weewx...@googlegroups.com
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

Glenn McKechnie

unread,
Mar 1, 2017, 9:32:20 PM3/1/17
to weewx...@googlegroups.com
Okay. Nailed it, the weird rainfalls and NaN barometer readings that is.

Turns out there's another disbeliever in the "No wind, No direction" camp.

They'll only accept an ordinal direction in the $WL_WINDDIR field. The weewx default of - N/A (or tested variants such as na, -, ' ') are not allowed in that field and their parser appears to just garble the rest of the entries that then follow it, in their displayed sequence - barometer, rain.
So if the wind drops to zero, N/A is sent and chaos reigns - until the wind picks up again.

05:11:00,02/03/17,19.9,18.2,18.2,30.3,1.9,1019.7,Steady,0.0,N/A,0.0,,07:09:41,20:02:44,0.0,0.0,C|ms|mbar|mm

The solution is to add ignore_zero_wind = False as per the weewx docs .

OR
Fudge the existing skin, or better yet, create a new minimal skin, adding the [[Ordinates]] to it; and then changing the directions stanza by switching the N/A to one of the cardinals. So wrong, but also so effective as that only affects that one report, not the database.


     [[Ordinates]]
        # The ordinal directions. The last one is for no wind direction, fudge it with the North cardinal 'N'

        #directions = N, NNE, NE, ENE, E, ESE, SE, SSE, S, SSW, SW, WSW, W, WNW, NW, NNW, N/A
        directions = N, NNE, NE, ENE, E, ESE, SE, SSE, S, SSW, SW, WSW, W, WNW, NW, NNW, N

Carlingford Weather

unread,
Mar 3, 2017, 9:39:58 PM3/3/17
to Glenn McKechnie, weewx...@googlegroups.com

Glenn,

 

Good pick. Since this is specific to the remote interpretation of the data for this specific service, I suggest handling it locally in the template.

 

I have set the $WL_WINDDIR fields to replace “N/A” with “N”.

 

#set $WL_WINDDIR = $current.windDir.ordinal_compass.replace("N/A","N")

 

Cheers

 

Darryn

 

From: Glenn McKechnie
Sent: Thursday, 2 March 2017 1:32 PM
To: weewx...@googlegroups.com
Subject: Re: [weewx-user] Re: Repsonsive Skin - Australian Weather Network data

 

Okay. Nailed it, the weird rainfalls and NaN barometer readings that is.

Steve

unread,
Mar 4, 2017, 9:12:10 PM3/4/17
to weewx-user, glenn.m...@gmail.com
Thanks Darryn & Glenn,

I've replaced the old line in the template with this one.


#set $WL_WINDDIR = $current.windDir.ordinal_compass.replace("N/A","N")

Regards,

Steve.
Reply all
Reply to author
Forward
0 new messages