Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Timezone on index page of new site

Please DO NOT use this to publish your entire wish. This Forum is for specific suggestions to enhance the usability of Cumulus MX for all users, NOT your personal requirements. Please check this forum and the rejected forum to make sure you are NOT posting a DUPLICATE suggestion. It will be heavily monitored by Admin and Mark Crossley to determine the feasibility and the difficulty of the suggestion. Those Topics that are deemed inadmissible will moved to the rejected Forum. The remaining Topics will be the Accepted list of future developments, and when our voluntary development group adds it to a build, the build number will be added to the Topic title.
Post Reply
freddie
Posts: 2433
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Timezone on index page of new site

Post by freddie »

Instead of having something like "Conditions at local time 15:40 on 16 March 2021" could it instead be "Conditions at 15:40 EST on 16 March 2021"? The timezone can be gotten from the locale on the CumulusMX machine. Or, alternatively, have a web tag with the timezone in it so we can roll our own?
Freddie
Image
User avatar
mcrossley
Posts: 12685
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Timezone on index page of new site

Post by mcrossley »

The only issue is that MX only has access to the full time zone name, and the standard/DST names.

Eg. Full = "(UTC-05:00) Eastern Time (US & Canada)"
Standard = "Eastern Standard Time"
Daylight = "Eastern Daylight Time"

or for the UK...
"(UTC) Dublin, Edinburgh, Lisbon, London"
"GMT Standard Time"
"GMT Daylight Time"

There are no abbreviated names, and I think the ones above are not really what you are looking for?
freddie
Posts: 2433
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Timezone on index page of new site

Post by freddie »

I agree, they're not ideal - but better IMHO than "local time". Perhaps just a webtag then, or included in the weather info JSON?
Freddie
Image
User avatar
KarlS
Posts: 135
Joined: Tue 30 Nov 2010 3:01 pm
Weather Station: Ecowitt GW1003 / WH32 / WH41
Operating System: Buster Lite on Pi4
Location: Bridge Lake, BC, Canada
Contact:

Re: Timezone on index page of new site

Post by KarlS »

While there is a worldwide list of abbreviated time zone names, those abbreviations are far from unique. I live in British Columbia, Canada, so my time zone is "Pacific Standard Time" (PST). However, somebody living on the Pitcairn Islands in the Southern Pacific would have the "Pitcairn Standard Time" (also abbreviated PST, both UTC-8). Paraguay and Pyongyang (North Korea) both live on PYT. AMST could mean Amazon Summer Time or Armenia Summer Time. Very confusing ...

Maybe the easiest solution would be a new entry "Local Time Zone" in the Cumulus.ini file under Station Settings/General Settings/Location.
User avatar
mcrossley
Posts: 12685
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Timezone on index page of new site

Post by mcrossley »

KarlS wrote: Tue 16 Mar 2021 10:58 pm Maybe the easiest solution would be a new entry "Local Time Zone" in the Cumulus.ini file under Station Settings/General Settings/Location.
Probably, you can display what you want then.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Timezone on index page of new site

Post by beteljuice »

but how would it cope with DST ?
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
mcrossley
Posts: 12685
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Timezone on index page of new site

Post by mcrossley »

Two fields then?
freddie
Posts: 2433
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Timezone on index page of new site

Post by freddie »

mcrossley wrote: Wed 17 Mar 2021 11:52 am Two fields then?
Or change it when the clocks change? Another reason (in addition to the gap in records in March and double-recording in October) to not use DST.
Freddie
Image
User avatar
mcrossley
Posts: 12685
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Timezone on index page of new site

Post by mcrossley »

freddie wrote: Wed 17 Mar 2021 2:22 pm
mcrossley wrote: Wed 17 Mar 2021 11:52 am Two fields then?
Or change it when the clocks change? Another reason (in addition to the gap in records in March and double-recording in October) to not use DST.
Do you mean the user changes it? They are bound to forget! My thought was two fields (standard and DST) and the web tag chooses between them depending on DST status.
User avatar
mcrossley
Posts: 12685
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Timezone on index page of new site

Post by mcrossley »

freddie wrote: Wed 17 Mar 2021 2:22 pm Another reason (in addition to the gap in records in March and double-recording in October) to not use DST.
Move to Arizona, about the only sensible place I know of!
freddie
Posts: 2433
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Timezone on index page of new site

Post by freddie »

mcrossley wrote: Wed 17 Mar 2021 2:26 pm
freddie wrote: Wed 17 Mar 2021 2:22 pm Another reason (in addition to the gap in records in March and double-recording in October) to not use DST.
Move to Arizona, about the only sensible place I know of!
:lol: or Hawaii
Freddie
Image
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Timezone on index page of new site

Post by beteljuice »

As has been said earlier - js is a bit hit and miss with timezones.

The Americas in particular are a problem because a line of longitude passes through many countries.

Again, as said before, Short, abbreviated TZ, may be returned as GMT / UTC offset, whereas long name may be missing, GMT offset, or just (too) long.

eg. Using js intlDateObj

timeZoneName: 'long' New York City: Wed, 17 Mar, Eastern Daylight Time (America/New_York )
timeZoneName: 'short' New York City: Wed, 17 Mar, GMT-4 (America/New_York )

but if you're lucky ..

timeZoneName: 'short' Berlin: Wed, 17 Mar, CET (Europe/Berlin )

You can experiment here
Image
......................Imagine, what you will KNOW tomorrow !
Post Reply