Standard Report Time / Date format & weather radar

70 views
Skip to first unread message

William Webb

unread,
Aug 9, 2023, 2:27:29 PM8/9/23
to weewx-user
I have version 4 of Weewx running well after having used version 3 for a very long time.  I have two questions.

1. In the standard report, I would like to display weather radar data.  I added the URL and GIF information into skin.conf. Radar info was not displayed.. Likely other changes are needed but I don't know what they are.  I don't remember doing anything special in version 3, however, its been a while!

2.  The date time format default in the standard skin is the European format d/m/y.  I would like to use the US format m/d/y globally, all charts, all heading, etc. Is there a way to make this global change?  Did I miss something?

Tom Keffer

unread,
Aug 9, 2023, 2:46:45 PM8/9/23
to weewx...@googlegroups.com
1. Why not just continue to use your old skins? For the most part, skins have been upwardly compatible for a long time. In any event, to answer your question, we need a little more information. What does your [Extras] section look like in skin.conf?

2. The WeeWX applications work like any other Unix application: the date/time formats are set by the environment variable LANG. You didn't say what your value is for LANG, but I assume some European locale.  To see what it is, use the locale command:

locale

You can override individual categories by using LC_xxx environment variables. For example, to use US style dates and times, you could use

LC_TIME=en_US.utf8 weewxd

The GNU documentation does a pretty good job of describing how this all works.

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/b1a73cf3-4dac-4302-a920-b6c3ba75b61bn%40googlegroups.com.

William Webb

unread,
Aug 9, 2023, 3:11:42 PM8/9/23
to weewx-user
Thank you for the speedy reply.  I will test the locale change shortly.  

Here is the extras section of my skin.conf.


###############################################################################

# The following section is for any extra tags that you want to be available in the templates
[Extras]
   
    # This radar image would be available as $Extras.radar_img
    radar_img = http://radar.weather.gov/ridge/standard/PACSOUTHWEST_loop.gif
    # radar_img = https://radblast.wunderground.com/cgi-bin/radar/WUNIDS_map?station=RTX&brand=wui&num=18&delay=15&type=N0R&frame=0&scale=1.000&noclutter=1&showlabels=1&severe=1
    # This URL will be used as the image hyperlink:
    # radar_url = https://radar.weather.gov/?settings=v1_eyJhZ2VuZGEiOnsiaWQiOm51bGwsImNlbnRlciI6Wy0xMjEuOTE3LDQ1LjY2XSwiem9vbSI6OH0sImJhc2UiOiJzdGFuZGFyZCIsImNvdW50eSI6ZmFsc2UsImN3YSI6ZmFsc2UsInN0YXRlIjpmYWxzZSwibWVudSI6dHJ1ZSwic2hvcnRGdXNlZE9ubHkiOmZhbHNlfQ%3D%3D#/
    radar_url = http://radar.weather.gov/region/pacsouthwest/standard
    # If you have a Google Analytics ID, uncomment and edit the next line, and
    # the analytics code will be included in your generated HTML files:
    #googleAnalyticsId = UA-12345678-1
   
###############################################################################

The commented lines appeared to "overrun"  the  e-mail line length.  In the actual file, they are fine.

William Webb

unread,
Aug 9, 2023, 3:24:01 PM8/9/23
to weewx-user
Ah,  All is well now.  The change to Locale worked.  I noticed that to my surprise, I was not running the Standard skin, I was running the seasons skin.  I added my radar lines to Seasons and I am good on both issues.

Thanks,

Bill-AB6OR

Reply all
Reply to author
Forward
0 new messages