[weewx-user] Re: weewx fails to boot because of station name?

2019-06-18 Thread Chris Richmond
Thanks.  I'm suspecting the time it did work was when I reinstalled and 
used the generated config.
Since this case is about finding config data, the block that failed could 
be getting the config section
by getting the value from station_type =  in Station, then doing the 
lookup.  That would disconnect
the DRIVEE_NAME from the config section name (for better or worse).  If 
there are more than a couple of
other places where driver name is used like that, the discussion is over.  
:^)

Chris

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/f6f88f3a-61be-4b6a-bcf5-f59bf77de40f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: weewx fails to boot because of station name?

2019-06-18 Thread mwall
On Tuesday, June 18, 2019 at 10:15:32 AM UTC-4, Chris Richmond wrote:
>
> I bought a VantageVue, and I thought I had this working once, but trying 
> to get weewx going again,
> and it's failing to boot.  It's set up almost exactly like the VP2 I've 
> had running a couple of years.  The relevant
> config is below, as are the errors.  It turns out that the station_type 
> name has to match the DRIVER_NAME in the
> associated driver.py.
>

that depends on the driver.


VantageVue, VantagePro, etc are all served by the Vantage driver; you 
should use Vantage as the station_type 

there must be a stanza in the configuration file whose name matches 
whatever you specify for station_type.  the driver field in that stanza 
indicates where to find the driver.  most drivers use the station_type as a 
key for many configuration options.

although editing the configuration directly will work just fine, you can 
avoid these issues and ensure that all of the per-driver options are set 
properly by using the wee_config tool (see the weewx user guide for 
details).  it works with any driver that implements the right methods.

for many types of hardware, the wee_device utility will let you talk 
directly with the hardware to change its settings.

m

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/7c0f0dcb-aa7a-4e59-b208-89eb836bba4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.