Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.2.1 (build 4043) - 19 October 2024

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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

New help fixing time from UTC to my local time in Florida

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

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

Re: New help fixing time from UTC to my local time in Florida

Post by freddie »

You have typos in the command you have typed again. Why don't you just copy/paste from the reply as suggested earlier?

In your first attempt you missed out the space between -l and the first /.

In your second attempt you missed the space between ls and -l, missed out the first / and substituted usr with user.

It's easier to just copy and paste, as rogerthn knows what he is doing and is providing precise commands to use.
Freddie
Image
User avatar
rogerthn
Posts: 543
Joined: Thu 11 Apr 2013 6:31 pm
Weather Station: Ecowitt GW1000/GW1003
Operating System: Raspberry Pi OS bullseye aarch64
Location: Trollhättan Sweden
Contact:

Re: New help fixing time from UTC to my local time in Florida

Post by rogerthn »

Have you tried sudo sed -i 's/%I/%l/g' /usr/share/i18n/locales/en_US ?

Running bookworm :-)

ls -l /usr/share/i18n/locales/en*

From my bookworm, please note the timestamp on en_US :clap:
ls -lrt /usr/share/i18n/locales/en*
-rw-r--r-- 1 root root 2430 Feb 3 05:32 /usr/share/i18n/locales/en_ZW
-rw-r--r-- 1 root root 2713 Feb 3 05:32 /usr/share/i18n/locales/en_ZM
-rw-r--r-- 1 root root 7988 Feb 3 05:32 /usr/share/i18n/locales/en_ZA
-rw-r--r-- 1 root root 4463 Feb 3 05:32 /usr/share/i18n/locales/en_SG
-rw-r--r-- 1 root root 2491 Feb 3 05:32 /usr/share/i18n/locales/en_SC
-rw-r--r-- 1 root root 4647 Feb 3 05:32 /usr/share/i18n/locales/en_PH
-rw-r--r-- 1 root root 3463 Feb 3 05:32 /usr/share/i18n/locales/en_NZ
-rw-r--r-- 1 root root 5920 Feb 3 05:32 /usr/share/i18n/locales/en_NG
-rw-r--r-- 1 root root 3746 Feb 3 05:32 /usr/share/i18n/locales/en_IN
-rw-r--r-- 1 root root 2559 Feb 3 05:32 /usr/share/i18n/locales/en_IL
-rw-r--r-- 1 root root 1724 Feb 3 05:32 /usr/share/i18n/locales/en_IE@euro
-rw-r--r-- 1 root root 3402 Feb 3 05:32 /usr/share/i18n/locales/en_IE
-rw-r--r-- 1 root root 4572 Feb 3 05:32 /usr/share/i18n/locales/en_HK
-rw-r--r-- 1 root root 3626 Feb 3 05:32 /usr/share/i18n/locales/en_GB
-rw-r--r-- 1 root root 3285 Feb 3 05:32 /usr/share/i18n/locales/en_DK
-rw-r--r-- 1 root root 4099 Feb 3 05:32 /usr/share/i18n/locales/en_CA
-rw-r--r-- 1 root root 2421 Feb 3 05:32 /usr/share/i18n/locales/en_BW
-rw-r--r-- 1 root root 3464 Feb 3 05:32 /usr/share/i18n/locales/en_AU
-rw-r--r-- 1 root root 3095 Feb 3 05:32 /usr/share/i18n/locales/en_AG
-rw-r--r-- 1 root root 3629 Apr 17 13:15 /usr/share/i18n/locales/en_US
Image
Adrianwx23
Posts: 80
Joined: Sun 03 Mar 2024 5:09 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Raspberry Pi 4 and Meteobridge
Location: Lake Worth Florida

Re: New help fixing time from UTC to my local time in Florida

Post by Adrianwx23 »

freddie wrote: Wed 17 Apr 2024 4:49 pm You have typos in the command you have typed again. Why don't you just copy/paste from the reply as suggested earlier?

In your first attempt you missed out the space between -l and the first /.

In your second attempt you missed the space between ls and -l, missed out the first / and substituted usr with user.

It's easier to just copy and paste, as rogerthn knows what he is doing and is providing precise commands to use.
Hi Freddie, surely i was trying to do this remotely via my iphone cause of the timezone i realize most of you are in the UK and i am in florida but the copy and paste from my remote software is giving me issues. I will trying these commands this afternoon from my desktop when i get home from work. Will post results 630pm my time. Really appreciate all the help hope to get this resolved soon.
freddie
Posts: 2731
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: New help fixing time from UTC to my local time in Florida

Post by freddie »

No worries. Yep it is fiddly doing it on a phone. I'm sure we'll get it sorted for you eventually.
Freddie
Image
Adrianwx23
Posts: 80
Joined: Sun 03 Mar 2024 5:09 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Raspberry Pi 4 and Meteobridge
Location: Lake Worth Florida

Re: New help fixing time from UTC to my local time in Florida

Post by Adrianwx23 »

rogerthn wrote: Wed 17 Apr 2024 4:56 pm Have you tried sudo sed -i 's/%I/%l/g' /usr/share/i18n/locales/en_US ?

Running bookworm :-)

ls -l /usr/share/i18n/locales/en*

From my bookworm, please note the timestamp on en_US :clap:
ls -lrt /usr/share/i18n/locales/en*
-rw-r--r-- 1 root root 2430 Feb 3 05:32 /usr/share/i18n/locales/en_ZW
-rw-r--r-- 1 root root 2713 Feb 3 05:32 /usr/share/i18n/locales/en_ZM
-rw-r--r-- 1 root root 7988 Feb 3 05:32 /usr/share/i18n/locales/en_ZA
-rw-r--r-- 1 root root 4463 Feb 3 05:32 /usr/share/i18n/locales/en_SG
-rw-r--r-- 1 root root 2491 Feb 3 05:32 /usr/share/i18n/locales/en_SC
-rw-r--r-- 1 root root 4647 Feb 3 05:32 /usr/share/i18n/locales/en_PH
-rw-r--r-- 1 root root 3463 Feb 3 05:32 /usr/share/i18n/locales/en_NZ
-rw-r--r-- 1 root root 5920 Feb 3 05:32 /usr/share/i18n/locales/en_NG
-rw-r--r-- 1 root root 3746 Feb 3 05:32 /usr/share/i18n/locales/en_IN
-rw-r--r-- 1 root root 2559 Feb 3 05:32 /usr/share/i18n/locales/en_IL
-rw-r--r-- 1 root root 1724 Feb 3 05:32 /usr/share/i18n/locales/en_IE@euro
-rw-r--r-- 1 root root 3402 Feb 3 05:32 /usr/share/i18n/locales/en_IE
-rw-r--r-- 1 root root 4572 Feb 3 05:32 /usr/share/i18n/locales/en_HK
-rw-r--r-- 1 root root 3626 Feb 3 05:32 /usr/share/i18n/locales/en_GB
-rw-r--r-- 1 root root 3285 Feb 3 05:32 /usr/share/i18n/locales/en_DK
-rw-r--r-- 1 root root 4099 Feb 3 05:32 /usr/share/i18n/locales/en_CA
-rw-r--r-- 1 root root 2421 Feb 3 05:32 /usr/share/i18n/locales/en_BW
-rw-r--r-- 1 root root 3464 Feb 3 05:32 /usr/share/i18n/locales/en_AU
-rw-r--r-- 1 root root 3095 Feb 3 05:32 /usr/share/i18n/locales/en_AG
-rw-r--r-- 1 root root 3629 Apr 17 13:15 /usr/share/i18n/locales/en_US
Sent you a pm. Will be doing all the commands this afternoon when i get home its very hard to type those commands from my phone the copy and paste works when it wants to. Will post results of the commands. Standby
Adrianwx23
Posts: 80
Joined: Sun 03 Mar 2024 5:09 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Raspberry Pi 4 and Meteobridge
Location: Lake Worth Florida

Re: New help fixing time from UTC to my local time in Florida

Post by Adrianwx23 »

Appreciate you guys!
Adrianwx23
Posts: 80
Joined: Sun 03 Mar 2024 5:09 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Raspberry Pi 4 and Meteobridge
Location: Lake Worth Florida

Re: New help fixing time from UTC to my local time in Florida

Post by Adrianwx23 »

Ok done! The time 6:53pm looks perfect!! What do i do now reboot CMX oh wait you said there was a final step. Please advice

Image
User avatar
rogerthn
Posts: 543
Joined: Thu 11 Apr 2013 6:31 pm
Weather Station: Ecowitt GW1000/GW1003
Operating System: Raspberry Pi OS bullseye aarch64
Location: Trollhättan Sweden
Contact:

Re: New help fixing time from UTC to my local time in Florida

Post by rogerthn »

You might need to add the line LC_TIME=en_US.UTF-8 to /etc/default/locale, this can be done as below

Code: Select all

echo "LC_TIME=en_US.UTF-8" | sudo  tee --append /etc/default/locale
Please note --append to append to the file
and then

Code: Select all

sudo update-locale
Image
Adrianwx23
Posts: 80
Joined: Sun 03 Mar 2024 5:09 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Raspberry Pi 4 and Meteobridge
Location: Lake Worth Florida

Re: New help fixing time from UTC to my local time in Florida

Post by Adrianwx23 »

rogerthn wrote: Thu 18 Apr 2024 6:21 am You might need to add the line LC_TIME=en_US.UTF-8 to /etc/default/locale, this can be done as below

Code: Select all

echo "LC_TIME=en_US.UTF-8" | sudo  tee --append /etc/default/locale
Please note --append to append to the file
and then

Code: Select all

sudo update-locale
Like this?

Image
Adrianwx23
Posts: 80
Joined: Sun 03 Mar 2024 5:09 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Raspberry Pi 4 and Meteobridge
Location: Lake Worth Florida

Re: New help fixing time from UTC to my local time in Florida

Post by Adrianwx23 »

Time is perfect now how do i get this to show up on my website?? What you guys see on your end? https://adriansweatherstation.com

Image

Image
User avatar
rogerthn
Posts: 543
Joined: Thu 11 Apr 2013 6:31 pm
Weather Station: Ecowitt GW1000/GW1003
Operating System: Raspberry Pi OS bullseye aarch64
Location: Trollhättan Sweden
Contact:

Re: New help fixing time from UTC to my local time in Florida

Post by rogerthn »

Maybe adding -lang en-US when starting CMX?
PS
It might be simplest to re-install the service?
sudo dotnet CumulusMX.dll -install -user <username> [-group <groupname>] [-port port_num] [-lang <lang-code>]
Image
Adrianwx23
Posts: 80
Joined: Sun 03 Mar 2024 5:09 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Raspberry Pi 4 and Meteobridge
Location: Lake Worth Florida

Re: New help fixing time from UTC to my local time in Florida

Post by Adrianwx23 »

My local cmx dashboard is ok showing my local 12 hr time but it just won’t translate to my website for some reason. Anyone has any suggestions on what else I can try??

Image

https://adriansweatherstation.com
User avatar
rogerthn
Posts: 543
Joined: Thu 11 Apr 2013 6:31 pm
Weather Station: Ecowitt GW1000/GW1003
Operating System: Raspberry Pi OS bullseye aarch64
Location: Trollhättan Sweden
Contact:

Re: New help fixing time from UTC to my local time in Florida

Post by rogerthn »

You need to check your php-files!
Parts of https://adriansweatherstation.com/websitedata.json
"update":"4/19/2024 5:35:00 AM"

"MonthTempLT":"11:19 AM"

"MonthDewPointHT":"2:13 AM"
Image
Post Reply