I have a strange problem. Both Wind Speed and Gust are always reported as zero - but are accurately picked up by the API. Please see sample below from apiLog.txt. The station is reporting Wind and Gust > 0;however, meteotemplateLive.txt is reporting zeros.
PHP: v7.2.3
API.php v3.1
Authorized access.
Current date/time: 2018-03-14 05:50:19
api called by http
update U: 1521021015
update SW: meteobridge
update T: -1.5
update TMX: -1.5
update TMN: -1.5
update H: 52
update P: 991.3
update W: 12.2
update G: 16.2
update B: 254
update R: 0.0
update RR: 0.0
update S: 0.0
update UV: 0.0
update TIN: 25.0
update HIN: 30
Begin of common part of api script
Start handling live data
Checking if extra sensors should be logged
Extra sensors data to save in db:
add live data: D: -10.2
add live data: DTime: 1521021007
add live data: A: -4.6
add live data: ATime: 1521021007
calculated D: -10.2
calculated A: -4.6
Save meteotemplateLive.txt: {"U":1521021015,"SW":"meteobridge","T":-1.5,"TMX":-1.5,"TMN":-1.5,"H":52,"P":991.3,"W":0,"G":0,"B":254,"R":0,"RR":0,"S":0,"UV":0,"TIN":25,"HIN":30,"UTime":1521021019,"SWTime":1521021019,"TTime":1521021019,"TMXTime":1521021019,"TMNTime":1521021019,"HTime":1521021019,"PTime":1521021019,"WTime":1521021019,"GTime":1521021019,"BTime":1521021019,"RTime":1521021019,"RRTime":1521021019,"STime":1521021019,"UVTime":1521021019,"TINTime":1521021019,"HINTime":1521021019,"D":-10.2,"DTime":1521021019,"A":-4.6,"ATime":1521021019}
Start data parsing
Parsing date; Server time: 2018-03-14 05:50:19
Validating date: 1521021015 (2018-03-14 05:50:15)
Date is valid; difference with server time is -4 s
Parsing temperature
Temperature: -1.5 C
Database units: F
Temperature converted to: 29.3 F
Checking temperature is between limits specified in template Main settings.
Minimum temperature limit: -10 F
Maximum temperature limit: 110 F
Temperature is OK and within the allowed limits
Parsing maximum temperature
Max Temperature: -1.5 C
Database units: F
Temperature converted to: 29.3 F
Checking max temperature is between limits specified in template Main settings.
Minimum temperature limit: -10 F
Maximum temperature limit: 110 F
Max Temperature is OK and within the allowed limits
Parsing minimum temperature
Min Temperature: -1.5 C
Database units: F
Temperature converted to: 29.3 F
Checking min temperature is between limits specified in template Main settings.
Minimum temperature limit: -10 F
Maximum temperature limit: 110 F
Min Temperature is OK and within the allowed limits
Parsing humidity
Humidity: 52 percent
Checking humidity is between limits specified in template Main settings.
Minimum humidity limit: 0 %
Maximum humidity limit: 100 %
Humidity is OK and within the allowed limits
Parsing wind speed
Wind speed: 0 kmh
Database wind speed units: mph
Wind speed converted to: 0 mph
Checking wind speed is between limits specified in template Main settings.
Minimum wind speed limit: 0 mph
Maximum wind speed limit: 100 mph
Wind speed is OK and within the allowed limits
Parsing wind gust
Wind gust: 0 kmh
Database wind units: mph
Wind gust converted to: 0 mph
Checking wind gust is between limits specified in template Main settings.
Minimum wind gust limit: 0 mph
Maximum wind gust limit: 100 mph
Wind gust is OK and within the allowed limits
Parsing wind direction
Wind direction: 254 degrees
Wind direction is OK and within the allowed limits
Parsing daily cumulative precipitation
Precipitation: 0 mm
Database precipitation units: in
Precipitation converted to: 0 in
Checking precipitation is between limits specified in template Main settings.
Minimum precipitation limit: 0 in
Maximum precipitation limit: 200 in
Precipitation is OK and within the allowed limits
Parsing rain rate
Rain rate: 0 mm/h
Database rain units: in/h
Rain rate converted to: 0 in/h
Checking rain rate is between limits specified in template Main settings.
Minimum rain rate limit: 0 in/h
Maximum rain rate limit: 500 in/h
Rain rate is OK and within the allowed limits
Parsing solar radiation
Solar radiation: 0.0 w/m2
Checking solar radiation is between limits specified in template Main settings.
Minimum solar radiation limit: 0 W/m2
Maximum solar radiation limit: 2000 W/m2
Solar radiation is OK and within the allowed limits
No extra sensors set to log to extra alldata table.
Cached data loaded from cache/apiCache.txt.
Parsing pressure
Pressure: 991.3 hpa
Database pressure units: hpa
Checking pressure is between limits specified in template Main settings.
Minimum pressure limit: 950 hpa
Maximum pressure limit: 1100 hpa
Pressure is OK and within the allowed limits
Pressure is valid.
Calculated dew point: 13.64 F
Dew point ok.
Calculated apparent temperature: 23.72 F
Apparent temperature ok.
End time for database update based on timestamp of first cache data: 2018-03-14 05:50:03
Rounded end time for database update: 2018-03-14 05:55:00
Not yet time to update the db, saving new data to cache/apiCache.txt
Generating log file cache/apiLog.txt
ERRORS:
Strange behavior: Wind speed and Gust always Zero; yet reporting valid #'s
-
- Newbie
- Posts: 4
- Joined: Mon Feb 05, 2018 4:08 am
- Location: Virginia, USA
- Station model: Ambient WS-1200
- Software: Meteobridge
-
- Newbie
- Posts: 4
- Joined: Mon Feb 05, 2018 4:08 am
- Location: Virginia, USA
- Station model: Ambient WS-1200
- Software: Meteobridge
Re: Strange behavior: Wind speed and Gust always Zero; yet reporting valid #'s
Replying to my own post ...
As usual, Jachym found the error in short order. Somehow I had zeros (instead of 1's) in my multipliers for both rain and wind. A quick update to 1's for both and all is good again.
Thanks, Jachym!
-- M
As usual, Jachym found the error in short order. Somehow I had zeros (instead of 1's) in my multipliers for both rain and wind. A quick update to 1's for both and all is good again.
Thanks, Jachym!
-- M