aprsworld / craneWeb

Crane website for rdLogger units.
0 stars 0 forks source link

NaN shown in wind speed and wind gust on current conditions page #25

Open aprsandrew opened 6 years ago

aprsandrew commented 6 years ago

I've noticed occasionally the website will show the current windspeed values as NaN. It seems to be random and doesn't happen often. I believe I've discovered one potential cause for this. There are times when the status date (in the status table) for the newest packet received can be one second off of the actual time-stamp in the crane logger data table. If this occurs, the website is trying to find the data entry with the status time-stamp, but it can't find it because the actual data entry is 1 second off.

aprsandrew commented 6 years ago

I just observed this issue again when one of the 15 minute status packets came in. The status packet arrived, which updated the time-stamp in the status table. The website current conditions display switched to showing NaN for the wind speed values because the status date didn't match any time stamp in the data table.