OK, I have vantage.conf (essentially weewx.conf renamed) and sdr.conf (a stripped down file only for uploading temperature data into sdr.sdb. Both run fine at the command line manunally
weewx-multi installed as per wiki On a re-boot, only the vantage service runs. Doing: sudo /etc/init.d/weewx start sdr I get this result: (starting the vantage with "sudo /etc/init.d/weewx start vantage" throws the same error but it runs) > [....] Starting weewx (via systemctl): weewx.serviceJob for weewx.service >> failed because the control process exited with error code. > > See "systemctl status weewx.service" and "journalctl -xe" for details. > > failed! > > then: > $ systemctl status weewx.service ● weewx.service - LSB: weewx-multi Loaded: loaded (/etc/init.d/weewx; generated; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2018-04-19 11:31:40 EDT; > 12s ago Docs: man:systemd-sysv-generator(8) Process: 1387 ExecStart=/etc/init.d/weewx start (code=exited, > status=1/FAILURE) CGroup: /system.slice/weewx.service └─910 /usr/bin/python /home/weewx/bin/weewxd --daemon > --log-label weewx-vantage --pidfile=/var/run/weewx-vantage.pid /home > Apr 19 11:31:40 testpi weewx-sdr[1408]: sdr: MainThread: startup process > 'rtl_433 -q -U -F json -G' Apr 19 11:31:40 testpi weewx-sdr[1408]: import of driver failed: failed to > start process: [Errno 2] No such file or directory (<class Apr 19 11:31:40 testpi weewx-sdr[1408]: engine: Unable to load driver: > failed to start process: [Errno 2] No such file or directory Apr 19 11:31:40 testpi weewx-sdr[1408]: **** Exiting... Apr 19 11:31:45 testpi weewx-vantage[910]: cheetahgenerator: Generated 10 > files for report forecast in 40.14 seconds Apr 19 11:31:47 testpi weewx-vantage[910]: copygenerator: copied 88 files > to /home/weewx/public_html/vantage/forecast Apr 19 11:31:47 testpi weewx-vantage[910]: reportengine: Running report > exfoliation Apr 19 11:31:47 testpi weewx-vantage[910]: reportengine: Found > configuration file /home/weewx/skins/exfoliation/skin.conf for report Apr 19 11:31:47 testpi weewx-vantage[910]: cheetahgenerator: using search > list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgener Apr 19 11:31:47 testpi weewx-vantage[910]: manager: Daily summary version > is 1.0 That failure error is greek to me and any advice would be appreciated. weewx-multi and sdr.conf attached. Any pointers to how this is done? > you might want to skip weewx-multi and just write two systemd unit files. > On Saturday, April 14, 2018 at 12:58:20 PM UTC-4, mwall wrote: > > On Saturday, April 14, 2018 at 12:38:14 PM UTC-4, Dan'l B wrote: >> >> My two .conf files are vantage.conf and sdr.conf >> >> OK, did the following: >> >> sudo cp util/init.d/weewx-multi /etc/init.d/weewx >> sudo update-rc.d weewx defaults >> echo "vantage sdr” | sudo tee /etc/default/weewx-multi >> >> Rebooted the Pi and ran: >> tail -f /var/log/syslog | grep weewx >> with no results >> > > you should be able to do: > > sudo /etc/init.d/weewx-multi start vantage > > to start the vantage instance. or this: > > sudo /etc/init.d/weewx-multi > > to start both instances. only after you get that working should you both > doing a reboot, and the only reason to do that is to verify that things > work at startup. > > from the systemd output you posted, it looks like the > /etc/default/weewx-multi file does not contain the right values. it should > look like this: > > WEEWX_INSTANCES="vantage sdr" > > you can get that by doing: > > echo 'WEEWX_INSTANCES="vantage sdr"' | sudo tee /etc/default/weewx-multi > > > i fixed the wiki page (my apologies again for the docs being stale on this > one) > > however, since your system is infected with systemd :) you might want to > skip weewx-multi and just write two systemd unit files. i find it easier > to manage a single /etc/default file than a zillion unit files, and i find > it near impossible to keep track of the zillion+1 ways that systemd > overrides and obfuscates the units, but ymmv. > 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. For more options, visit https://groups.google.com/d/optout.
# WEEWX CONFIGURATION FILE # # Copyright (c) 2009-2015 Tom Keffer <tkef...@gmail.com> # See the file LICENSE.txt for your rights. ############################################################################## # This section is for general configuration information. # Set to 1 for extra debug info, otherwise comment it out or set to zero debug = 1 # Root directory of the weewx data file hierarchy for this station WEEWX_ROOT = /home/weewx # How long to wait before timing out a socket (FTP, HTTP) connection socket_timeout = 20 # Do not modify this. It is used when installing and updating weewx. version = 3.8.0 ############################################################################## # This section is for information about the station. [Station] # Description of the station location location = "Weather in Dinkins Bayou, Sanibel Island, Florida, USA" # Latitude and longitude in decimal degrees latitude = 26.479936 longitude = -82.174106 # Altitude of the station, with unit it is in. This is downloaded from # from the station if the hardware supports it. altitude = 15, foot # Choose 'foot' or 'meter' for unit # Set to type of station hardware. There must be a corresponding stanza # in this file with a 'driver' parameter indicating the driver to be used. station_type = SDR # The start of the rain year (1=January; 10=October, etc.). This is # downloaded from the station if the hardware supports it. rain_year_start = 1 # Start of week (0=Monday, 6=Sunday) week_start = 0 # If you have a website, you may specify an URL # station_url = http://suiattle.net/DinkinsBayouWeather/wx/ # Additional station details station_details = The wind direction and strength are generall accurate from north through east to south. Due to trees and woods, winds from the south through west to northwest are indicative at best, inaccurate at worst. ############################################################################## ############################################################################## ############################################################################## # This section is for uploading data to Internet sites ############################################################################## # This section specifies what reports, using which skins, to generate. ############################################################################## # This service acts as a filter, converting the unit system coming from # the hardware to a unit system in the database. [StdConvert] # The target_unit affects only the unit system in the database. Once # chosen it cannot be changed without converting the entire database. # Modification of target_unit after starting weewx will result in # corrupt data - the database will contain a mix of US and METRIC data. # # The value of target_unit does not affect the unit system for # reporting - reports can display US, Metric, or any combination of units. # # In most cases, target_unit should be left as the default: US # # In particular, those migrating from a standard wview installation # should use US since that is what the wview database contains. # DO NOT MODIFY THIS VALUE UNLESS YOU KNOW WHAT YOU ARE DOING! target_unit = US # Options are 'US', 'METRICWX', or 'METRIC' ############################################################################## # This section can adjust data using calibration expressions. [StdCalibrate] [[Corrections]] # For each type, an arbitrary calibration expression can be given. # It should be in the units defined in the StdConvert section. # Example: foo = foo + 0.2 ############################################################################## # This section is for quality control checks. If units are not specified, # values must be in the units defined in the StdConvert section. [StdQC] [[MinMax]] barometer = 26, 32.5, inHg outTemp = -40, 120, degree_F inTemp = 10, 120, degree_F outHumidity = 0, 100 inHumidity = 0, 100 windSpeed = 0, 120, mile_per_hour pressure = 24, 34.5, inHg ############################################################################## # This section controls the origin of derived values. [StdWXCalculate] [[Calculations]] # Derived quantities are calculated by this service. Possible values are: # hardware - use the value provided by hardware # software - use the value calculated by weewx # prefer_hardware - use value provide by hardware if available, # otherwise use value calculated by weewx pressure = prefer_hardware barometer = prefer_hardware altimeter = prefer_hardware windchill = prefer_hardware heatindex = prefer_hardware dewpoint = prefer_hardware inDewpoint = prefer_hardware rainRate = prefer_hardware ############################################################################## # For hardware that supports it, this section controls how often the # onboard clock gets updated. [StdTimeSynch] # How often to check the weather station clock for drift (in seconds) clock_check = 14400 # How much it can drift before we will correct it (in seconds) max_drift = 5 ############################################################################## # This section is for configuring the archive service. [StdArchive] # If the station hardware supports data logging then the archive interval # will be downloaded from the station. Otherwise, specify it (in seconds). archive_interval = 300 # If possible, new archive records are downloaded from the station # hardware. If the hardware does not support this, then new archive # records will be generated in software. # Set the following to "software" to force software record generation. record_generation = hardware # Whether to include LOOP data in hi/low statistics loop_hilo = True # The data binding used to save archive records data_binding = wx_binding ############################################################################## # This section binds a data store to a database. [DataBindings] [[wx_binding]] # The database must match one of the sections in [Databases]. # This is likely to be the only option you would want to change. database = archive_sqlite # The name of the table within the database table_name = archive # The manager handles aggregation of data for historical summaries manager = weewx.wxmanager.WXDaySummaryManager # The schema defines the structure of the database. # It is *only* used when the database is created. schema = schemas.wview.schema ############################################################################## # This section defines various databases. [Databases] # A SQLite database is simply a single file [[archive_sqlite]] database_type = SQLite database_name = sdr.sdb # MySQL [[archive_mysql]] database_type = MySQL database_name = sdr ############################################################################## # 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 = %(WEEWX_ROOT)s/archive # 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 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.StdWXCalculate archive_services = weewx.engine.StdArchive, report_services = weewx.engine.StdPrint ############################################################################## [SDR] # This section is for the software-defined radio driver. # The driver to use driver = user.sdr [[sensor_map]] extraTemp2 = temperature.1:149.AmbientF007THPacket cmd = rtl_433 -q -U -F json -R 20
weewx
Description: Binary data