OK
I fixed it after hours of trying to figure it out. I don't know where these things are defined but I was able to edit the install py and find the errors, fix them, re tar.gz it, and install it.
So... Now problem 2, I have not spent the same hours in this, but I will, unless someone helps me out with an answer, but it is showing my radation in w/m2 and I need it in Lux.
Off I go digging through google for hours again.
once you understand that the GW1000 doesn't receive what weewx understands as radiation, things become clearer
the only thing you need to fix is getting the proper data into the field named radiation (1st step). 2nd step will be to deal with the units.
1. regarding radiation - the WH65/WS80/WS68 sensor arrays don't provide real radiation but luminosity in Lux. The consoles convert it into radiation.
If you want to have W/m
2 you need to put the following line into the
[StdCalibrate] [[Corrections]] stanza of your weewx.conf
[[StdCalibrate]
[[Corrections]]
# For each type, an arbitrary calibration expression can be given.
# It should be in the units defined in the StdConvert section.
# Example:
radiation = luminosity/126.7 if luminosity is not None else None # radiation comes with the unit watt_per_meter_squared (W/m
2)
2. If you want to have the radiation in Lux, you will also have to "reconfigure" the units for radiation
a) the entry in the [StdCalibrate] [[Corrections]] stanza of your weewx.conf would be
radiation = luminositybecause you want to display radiation in your skin (screen, user interface).
and
b) in the file /usr/share/weewx/user/extensions.py (path depending on installation method) you will have to make an entry
import weewx.units
weewx.units.obs_group_dict['radiation'] = 'group_illuminance'because "Lux" is the unit belonging to the unit group illuminance.
That should do the job.
save - and restart weewx
it's - by the way - (almost) everything documented in the WiKi - but it's a lot of stuff to read and you need some time to get the full(er) picture