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 4019) - 03 April 2024
Legacy Cumulus 1 release 1.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
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.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
-
- Posts: 2475
- 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
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?
- mcrossley
- Posts: 12763
- 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
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?
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?
-
- Posts: 2475
- 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
I agree, they're not ideal - but better IMHO than "local time". Perhaps just a webtag then, or included in the weather info JSON?
- KarlS
- Posts: 137
- Joined: Tue 30 Nov 2010 3:01 pm
- Weather Station: Ecowitt GW1003 / WH32 / WH41
- Operating System: 64bit Bookworm on Pi4
- Location: Bridge Lake, BC, Canada
- Contact:
Re: Timezone on index page of new site
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.
Maybe the easiest solution would be a new entry "Local Time Zone" in the Cumulus.ini file under Station Settings/General Settings/Location.
- mcrossley
- Posts: 12763
- 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
Probably, you can display what you want then.
- 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
but how would it cope with DST ?
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 2475
- 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
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.
- mcrossley
- Posts: 12763
- 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
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.
- mcrossley
- Posts: 12763
- 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
Move to Arizona, about the only sensible place I know of!
-
- Posts: 2475
- 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
or Hawaii
- 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
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
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
......................Imagine, what you will KNOW tomorrow !