Substituting a sensor in Davis Weather Station

46 views
Skip to first unread message

BLg

unread,
Dec 6, 2017, 12:04:29 PM12/6/17
to weewx-user
Hello, 
my humidity sensor n the Vantage Vue does i not work any more. Therefore I bought a DHT22 sensor  which I have installe on the same raspberry.

I have also defined a python script for storing  the sensor data (from the webpage https://github.com/weewx/weewx/wiki/add-sensor ):

in pond.py


My problem is the config file, where I have to define the Services.

[Engine]


    [[Services]]

        # This section specifies the services that should be run. They are

        # grouped by type, and the order of services within each group

        # determines the order in which the services will be run.

        prep_services = weewx.engine.StdTimeSynch

        data_services = weewx.engine.pond.PondService??

.....


pond.py is in the directory /usr/share/weewx 
What do I have to write behind the data_services =
I have tried a lot but I get always the answer parse error in the log file

Thank you for help
Bernd




Thomas Keffer

unread,
Dec 6, 2017, 1:27:27 PM12/6/17
to weewx-user
First of all, you should put pond.py in the user subdirectory /usr/share/weewx/user. This way, it will not be touched when you upgrade weewx. See the Customizing Guide section Where to put customizations.

Then use

  data_services = user.pond.PondService

If that gives an error, be sure to post the log. We will need more information than "parse error in the log file."

-tk

--
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.
For more options, visit https://groups.google.com/d/optout.

Dr. Bernd Langner

unread,
Dec 7, 2017, 8:39:58 PM12/7/17
to weewx...@googlegroups.com
Hello Thomas

it works !!!

Thank you so much.
It is a great software - with so much opportunitities.

Kind Regards
Bernd


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/yhkgGLpeFS4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages