Tim,
The GW1000 driver does not provide WeeWX field radiation, those folks that
want radiation from th GW1000 are deriving radiation from WeeWX field
luminosity. This is done through the WeeWX StdCalibrate service by placing
an entry in weewx.conf under [StdCalibrate] [[Corrections]] as follows:
[StdCalibrate]
....
[[Corrections]]
....
radiation = luminosity/126.7 if luminosity is not None else None
Interesting regarding uvradiation disappearing after sun down. The GW1000
driver just decodes and provides the data/obs returned by the GW1000 API.
If uvradiation data is available from the GW1000 the API response includes
an identifying code and the data, if there is no uvradiation data the
identifying code and data are absent. Whilst the GW1000 driver knows
broadly what sensor suites are present it does not know exactly what
individual sensors are present at any point in time, so the driver takes
the view that if uvradiation data is not included in the API response then
a uvradiation field should not be included in the emitted loop packet.
(However, if the API included uvradiation data that was in fact 0 when the
sun was down then the loop packet emitted by the driver would contain a
uvradiation field that is 0).
You could run the driver directly with the --live-data and --debug=3
options to obtain the raw API response. If you could do a run when the sun
is up and again later when the sun is down and if you post the log output
from each I could confirm that the uvradiation data is not in the sun down
response. The command you would need to run is:
$ PYTHONPATH=/usr/share/weewx python3 -m user.gw1000 --live-data --debug=3
This should result in a number of entries in your WeeWX log that include
numerous hex digit pairs.I especially need to see the line starting 'sensor
data is'.
As for your PM2.5 sensor I will wait until you reply to Graham's post.
Gary
On Monday, 21 September 2020 at 17:56:46 UTC+10 [email protected] wrote:
> Hi Gary,
>
> I've just been testing a new install of weewx 4.1.1 and I've found that
> the GW1000 driver is not populating the radiation and pm2_5 fields of
> the database. I'm viewing the database with DB browser for SQLite.
>
> Running the driver on the command line I see the data being collected...
>
> timt@metoffice:~$ PYTHONPATH=/usr/share/weewx python3 -m user.gw1000
> --test-driver --ip-address=172.20.1.16
> Using configuration file /etc/weewx/weewx.conf
>
> Interrogating GW1000 at 172.20.1.16:45000
>
> 2020-09-19 12:18:15 AEST (1600481895): UV: 8, dateTime: 1600481895,
> dayRain: 0.8, daymaxwind: 3.1, inHumidity: 51, inTemp: 27.0,
> lightning_distance: 27, lightning_last_det_time: 1600249489,
> lightning_strike_count: None, luminosity: 95573.0, monthRain: 18.8,
> outHumidity: 64, outTemp: 22.4, pm2_52: 20.0, pm2_52_24hav: 75.0,
> pressure: 1022.2, rain: None, rainRate: 0.0, relbarometer: 1022.2,
> soilMoist1: 42, soilMoist2: 28, soilMoist3: 25, soilMoist4: 30,
> stormRain: 0.0, usUnits: 17, uvradiation: 313.8, weekRain: 1.0,
> wh41_ch1_batt: None, wh41_ch2_batt: 4, wh51_ch1_batt: 0, wh51_ch2_batt:
> 0, wh51_ch3_batt: 0, wh51_ch4_batt: 0, wh57_batt: 5, wh65_batt: 0,
> windDir: 62, windGust: 1.5, windSpeed: 1.0, yearRain: 1107.8
> 2020-09-19 12:19:15 AEST (1600481955): UV: 8, dateTime: 1600481955,
> dayRain: 0.8, daymaxwind: 3.1, inHumidity: 51, inTemp: 27.1,
> lightning_distance: 27, lightning_last_det_time: 1600249489,
> lightning_strike_count: 0, luminosity: 98378.0, monthRain: 18.8,
> outHumidity: 63, outTemp: 22.6, pm2_52: 20.0, pm2_52_24hav: 75.0,
> pressure: 1022.3, rain: 0.0, rainRate: 0.0, relbarometer: 1022.3,
> soilMoist1: 42, soilMoist2: 28, soilMoist3: 25, soilMoist4: 30,
> stormRain: 0.0, usUnits: 17, uvradiation: 313.8, weekRain: 1.0,
> wh41_ch1_batt: None, wh41_ch2_batt: 4, wh51_ch1_batt: 0, wh51_ch2_batt:
> 0, wh51_ch3_batt: 0, wh51_ch4_batt: 0, wh57_batt: 5, wh65_batt: 0,
> windDir: 286, windGust: 2.0, windSpeed: 1.3, yearRain: 1107.8
> 2020-09-19 12:20:15 AEST (1600482015): UV: 4, dateTime: 1600482015,
> dayRain: 0.8, daymaxwind: 3.1, inHumidity: 51, inTemp: 27.1,
> lightning_distance: 27, lightning_last_det_time: 1600249489,
> lightning_strike_count: 0, luminosity: 44190.0, monthRain: 18.8,
> outHumidity: 62, outTemp: 22.7, pm2_52: 20.0, pm2_52_24hav: 75.0,
> pressure: 1022.6, rain: 0.0, rainRate: 0.0, relbarometer: 1022.6,
> soilMoist1: 43, soilMoist2: 28, soilMoist3: 25, soilMoist4: 30,
> stormRain: 0.0, usUnits: 17, uvradiation: 140.0, weekRain: 1.0,
> wh41_ch1_batt: None, wh41_ch2_batt: 4, wh51_ch1_batt: 0, wh51_ch2_batt:
> 0, wh51_ch3_batt: 0, wh51_ch4_batt: 0, wh57_batt: 5, wh65_batt: 0,
> windDir: 19, windGust: 1.0, windSpeed: 0.6, yearRain: 1107.8
>
> timt@metoffice:~$ sudo wee_extension --list
> Extension Name Version Description
> Belchertown 1.2 A clean modern skin with real time streaming
> updates and interactive charts. Modeled after BelchertownWeather.com
> GW1000 0.1.0b12 WeeWX driver for GW1000 WiFi gateway.
> timt@metoffice:~$
>
> I've also noticed that once the sun goes down the uvradiation field
> disappears altogether
>
> timt@metoffice:~$ PYTHONPATH=/usr/share/weewx python3 -m user.gw1000
> --test-driver --ip-address=172.20.1.16
> Using configuration file /etc/weewx/weewx.conf
> debug level is '1'
>
> IP address obtained from command line options
> Port number obtained from station config
>
> Interrogating GW1000 at 172.20.1.16:45000
>
> 2020-09-21 17:53:28 AEST (1600674808): UV: 0, dateTime: 1600674808,
> dayRain: 0.0, daymaxwind: 4.6, inHumidity: 44, inTemp: 26.9,
> lightning_distance: None, lightning_last_det_time: None,
> lightning_strike_count: None, luminosity: 0.0, monthRain: 31.3,
> outHumidity: 56, outTemp: 26.8, pm2_52_24hav: 9.0, pressure: 1002.8,
> rain: None, rainRate: 0.0, relbarometer: 1002.8, soilMoist1: 44,
> soilMoist2: 30, soilMoist3: 28, soilMoist4: 39, stormRain: 0.0, usUnits:
> 17, weekRain: 12.5, wh41_ch1_batt: None, wh41_ch2_batt: 4,
> wh51_ch1_batt: 0, wh51_ch2_batt: 0, wh51_ch3_batt: 0, wh51_ch4_batt: 0,
> wh57_batt: 5, wh65_batt: 0, windDir: 37, windGust: 1.0, windSpeed: 0.6,
> yearRain: 1120.3
> 2020-09-21 17:53:58 AEST (1600674838): UV: 0, dateTime: 1600674838,
> dayRain: 0.0, daymaxwind: 4.6, inHumidity: 44, inTemp: 26.9,
> lightning_distance: None, lightning_last_det_time: None,
> lightning_strike_count: 0, luminosity: 0.0, monthRain: 31.3,
> outHumidity: 56, outTemp: 26.8, pm2_52_24hav: 9.0, pressure: 1002.8,
> rain: 0.0, rainRate: 0.0, relbarometer: 1002.8, soilMoist1: 44,
> soilMoist2: 30, soilMoist3: 28, soilMoist4: 39, stormRain: 0.0, usUnits:
> 17, weekRain: 12.5, wh41_ch1_batt: None, wh41_ch2_batt: 4,
> wh51_ch1_batt: 0, wh51_ch2_batt: 0, wh51_ch3_batt: 0, wh51_ch4_batt: 0,
> wh57_batt: 5, wh65_batt: 0, windDir: 37, windGust: 1.0, windSpeed: 0.6,
> yearRain: 1120.3
> ^C/usr/share/weewx/user/gw1000.py:2128: DeprecationWarning: isAlive() is
> deprecated, use is_alive() instead
> if self.thread.isAlive():
> timt@metoffice:~$
>
>
> regards
>
> Tim
>
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/d97d759a-c190-4169-b17d-8d9194442cf5n%40googlegroups.com.