# Set to type of station hardware. There must be a corresponding stanza
[Simulator]
# This section is for the weewx weather station simulator
# The time (in seconds) between LOOP packets.
loop_interval = 2.5
# The simulator mode can be either 'simulator' or 'generator'.
# Real-time simulator. Sleep between each LOOP packet.
mode = simulator
# Generator. Emit LOOP packets as fast as possible (useful for testing).
#mode = generator
# The start time. Format is YYYY-mm-ddTHH:MM. If not specified, the default
# is to use the present time.
#start = 2011-01-01T00:00
# The driver to use:
driver = weewx.drivers.simulator
##############################################################################
# This section is for uploading data to Internet sites
[StdRESTful]
[[StationRegistry]]
# To register this weather station with weewx, set this to true
register_this_station = false
[[AWEKAS]]
# This section is for configuring posts to AWEKAS.
# If you wish to do this, set the option 'enable' to true,
# and specify a username and password.
# To guard against parsing errors, put the password in quotes.
enable = false
username = replace_me
password = replace_me
[[CWOP]]
# This section is for configuring posts to CWOP.
# If you wish to do this, set the option 'enable' to true,
# and specify the station ID (e.g., CW1234).
enable = false
station = replace_me
# If this is an APRS (radio amateur) station, uncomment
# the following and replace with a passcode (e.g., 12345).
#passcode = replace_me (APRS stations only)
[[PWSweather]]
….
[[Wunderground]]
# This section is for configuring posts to the Weather Underground.
# If you wish to do this, set the option 'enable' to true,
# and specify a station (e.g., 'KORHOODR3') and password.
# To guard against parsing errors, put the password in quotes.
enable = false
station = replace_me
password = replace_me
# Set the following to True to have weewx use the WU "Rapidfire"
# protocol. Not all hardware can support it. See the User's Guide.
rapidfire = False
##############################################################################
# This section specifies what reports, using which skins, to generate.
[StdReport]
# Where the skins reside, relative to WEEWX_ROOT
SKIN_ROOT = /etc/weewx/skins
# Where the generated reports should go, relative to WEEWX_ROOT
HTML_ROOT = /var/www/html/weewx
# The database binding indicates which data should be used in reports.
data_binding = wx_binding
# Whether to log a successful operation
log_success = True
# Whether to log an unsuccessful operation
log_failure = False
# Each of the following subsections defines a report that will be run.
# See the customizing guide to change the units, plot types and line
# colors, modify the fonts, display additional sensor data, and other
# customizations. Many of those changes can be made here by overriding
# parameters, or by modifying templates within the skin itself.
[[SeasonsReport]]
# The SeasonsReport uses the 'Seasons' skin, which contains the
# images, templates and plots for the report.
skin = Seasons
…
[Databases]
# A SQLite database is simply a single file
[[archive_sqlite]]
database_name = weewx.sdb
database_type = SQLite
# MySQL
[[archive_mysql]]
database_name = weewx
database_type = MySQL
##############################################################################
# This section defines defaults for the different types of databases.
[DatabaseTypes]
# Defaults for SQLite databases
[[SQLite]]
driver = weedb.sqlite
# Directory in which the database files are located
SQLITE_ROOT = /var/lib/weewx
# Defaults for MySQL databases
[[MySQL]]
driver = weedb.mysql
# The host where the database is located
host = localhost
# The user name for logging in to the host
user = weewx
# The password for the user name (quotes guard against parsing errors)
password = weewx
##############################################################################
# This section configures the internal weewx engine.
[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 = ,
process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, weewx.wxservices.StdWXCal$
archive_services = weewx.engine.StdArchive
restful_services = weewx.restx.StdStationRegistry, weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.res$
report_services = weewx.engine.StdPrint, weewx.engine.StdReport
##############################################################################
# Options for extension 'crt'
[CumulusRealTime]
filename = /var/tmp/realtime.txt
unit_system = METRIC # options are US, METRIC, METRICWX
Weewx is running but I think there might be a driver issue (I have not idea what driver I should use).
sudo tail -f /var/log/syslog
gives me the following data:
sudo /etc/init.d/weewx status -l
● weewx.service - LSB: weewx weather system
Loaded: loaded (/etc/init.d/weewx; generated)
Active: active (exited) since Tue 2019-12-31 00:46:35 CET; 1 day 23h ago
Docs: man:systemd-sysv-generator(8)
Process: 343 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)
Dec 31 00:46:35 raspberrypi weewx[425]: engine: Initializing engine
Dec 31 00:46:35 raspberrypi weewx[425]: engine: Loading station type Interceptor (user.interceptor)
Dec 31 00:46:36 raspberrypi weewx[425]: interceptor: MainThread: driver version is 0.47
Dec 31 00:46:36 raspberrypi weewx[425]: interceptor: MainThread: device type: observer
Dec 31 00:46:36 raspberrypi weewx[425]: interceptor: MainThread: sensor map: None
Dec 31 00:46:36 raspberrypi weewx[425]: interceptor: MainThread: mode is listen
Dec 31 00:46:36 raspberrypi weewx[425]: interceptor: MainThread: listen on
192.168.1.122:800Dec 31 00:46:36 raspberrypi weewx[425]: engine: Import of driver failed: [Errno 99] Cannot assign requested address …error'>)
Dec 31 00:46:36 raspberrypi weewx[425]: engine: Unable to load driver: [Errno 99] Cannot assign requested address
Dec 31 00:46:36 raspberrypi weewx[425]: **** Exiting...
Hint: Some lines were ellipsized, use -l to show in full.
There is one more weird thing!
The bridge device has been reconfigured in the weather logger to a ‘customised server’
Server IP/ Hostname: 192.168.1.119
Server Port: 800
Server Type: PHP
Station ID: StationIDset
Password: PassStation
Setting these things via telnet is not possible:
telnet 192.168.1.122
Trying 192.168.1.122...
telnet: Unable to connect to remote host
If I tell the terminal to listen on port 800 I get the following data:
sudo nc -l 800
GET /weatherstation/updateweatherstation.php?ID=StationIDset&PASSWORD=PassStation%2Bset&tempf=54.0&humidity=67&dewptf=43.3&windchillf=54.0&winddir=310&windspeedmph=0.00&windgustmph=0.00&rainin=0.00&dailyrainin=0.00&weeklyrainin=0.00&monthlyrainin=0.00&yearlyrainin=0.00&solarradiation=0.00&UV=0&indoortempf=53.8&indoorhumidity=67&baromin=29.91&dateutc=2012-08-22%202:14:45&softwaretype=WH2600%20V2.2.8&action=updateraw&realtime=1&rtfreq=5 HTTP/1.0
Accept: */*
Connection: Close
For some reason the Host does not change no matter what I set I to even after a bridge reboot.
However I I understand correctly the raspberry can get the data as shown in the temperature reading above.
Is this a correct assumption?
I read about similar stations here in the forum but they usually had a wifi unit therefore the new post.
Please help me to make the right changes. I am totally lost what I should do now after some many hours and hours of trying.
Thank you
Lars