matthewwall / weewx-crt

emit data in cumulus realtime format
GNU General Public License v3.0
2 stars 4 forks source link

NULL data for some values with Cumulus Real-Time plugin #4

Closed c0by85 closed 4 years ago

c0by85 commented 4 years ago

hi,

i've installed the crt plugin. works fine, looks good, but i didn't get the right data for some values.

here an example.

03.08.20 13:52:49 NULL NULL NULL 4.0 4.1 278 0.0 2.6 NULL W 1 km/h C hPa mm 26.6 NULL 10.6 216.3 8.0 NULL NULL NULL NULL 18.4 01:38 16.4 04:44 7.2 13:40 14.2 13:30 1013.2 00:02 1012.0 05:40 4.1.1 0 9.4 NULL NULL NULL NULL NULL 290 0.0 0 1 0 WNW NULL m NULL 8.4 825.2 0

<?xml version="1.0" encoding="ISO-8859-15" ?>
<maintag>
<misc><data misc="refresh_time">2020.08.03. 141659</data></misc>
<misc><data misc="forecast_nr">0</data></misc>
<realtime><data misc="winddir">357</data></realtime>
<realtime><data misc="location">Siewisch</data></realtime>
<realtime><data realtime="forecast_text">None</data></realtime>
<realtime><data realtime="sunrise">1596425366.0382288</data></realtime>
<realtime><data realtime="sunset">1596480492.8021495</data></realtime>
<realtime><data realtime="temp">None</data></realtime>
<realtime><data realtime="intemp">None</data></realtime>
<realtime><data realtime="hum">None</data></realtime>
<realtime><data realtime="inhum">None</data></realtime>
<realtime><data realtime="press">None</data></realtime>
<realtime><data realtime="presstrendval">None</data></realtime>
<realtime><data realtime="dew">None</data></realtime>
<realtime><data realtime="current_rainfall">0.0</data></realtime>
<realtime><data realtime="last_hour_rainfall">0.0</data></realtime>
<realtime><data realtime="avg_windspeed">3.0094732800000004</data></realtime>
<realtime><data realtime="high_windgust">11.55508992</data></realtime>
<realtime><data realtime="windunit">km/h</data></realtime>
<realtime><data realtime="wchill">None</data></realtime>
<realtime><data realtime="avg_dir">NNW</data></realtime>
<realtime><data today="today_temp_high">18.444444444444443</data></realtime>
<realtime><data today="today_temp_low">16.444444444444443</data></realtime>
<realtime><data today="today_press_high">1013.1547394414431</data></realtime>
<realtime><data today="today_press_low">1011.9741238332268</data></realtime>
<realtime><data today="today_hour_rainfall">0.0</data></realtime>
<realtime><data today="today_rainfall">2.5999999999999996</data></realtime>
<realtime><data today="today_max_windspeed">7.18572096</data></realtime>
<realtime><data today="today_max_windgust">14.178320640000003</data></realtime>
<realtime><data yesterday="yesterday_rainfall">7.999999999999992</data></realtime>
</maintag>
Aug  3 14:12:20 pi2 weewx[1284] DEBUG weewx.engine: Finished loading service user.crt.CumulusRealTime
Aug  3 14:15:41 pi2 weewx[1700] DEBUG weewx.engine: Loading service user.crt.CumulusRealTime
Aug  3 14:15:41 pi2 weewx[1700] INFO user.crt: service version is 0.21
Aug  3 14:15:41 pi2 weewx[1700] INFO user.crt: realtime txt output goes to /var/ram/realtime.txt
Aug  3 14:15:41 pi2 weewx[1700] INFO user.crt: realtime xml output goes to /var/ram/realtime.xml
Aug  3 14:15:41 pi2 weewx[1700] INFO user.crt: 'None' values will be displayed as NULL
Aug  3 14:15:41 pi2 weewx[1700] INFO user.crt: units will be displayed as METRIC
Aug  3 14:15:41 pi2 weewx[1700] INFO user.crt: pressure units will be displayed as hPa
Aug  3 14:15:41 pi2 weewx[1700] INFO user.crt: temperature units will be displayed as degree_C
Aug  3 14:15:41 pi2 weewx[1700] INFO user.crt: wind units will be displayed as km_per_hour
Aug  3 14:15:41 pi2 weewx[1700] INFO user.crt: cloudbase units will be displayed as meter
Aug  3 14:15:41 pi2 weewx[1700] INFO user.crt: zambretti forecast: False
Aug  3 14:15:41 pi2 weewx[1700] INFO user.crt: binding is loop
Aug  3 14:15:41 pi2 weewx[1700] DEBUG weewx.engine: Finished loading service user.crt.CumulusRealTime

and here the part from the config. yes i forced metric values, a lot. ;-)

# Options for extension 'crt'
[CumulusRealTime]
    filename = /var/ram/realtime.txt
    unit_system = METRIC
    wind_units = km_per_hour
    pressure_units = hPa
    cloudbase_units = meter
    date_separator = "."
    temperature_units = degree_C
 # weewxd --version && lsb_release -a && uname -a
4.1.1
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 10 (buster)
Release:        10
Codename:       buster
Linux pi2.fu110.de 5.4.51-v7+ #1327 SMP Thu Jul 23 10:58:46 BST 2020 armv7l GNU/Linux

weewx with python 3.

Have I forgotten something?

bawe commented 4 years ago

Same issue since on weewx 4.1.1 python3 crt 0.21

https://weewx.bawe.eu/realtime.txt -> 25/09/20 21:38:52 4.6 95 3.9 1.6 0.0 NULL 0.0 28.6 1002.2 --- 0 km/h C mb mm 129.8 -0.2 137.4 968.4 0.4 21.7 51 4.6 -0.9 15.6 00:05 4.3 20:15 19.3 10:15 43.5 10:10 1003.2 01:50 1000.0 08:15 4.1.1 0 6.4 4.6 NULL NULL 0.0 NULL 191 0.2 0 0 0 SSW NULL m NULL 12.0 NULL 0

-> ok, this helps for me: [StdWXCalculate] [[Calculations]] appTemp = prefer_hardware