For anyone discussing this new GW1000 API driver in the WeeWX development section STOP. Use this user section instead to discuss its use.
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/91d513a8-cf9a-4cf2-8e16-261a02b67bebo%40googlegroups.com.
???
On Thu, 23 Jul 2020 at 19:39, galfert <gal...@gmail.com> wrote:
For anyone discussing this new GW1000 API driver in the WeeWX development section STOP. Use this user section instead to discuss its use.--
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 weewx...@googlegroups.com.
$ PYTHONPATH=/usr/share/weewx python -m user.gw1000 --help
$ wee_config --reconfigure --driver=user.gw1000
[GW1000]
....
ip_address = 1.2.3.4
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/6cb996ae-fc26-4cb8-85ce-b408a9cefa5dn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/bf6c137d-9973-4a6c-896f-6d43b535ab94n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/3edbf050-313a-49ec-9fab-3f1faf99beddn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/48e7cbff-e6d4-4b0b-8b5c-c28ff29b623en%40googlegroups.com.
When running reconfigure with prompts, there are two changes, that occured in my case without asking:group_pressure turns to inHg, and group_speed and group_speed2 turn to mile_per_hour and ~2 respectively.You better diff old and new version before restarting.
In addition, 'radiation': 'solar_radiation', is missing in default_field_map in gw1000.py.
[StdCalibrate]
[[Corrections]]
new_obs = outTemp * 2.5 + 2 * (windSpeed - barometer)
That’s exactly what I am seeing. I am going to look at the interceptor map for WH65 and see where things appear to deviate.
gjr80 writes:
> Some folks derive field radiation from luminosity though I believe the
> relationship is somewhat complex.
I'm not at all clear on what labels the various stations use.
I would use "solar irradiance" or less pedantically "solar radiation".
The term "field radiation" is interesting and I have not previously
encountered it.
For the arriving light per unit area, the term is Illuminance.
Luminosity strictly refers to total power departing a light source.
https://en.wikipedia.org/wiki/Solar_irradiance
https://en.wikipedia.org/wiki/Illuminance
One cannot accurately convert illuminance to irradiance, because
illuminance applies wavelength-based weights to power based on human
visual response. So, two light sources arriiving at a surface, having
the same illuminance, will in general have differenrt irradiances. But
people assume "sunlight" and then onc can make a reasonable
approximation.
My previous rant:
https://github.com/weewx/weewx/wiki/Watts-and-lux
and something I just found that seems interesting
https://ieee-dataport.org/open-access/conversion-guide-solar-irradiance-and-lux-illuminance
The setting 'radiation': 'solar_radiation', is copied from interceptor.py, which is propagated into radiation in weewx. When changing to gw1000 api driver, the data are lost. So I went back to the interceptor.py. You can see the little gap in the graph during my test of the gw1000 driver:
$ PYTHONPATH=/home/weewx/bin python -m user.gw1000 --debug=3 --sensors
$ PYTHONPATH=/home/weewx/bin python -m user.gw1000 --debug=3 --live-data
root@RaspBee:/usr/share/weewx/user# PYTHONPATH=/usr/share/weewx python3 -m user.gw1000 --debug=3 --sensors
Using configuration file /etc/weewx/weewx.conf
Interrogating GW1000 at 192.168.100.150:45000
Sensor Status
WH65 sensor ID: f9 signal: 0 battery: 4
WS68 sensor is registering...
WS80 sensor is registering...
WH40 sensor is registering...
WH32 sensor is registering...
WH31 ch1 sensor is registering...
WH31 ch2 sensor is registering...
WH31 ch3 sensor is registering...
WH31 ch4 sensor is registering...
WH31 ch5 sensor is registering...
WH31 ch6 sensor is registering...
WH31 ch7 sensor is registering...
WH31 ch8 sensor is registering...
WH51 ch1 sensor is registering...
WH51 ch2 sensor is registering...
WH51 ch3 sensor is registering...
WH51 ch4 sensor is registering...
WH51 ch5 sensor is registering...
WH51 ch6 sensor is registering...
WH51 ch7 sensor is registering...
WH51 ch8 sensor is registering...
WH41 ch1 sensor is registering...
WH41 ch2 sensor is registering...
WH41 ch3 sensor is registering...
WH41 ch4 sensor is registering...
WH57 sensor is registering...
WH55 ch1 sensor is registering...
WH55 ch2 sensor is registering...
WH55 ch3 sensor is registering...
WH55 ch4 sensor is registering...
root@RaspBee:/usr/share/weewx/user# PYTHONPATH=/usr/share/weewx python3 -m user.gw1000 --debug=3 --live-data
Using configuration file /etc/weewx/weewx.conf
Interrogating GW1000 at 192.168.100.150:45000
GW1000 live sensor data: absbarometer: 1005.9, datetime: 1595765605, daymaxwind: 8.4, gustspeed: 3.0, inhumid: 76, intemp: 20.7, light: 117722.0, outhumid: 82, outtemp: 19.8, rainday: 10.2, rainevent: 10.2, rainmonth: 83.9, rainrate: 0.0, rainweek: 10.2, rainyear: 85.7, relbarometer: 1008.1, uv: 367.5, uvi: 9, winddir: 27.8, windspeed: 1.8
Using configuration file /etc/weewx/weewx.conf
Interrogating GW1000 at 192.168.100.150:45000
GW1000 live sensor data: absbarometer: 1006.2, datetime: 1595765980, daymaxwind: 8.4, gustspeed: 0.7, inhumid: 76, intemp: 20.7, light: 24226.0, outhumid: 82, outtemp: 19.7, rainday: 10.2, rainevent: 10.2, rainmonth: 83.9, rainrate: 0.0, rainweek: 10.2, rainyear: 85.7, relbarometer: 1008.4, uv: 49.1, uvi: 1, winddir: 27.4, windspeed: 0.3
$ sudo mv /home/weewx/bin/user/gw1000.py /home/weewx/bin/user/gw1000_orig.py
$ sudo wget -P /home/weewx/bin/user https://raw.githubusercontent.com/gjr80/weewx-gw1000/v0.1.0b6/bin/user/gw1000.py
$ sudo mv /usr/share/weewx/user/gw1000.py /usr/share/weewx/user/gw1000_orig.py
$ sudo wget -P /usr/share/weewx/user https://raw.githubusercontent.com/gjr80/weewx-gw1000/v0.1.0b6/bin/user/gw1000.py
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/871c9da9-3218-4bcf-9b14-321678e4e8f0n%40googlegroups.com.
GW1000 frequency: 0 (433MHz)
GW1000 sensor type: 0 (WH24)
GW1000 decoded UTC: 2020-07-28 10:31:46 UTC (1595932306)
GW1000 timezone: 94
$ PYTHONPATH=/home/weewx/bin python -m user.gw1000 --system-params
Using configuration file /home/weewx/weewx.conf Interrogating GW1000 at 192.168.1.234:45000 GW1000 frequency: 1 (Unknown) GW1000 sensor type: 1 (WH65) GW1000 decoded UTC: 2020-07-28 07:37:39 UTC (1595921859) GW1000 timezone: 39
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/d6b32000-d7a8-483d-9822-6b47d24e1b23o%40googlegroups.com.
Using configuration file /home/weewx/weewx.conf Interrogating GW1000 at 192.168.1.234:45000
GW1000 frequency: 1 (868Mhz) GW1000 sensor type: 1 (WH65) GW1000 decoded UTC: 2020-07-28 07:52:28 UTC (1595922748) GW1000 timezone: 39
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscribe@googlegroups.com.
$ sudo mv /home/weewx/bin/user/gw1000.py /home/weewx/bin/user/gw1000_orig.
py
$ sudo wget -P /home/weewx/bin/user https://raw.githubusercontent.com/gjr80/weewx-gw1000/v0.1.0b7/bin/user/gw1000.py
$ sudo mv /usr/share/weewx/user/gw1000.py /usr/share/weewx/user/gw1000_orig.
py
$ sudo wget -P /usr/share/weewx/user https://raw.githubusercontent.com/gjr80/weewx-gw1000/v0.1.0b7/bin/user/gw1000.py
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/4636d1ee-f397-4679-907c-45981a165199o%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.
Gary
gw1000 → weewx
rainday → dayRain (not passed thru unchanged)rainhour → hourRain (not passed thru unchanged)rainmonth → monthRain (not passed thru unchanged)uvi → UV (misspelt as uv)uv → radiation (misspelt as uvRadiation)
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/F82E7D44-2090-4C09-9BA6-8355FE73841F%40gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscribe@googlegroups.com.
--default-map
command line option--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/3KF7XMLQGsA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAOAVAefsj387Cx%2B8ffLt%2BjLS3vhnrwGp2%2Bpy3zUeuc2h7etKDg%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/F82E7D44-2090-4C09-9BA6-8355FE73841F%40gmail.com.
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/3KF7XMLQGsA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/a9efe943-d23e-4458-b475-3daed4d3cac5o%40googlegroups.com.
The Customized upload in WU format only includes baromin. It is only when you use Ecowitt format that you see baromrelin and baromabsin.
Yes the Relative Pressure out these stations is not technically totally accurate Sea Level Pressure but perhaps that is why they call it Relative pressure and they don't try to pass it up as Sea Level Pressure.
Gary,WU expects you to upload Sea Level Pressure. The best that is an equivalence to is Relative pressure if the station has been properly calibrated.The Customized upload in WU format only includes baromin. It is only when you use Ecowitt format that you see baromrelin and baromabsin.
On Thu, Jul 30, 2020, 1:19 AM gjr80 wrote:
Thanks for the input Paul, I believe your are correct. As soon as you see Rel Offset being calculated as an altitude only offset it is pretty clear it is altimeter and that means the pressure you are offsetting from must be pressure. I am not sure why I put down barometer, perhaps it was the liberal of the word barometer throughout the Ecowitt calibration instructions.Will be fixed in b8.One nagging thought I have have had this afternoon is what pressure value is the GW1000 uploading to WU, WU expects what WeeWX calls barometer but on the face of it that is the one pressure value the GW1000 does not have. I did set my GW1000 to do a customised upload in WU protocol to one of my VMs and it included fields named baromabsin and baromrelin being the two GW1000 pressure values in inches Hg. If I had the time I would intercept the GW1000 actual upload to WU but I somehow suspect it will be the same.GaryOn Thursday, 30 July 2020 10:50:16 UTC+10, Paul Anderson wrote:
Gw1000 produces 2 pressure readings:Should we map 'altimeter': 'relbarometer' ?As defined by Ecowitt Calibration of barometric pressure settingsAbsolute Pressure"Absolute barometric pressure, can be calibrated at manufacturing time by comparing with a precise instrument that measures pressure at the same location. In practice, sometimes small adjustments of a few hPa may be needed"Relative Pressure"The relative pressure represents what the air pressure would indicate if your station was at sea level and depends on the altitude of your console and cannot be known in advance. This is why it needs an adjustment"If you work your way thru there cal procedure you will see that you use the WS View app to set 2 offsets:Abs OffsetRel OffsetTo set Rel Offset they have you determine station elevation and direct you to a site that produces a offset based solely on elevation. So Rel Offset is a STATIC offset applied against your Absolute Pressure. It never changes if we set a Rel Offset of 6.0 hPa then Relative Pressure will always read 6.0 hPa higher than Absolute Pressure.As we see in WeeWX WikiStation or Gauge Pressure (key pressure): This is the absolute, raw pressure as measured by your instrument. It is not corrected for altitude or pressure. Pilots call this QFESea-level Pressure (barometer): This is the pressure corrected for altitude, temperature, and (frequently) humidity. Pilots call this QFF. This is the value displayed by the standard skin.Altimeter Pressure (altimeter) : This is the pressure corrected for altitude, using a standard temperature profile. Pilots call this QNH.Because we are on a very limited device which does not attempt in any way to apply a temperature compensation I believe that mapping 'altimeter': 'relbarometer' may be more appropriate. StdWXCalculate will calculate barometer for us when it appears in a template.ThanksPaul
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 weewx-user+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/F82E7D44-2090-4C09-9BA6-8355FE73841F%40gmail.com.
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/3KF7XMLQGsA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.
Does this occur every time or occasionally? Could you post your [GW1000] stanza, the output from my previous post should contain everything else I need to troubleshoot this issue.
Gary
If you only have one GW1000 is there an advantage to still specifying the IP address in weewx.conf?
I'm wondering if specifying the IP address allows for more timely data access, as the driver doesn't need to find the GW1000. Also once the GW1000 is found by 'auto' setting, how long does it keep that found address set for?
What happens if the DHCP sever decides to renew the GW1000 IP address with a different IP address, like for example the GW1000 gets restarted and it ends up with a new IP address but WeeWX never stopped running? Is there a potential to lose the GW1000 connection if 'auto' is used if the IP address changes unexpectedly? Or does the driver only search for a new IP address if there is no response from the previous found IP address?
In short what is the programmed logic behind finding, using, and finding again if needed a GW1000 if set to 'auto'?
Perhaps there is a better way than this below logic...but in my likely short sighted view I would expect for the 'auto' setting the following behavior (I think).- Search for IP and continue to search indefinitely until GW1000 found- Store IP address of found GW1000- Repeatedly Continue querying GW1000 for data using found IP address unless no response to weather data request occurs- If no response from found IP address then go back to search again for IP address
If that in fact in the logic then using 'auto' or configuring a static IP in weewx.conf probably doesn't matter and it doesn't really add overhead to the system looking for a GW1000...unless one is never found. But if setting it to 'auto' somehow makes it so that it often (every 5 minutes or some other interval) or perhaps before every new weather data request is received it needs to be checked for what IP address to query then that to me seems like overhead that probably could better be avoided by just using a static IP in the weewx.conf.
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/280188a8-eb94-401a-95af-5f0d36196774o%40googlegroups.com.
--