Weewx sensor data comma and point problem

56 views
Skip to first unread message

Andreas Weber

unread,
Dec 17, 2019, 5:37:45 AM12/17/19
to weewx-user
Hi

I have a weather station WH3080 and I use weewx.

My problem is the comma and Point in the sensor data.

On my WH3080 hardware display all sensor data are shown with a dot, e.g. Outside temperature 20.1 inside at 19.8.

In my Weewx template I get the sensor data all with a comma! e.g. 20,1 or 19,8

The output in a Json file also comes with a comma, for example 20,1.

I need all the sensor data but with a dot !!

I have a home automation software that skips the Json data and has problems with the comma.

Can I change from comma output to point in the Weewx software .. ?



Thank you

Thomas Keffer

unread,
Dec 17, 2019, 7:32:50 AM12/17/19
to weewx-user
It's not clear what JSON file you are referring to --- there is none in WeeWX. It sounds like whoever wrote the extension to create the JSON file forgot about locales, and that some locales use a comma as the decimal delimiter, some use a period. He needs to fix the extension so that it overrides the locale.

-tk

--
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/1d0f306a-1a9d-4022-a58f-35f35dec6551%40googlegroups.com.

Andreas Weber

unread,
Dec 18, 2019, 1:04:53 PM12/18/19
to weewx-user
Has solved itself, I have solved the problem, now I have all sensor data with point.

Many weather websites on the net have this comma display no matter what language.

A setting in Raspberry pi Localization is necessary, mine was in German but English is necessary.

If it is not English, you have comma for the sensor data ....

Thanks to Mr. Keffer for the way to the solution. :)
Reply all
Reply to author
Forward
0 new messages