Weewx convert units problems....

217 views
Skip to first unread message

Julio Morais

unread,
Dec 17, 2019, 1:51:31 PM12/17/19
to weewx-user
I need someone to help me properly configure the conversion of units from ºF to ºC. I have been studying the WEEWX manual for over a month as well as some examples on Gitub but I have not been successful.
My installation by SDR and RTL_433 is working fine on US drives. Now, when I convert to WEEWX.CONF ([StdReport} .... / [[[[Groups]]]] Apache simply stops updating readings.
Any suggestion?

Thomas Keffer

unread,
Dec 17, 2019, 3:46:26 PM12/17/19
to weewx-user
You're going to have to give us more information.

1. What skin are you using?

2. When you say "I convert to WEEWX.CONF..." what do you mean? Did you edit the section [StdReport]? What does it look like?

3. What do you mean by "Apache simply stops updating readings." Do you mean that the HTML files are not getting updated? How about the plots?

4. Finally, the log is always essential to diagnose problems. See the article Help! Posting to weewx-user.

-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/76d0c682-cb14-4b6f-9c05-37682e1b7276%40googlegroups.com.

Xant

unread,
Dec 18, 2019, 12:28:20 AM12/18/19
to weewx-user
Julio

For clarification, let's start with the basics. Have you properly checked "target_unit = US    # Options are 'US', 'METRICWX', or 'METRIC' " in weewx.conf?

X

Thomas Keffer

unread,
Dec 18, 2019, 6:07:12 AM12/18/19
to weewx-user
NO!  The option target_unit is for the units in the database. Don't mess with that. It has nothing to do with how the units are displayed. If you change it now, you'll wreck your database.

Let's see your [StdReport] section.

-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.

Julio Morais

unread,
Dec 18, 2019, 7:04:18 AM12/18/19
to weewx...@googlegroups.com
Hi Thomas,

Wait a few hours because I am reinstalling everything again (Debian, WEEWX, SDR .... etc) to get back to a cleaner install. I'll be back soon with the requested information.
Thank you!



--
Julio Morais 
Ipatinga, MG
BRASIL


Julio Morais

unread,
Dec 18, 2019, 6:25:31 PM12/18/19
to weewx...@googlegroups.com
Hi Thomas,
After a battle to reinstall everything again, some more conflicts, I finally got it! I did nothing about the units that remain in ° F. I await instructions!
Attached are some files that demonstrate the operation of SDR and RTL_433; also skin.conf (Seasons). Apache had problems but is now updating well and real.
Regarding the drives, I suppose I would have to configure both Weewx.conf and skin.conf, is that it?

Thank you!
json.txt
skin.txt
RTL_433.JPG
weewx_conf.txt
Apache.JPG

Thomas Keffer

unread,
Dec 18, 2019, 6:32:09 PM12/18/19
to weewx-user
If you want metric units, just follow the instructions in the section How to change units in the Customizing Guide.

-tk

Julio Morais

unread,
Dec 19, 2019, 12:09:43 PM12/19/19
to weewx...@googlegroups.com
Hi Thomas,

That simple?!
This was the same operation I did in days past that crashed Apache..... but now it's working fine, the readings as configured and the updated date and time!
Now I need to study why the wind does not appear ?! Barometer is installed on RPI but I last configuration was not good....I´ll try again .
image.png


Thanks so much!

Julio Morais

unread,
Dec 19, 2019, 3:03:34 PM12/19/19
to weewx...@googlegroups.com
Hi Thomas,

RTL_433 is reading wind_speed in km / h and temp in ºF. In StdReport ... Groups I converted all drives, including Wind to km_per_hour. Is this not the reason why I don't read wind_speed in Apache (/A)
Sorry about this question!  

Thomas Keffer

unread,
Dec 19, 2019, 4:51:27 PM12/19/19
to weewx-user
I suspect the reason why you are not seeing wind speed is that the SDR is not receiving wind speed. 

Stop WeeWX, then run it directly from the command line. As it runs, it will print out the LOOP packets. Look for the type "windSpeed". Is it there? Do the values make sense?

If not, then the SDR is not receiving it.

-tk
 

Julio Morais

unread,
Dec 19, 2019, 5:03:55 PM12/19/19
to weewx...@googlegroups.com
SDR is receiving....look by attachment,

SDR Test.txt

Thomas Keffer

unread,
Dec 19, 2019, 5:10:11 PM12/19/19
to weewx-user
OK, but when you run weewxd, what values are you getting in the LOOP packets?

Julio Morais

unread,
Dec 19, 2019, 5:10:34 PM12/19/19
to weewx...@googlegroups.com
Thomas, look graphics page....there was Wind print yesterday before insert weewx-sdr drive....
Wind_speed test.JPG

Thomas Keffer

unread,
Dec 19, 2019, 5:12:41 PM12/19/19
to weewx-user
Yes, but what values of windSpeed are you seeing in the LOOP packets?

We also need to check the database, but let's start with the LOOP packets.

Julio Morais

unread,
Dec 19, 2019, 5:16:14 PM12/19/19
to weewx...@googlegroups.com
weewxd test.txt

Thomas Keffer

unread,
Dec 19, 2019, 5:32:15 PM12/19/19
to weewx-user
Just as suspected, no windSpeed. You have "Wind" but, you need "windSpeed".

I suspect something is wrong with your sensor map. The SDR driver is not part of WeeWX, so I am not an expert on it. Nevertheless, looking through your earlier post of weewx.conf, we see this:

[[sensor_map]]
       
        Rain = rain_total.0462.Acurite5n1Packet
        batt = battery.0462.Acurite5n1Packet
        Wind = wind_speed.0462.Acurite5n1Packet
        outTemp = temperature.0462.Acurite5n1Packet
        outHumidity = humidity.0462.Acurite5n1Packet

Change
  Rain to rainTotal
Change
  Wind to windSpeed

While you're at it, the keyword "batt" is probably wrong as well. I don't know what the Belchertown skin expects (it's also not part of WeeWX), but you probably want either "txBatteryStatus", or "windBatteryStatus".

See if that helps.

-tk





Julio Morais

unread,
Dec 19, 2019, 5:36:00 PM12/19/19
to weewx...@googlegroups.com
OK, I´ll try that! I see rain =0 but not NA....the Wind is=NA not=0 and not  direction too!
See you later after new tests!
TKS!

Julio Morais

unread,
Dec 19, 2019, 6:31:55 PM12/19/19
to weewx...@googlegroups.com
Yes, Wind speed starting! About Wind direction....nothing!
Wind_direction test.JPG

Thomas Keffer

unread,
Dec 19, 2019, 6:56:44 PM12/19/19
to weewx-user
You will need the same treatment for wind direction (and, perhaps, other types as well). Take a look in the attachment "SDR test.txt" you sent earlier. It shows a type wind_dir.0462.Acurite5n1Packet. I suspect you want to add this to your sensor map:

windDir = wind_dir.0462.Acurite5n1Packet

As I said, there may be others as well.

-tk


Julio Morais

unread,
Dec 19, 2019, 7:47:31 PM12/19/19
to weewx...@googlegroups.com
Hi Thomas!

I was already correcting the Wind direction configuration landTotal Rain also, and I removed the batt. It seems is working!
Now I will leave 2 days in operation because I will travel tomorrow and return on Saturday.Then we'll see
Thank you so much for the lesson you gave me!
About barometer BMP180 I will try to configure again next week, after consolidating weewx and SDR, studying in forum and google.
Thank you!

Reply all
Reply to author
Forward
0 new messages