|
Post by rodskyweather on Feb 22, 2021 5:13:00 GMT -8
My weather station is in Panama and now is the windy season. We have strong winds and very strong gusts at times. The data being reported to Weather Underground seem excessively high (https://www.wunderground.com/dashboard/pws/IDOLEG4/graph/2021-02-21/2021-02-21/weekly). A gust of 112.8 mph seems unrealistic.
Is there a way to calibrate the anemometer ?
Rod
|
|
|
Post by SDL on Feb 22, 2021 14:14:21 GMT -8
SkyWeather has a problem with calculating gusts. I would suggest you set the gusts to 0.0
The problem is the way the Raspberry Pi processes interrupts. It just doesn't do a consistent job (and this is understandable because of the way the linux OS works - it is NOT a real time OS or no-OS at all (like an Arduino). It will screw up).
It isn't a calibration problem. This is fixed in SkyWeather2 by doing the gust calculation in the sensor rather than on the Pi.
BP
|
|
smurphy
Full Member
Posts: 169
Raspberry Pi: Yes
Other Device: many ...
|
Post by smurphy on Feb 23, 2021 1:21:25 GMT -8
Actually - we could use a RT kernel. Don't know about Raspberry PI's ... Think wil check it out.
There is actually a RT Kernel for the PI's, audio project.
It is in french, but as I live in france, I should not be an issue :}
When I'll have finished installing some clusters for work, and if time permits, I may check it out.
|
|
|
Post by rodskyweather on Feb 24, 2021 11:50:30 GMT -8
SkyWeather has a problem with calculating gusts. I would suggest you set the gusts to 0.0 The problem is the way the Raspberry Pi processes interrupts. It just doesn't do a consistent job (and this is understandable because of the way the linux OS works - it is NOT a real time OS or no-OS at all (like an Arduino). It will screw up). It isn't a calibration problem. This is fixed in SkyWeather2 by doing the gust calculation in the sensor rather than on the Pi. BP Since I'm a newbie to this, where would I set the gusts to a fixed value ?
|
|
|
Post by SDL on Feb 24, 2021 20:40:58 GMT -8
Line 870 of SkyWeather.py
Change:
currentWindGust = weatherStation.get_wind_gust() To:
currentWindGust = 0.0
|
|
rich
New Member
Posts: 27
|
Post by rich on Jul 19, 2021 19:19:50 GMT -8
I seem to have a problem also, but with average wind speed going to WU. My values seem very low. I have two stations next to each other. The second station is an AccuRite system that has been running for several years. The wind speed report by the AR station is comparable with the other stations in the immediate area, but the SDL station is showing wind speeds that are 10 - 20 times lower. I have the debug messaging turned on in the configuration file for SW. Looking at the data being sent to WU, it is showing wind as km/h instead of m/h. Is this correct? Does WU do the conversion?
|
|
|
Post by SDL on Jul 20, 2021 6:56:50 GMT -8
|
|
rich
New Member
Posts: 27
|
Post by rich on Jul 20, 2021 9:00:37 GMT -8
I'm using the following version:
March 7, 2021 - Version 023
I'm using one of you SDL SD cards that I purchased in the last month.
|
|
|
Post by SDL on Jul 21, 2021 7:12:29 GMT -8
Update the SkyWeather2 software. go into the SkyWeather2 directory and do a git pull.
Then follow the directions for updating the software in the README.md
Then let's see what is happening.
BP
|
|
rich
New Member
Posts: 27
|
Post by rich on Jul 21, 2021 17:32:25 GMT -8
Did the upgrade and now at version 026.3. Started SkyWeather and have the following results. As can be seen the data being sent is showing kph for wind speed and gust: (ex. {\"units\":\"kph\",\"name\":\"WindSpeed\",\"value\":0},{\"value\":0,\"units\":\"kph\",\"name\":\"WindGust\"}) Currently not having any wind, so values are zero.
Results from the terminal are:
pi@SkyWeather:~/SDL_Pi_SkyWeather2 $ sudo python3 SkyWeather2.py ./SkyWeather2.JSON File exists
########################################################## SkyWeather2 Weather Station Version 026.3 - SwitchDoc Labs
Program Started at:2021-07-21 20:16:24 ##########################################################
Starting pigpio daemon b'' b'' Pi Camera Revision ov5647 ---------------------- BMP280: Present SkyCam: Present OLED: Not Present SunAirPlus/SunControl: Not Present SolarMAX: Not Present DustSensor: Present
UseBlynk: Disabled UseWSLIGHTNING: Disabled UseWSAQI: Disabled UseWSSKYCAM: Disabled UseMySQL: Enabled UseMQTT: Disabled Check WLAN: Not Present WeatherUnderground: Present UseWeatherStem: Present ---------------------- ----------------- Scheduled Jobs -----------------
###### Jobstore default: patTheDog (trigger: interval[0:00:20], next run at: 2021-07-21 20:19:10 CDT) readWiredSensors (trigger: interval[0:00:30], next run at: 2021-07-21 20:19:20 CDT) tick (trigger: interval[0:01:00], next run at: 2021-07-21 20:19:50 CDT) printState (trigger: interval[0:01:00], next run at: 2021-07-21 20:19:50 CDT) takeSkyPicture (trigger: interval[0:01:00], next run at: 2021-07-21 20:19:50 CDT) read_AQI (trigger: interval[0:12:00], next run at: 2021-07-21 20:30:50 CDT) barometricTrend (trigger: interval[0:15:00], next run at: 2021-07-21 20:33:50 CDT) writeWeatherRecord (trigger: interval[0:15:00], next run at: 2021-07-21 20:33:50 CDT) writeITWeatherRecord (trigger: interval[0:15:00], next run at: 2021-07-21 20:33:50 CDT) rebootPi (trigger: cron[day='5-30/5', hour='0', minute='4'], next run at: 2021-07-25 00:04:00 CDT) ----------------- starting 433MHz scanning ###### ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2021-07-21 20:19:50.014310 ------------- Current State ------------- ------------- ------Patting The Dog------- latest MainSensor Reading= Never MainDeviceNumber= OutdoorTemperature = 0.0 OutdoorHumidity = 0.0 latest Indoor Sensor Reading= Never IndoorDeviceNumber= IndoorTemperature = 0.0 IndoorHumidity = 0.0 Rain60Minutes = 0.0 SunlightVisible = 0.0 SunlightUVIndex = 0.0 WindSpeed = 0 WindGust = 0 WindDirection = 0.2 TotalRain = 0 BarometricTemperature = 33.36 BarometricPressure = 99.88997 Altitude = 188.976 BarometricPressureSeaLevel = 102.15783 BarometricTemperature = 33.36 barometricTrend = True pastBarometricReading = 0 AQI = 0.0 Hour24_AQI = 0.0 WS_AQI = 0.0 WS_Hour24_AQI = 0.0 Main Battery Status = OK CPU Temperature = 0.0 ------------- runRainbow = False flashStrip = False runOLED = True ------------- Last_Event = My Last Event ------------- batteryVoltage 0 batteryCurrent 0 solarVoltage 0 solarCurrent 0 loadVoltage 0 loadCurrent 0 batteryPower 0 solarPower 0 loadPower 0 batteryCharge 0 SolarMAX Inside Temperature 0.0 SolarMAX Inside Humidity 0.0 SolarMAX Last Received Never ------------- ------------- ------------- fanState = False ------------- -------------------- SkyCam Picture Taken -------------------- mySkyCameraText= SkyWeather2 V026.3 21-Jul-2021 20:19:53 Wind Speed: 0.0MPH Wind Gust: 0.0MPH Temp: 32.0 F -------------------- SkyCam Package Sending -------------------- API Key: xxxxxxxxxxxxxxxxxxxxxxxxxxx ------->Sea Level 1021.5818 The pastebin URL is (r.text):{"jpg":"https://cdn.weatherstem.com/user_generated/skyweather/rlr3656/latest.jpg","internal":{"readings":"[{\"value\":0,\"name\":\"OutsideTemperature\",\"units\":\"C\"},{\"units\":\"%\",\"name\":\"OutsideHumidity\",\"value\":0},{\"name\":\"InsideTemperature\",\"units\":\"C\",\"value\":0},{\"value\":0,\"units\":\"%\",\"name\":\"InsideHumidity\"},{\"value\":0,\"name\":\"RainInLast60Minutes\",\"units\":\"mm/h\"},{\"units\":\"lux\",\"name\":\"VisibleSunlight\",\"value\":0},{\"units\":\"lux\",\"name\":\"IRSunlight\",\"value\":\"0.0\"},{\"value\":\"0.0\",\"units\":\"lux\",\"name\":\"UVSunlightt\"},{\"units\":\"kph\",\"name\":\"WindSpeed\",\"value\":0},{\"value\":0,\"units\":\"kph\",\"name\":\"WindGust\"},{\"units\":\"degrees\",\"name\":\"WindDirection\",\"value\":0.2},{\"name\":\"totalRain\",\"units\":\"mm\",\"value\":0},{\"units\":\"hPa\",\"name\":\"BarometricPressure\",\"value\":998.9032},{\"name\":\"Altitude\",\"units\":\"m\",\"value\":188.976},{\"units\":\"hPa\",\"name\":\"SeaLevelPressure\",\"value\":1021.5818},{\"value\":\"Rising\",\"units\":\"\",\"name\":\"BarometricTrend\"},{\"value\":0,\"name\":\"OutdoorAirQuality\",\"units\":\"AQI\"}]","record":"1626916796","image":"1626916796","station":{"name":"SkyWeather2","handle":"rlr3656"}},"json":"https://cdn.weatherstem.com/user_generated/skyweather/rlr3656/latest.json"} ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2021-07-21 20:20:50.012824 -------------
|
|
|
Post by SDL on Jul 22, 2021 7:40:04 GMT -8
What is happening on WeatherUnderground?
BP
|
|
rich
New Member
Posts: 27
|
Post by rich on Jul 22, 2021 16:39:22 GMT -8
Readings appear low compared to other stations in the area. Most of the time about a multiple of 10 low. I realize that the others stations have different factors involved that affect their readings based on their locations, but I would expect such a big difference. I also have a second station next to the WeatherRack that has been in service for several years with reading that are comparable to the other surrounding stations so not sure what to think. I need to collect better and more data to draw a good conclusion. I have been shutting the system down to do backups of the SD card so that I don't lose my progress while I add the AQ sensor and lightning. Keeps me from starting from scratch if I make a mistake.
I realized that the response I posted early from the system is showing the data that is being sent to SkyWeather (WeatherStem) and not Weather Underground. My mistake. Even so, the values seem low. Is there any place where I can see the data being transmitted to WU? This would help a lot. Also is there someplace that explains all of the conversions to the different applications where data is displayed? Trying to trace this down through the programs is fairly difficult for me since I am new to Python and all.
I'm looking at the data coming from the WeatherRack. An example is below.
{"time" : "2020-11-22 06:40:15", "model" : "SwitchDoc Labs FT020T AIO", "device" : 12, "id" : 0, "batterylow" : 0, "avewindspeed" : 2, "gustwindspeed" : 3, "winddirection" : 18, "cumulativerain" : 180, "temperature" : 1011, "humidity" : 27, "light" : 1432, "uv" : 4, "mic" : "CRC"}
It shows an average windspeed of 2. In the WeatherRack installation manual, the measurement specifications say this is in meter/second, so 2 m/s. The data descriptions for the WeatherRack (below) say the average windspeed in m/s * 10. What does this mean? Do I multiply the 2 m/s by 10 thus get 20 m/s or is the actual value from the WeatherRack 0.2 m/s (2 m/s divided by 10)? Can you explain?
Data Descriptions: • time: Time of Message Reception • model: SwitchDoc Labs FT020T AIO • device: Serial Number of the sensor - changed on powerup but can be used to discriminate from other similar sensors in the area • batterylow: 0 if battery good, 1 if battery is getting low • avewindspeed: Average Wind Speed in m/s *10 • gustwindspeed: Last Gust Speed in m/s *10 • winddirection: Wind Direction in degrees from 0-359. • cumulativerain: Total rain since last reset or power off. in mm.*10 • temperature: outside temperature in F with 400 offset and *10 T = (value-400)/10.0 • humidity: Relative Humidity in %. light: • Visible Sunlight in lux. uv: UV Index * 10 (meaning an uv index of 0.8 is in the example message above)
|
|
|
Post by SDL on Jul 22, 2021 17:40:05 GMT -8
*10 means that you divide the reading by 10 to get the results.
Go into the WEatherUnderground.py file and add a print statement to print out what is being sent to WU. Then let's look at that.
BP
|
|