| SuSE: |
/usr/lib/lsb/install_initd /etc/init.d/weewx |
@@ -1103,7 +1103,9 @@ mysql> GRANT select, update, create, delete, insert ON stats.* TO weewx@local
weewx.conf to 1 (one) will generate many more
checks and output and can be useful for debugging.
Troubleshooting
- If you get stuck, be sure to
+ This section lists some common problems installing and running
+ weewx. Check it first. If you are still stuck, be
+ sure to
- Set option debug in weewx.conf
to 1 (one)! It will put lots more information
@@ -1117,38 +1119,6 @@ mysql> GRANT select, update, create, delete, insert ON stats.* TO weewx@local
strange results, it is worth running from the command line and looking for
any clues.
- Execution
- configobj errors
- These are errors in the configuration file. Two are very common. Incidentally,
- these errors are far easier to diagnose when weewx
- is run from the command line.
- configobj.DuplicateError exception
- This error is caused by using an identifier more than once in the configuration
- file. For example, you may have inadvertently listed your FTP server twice:
-
- [Reports]
- [[FTP]]
- ... (details elided)
- user = fred
- server = ftp.myhost.com
- password = mypassword
- server = ftp.myhost.com # OOPS! Listed it twice!
- path = /weather
- ...
- Generally, if you encounter this error, the log file will give you the line
- number it happened in:
- Apr 24 12:09:15 raven weewx[11480]: wxengine: Error while parsing configuration file /home/weewx/weewx.conf
-Apr 24 12:09:15 raven weewx[11480]: wxengine: Unable to initialize main loop:
-Apr 24 12:09:15 raven weewx[11480]: **** Duplicate keyword name at line 254.
-Apr 24 12:09:15 raven weewx[11480]: **** Exiting.
- configobj.NestingError exception
- This is a very similar error, and is caused by a misformed section nesting.
- For example:
- [Reports]
- [[FTP]]]
- ... (details elided)
- Note the extra closing bracket on the subsection FTP.
-
Hardware
Establishing connectivity
If you unable to get anything out of weewx, first
@@ -1291,7 +1261,71 @@ And put in weewx.conf:
cd /home/weewx
./bin/config_vp.py weewx.conf --clear
+ 3rd party Vantage connectors
+ This section is for those who are using a homebrew or 3rd party connector
+ to a Davis Vantage console that does not contain a logger, such as the
+ DSI-01 serial interface.
+ That is, it is a pure serial connection to the console, with no onboard memory.
+
+ For these interfaces, you must set record generation to software.
+ Without this information, weewx is unable to detect
+ the absence of onboard memory. If you do not do this, you will get errors that
+ look like the following in your syslog:
+ Nov 27 20:30:21 raspberrypi weewx[5607]: reportengine: Caught unrecoverable exception in generator weewx.filegenerator.FileGenerator
+Nov 27 20:30:21 raspberrypi weewx[5607]: **** 'NoneType' object has no attribute '__getitem__'
+Nov 27 20:30:21 raspberrypi weewx[5607]: **** Traceback (most recent call last):
+Nov 27 20:30:21 raspberrypi weewx[5607]: **** File "/home/weewx/bin/weewx/reportengine.py", line 132, in run
+Nov 27 20:30:21 raspberrypi weewx[5607]: **** obj.start()
+Nov 27 20:30:21 raspberrypi weewx[5607]: **** File "/home/weewx/bin/weewx/reportengine.py", line 259, in start
+Nov 27 20:30:21 raspberrypi weewx[5607]: **** self.run()
+Nov 27 20:30:21 raspberrypi weewx[5607]: **** File "/home/weewx/bin/weewx/filegenerator.py", line 41, in run
+Nov 27 20:30:21 raspberrypi weewx[5607]: **** self.setup()
+Nov 27 20:30:21 raspberrypi weewx[5607]: **** File "/home/weewx/bin/weewx/filegenerator.py", line 52, in setup
+Nov 27 20:30:21 raspberrypi weewx[5607]: **** self.initAlmanac(self.gen_ts)
+Nov 27 20:30:21 raspberrypi weewx[5607]: **** File "/home/weewx/bin/weewx/filegenerator.py", line 87, in initAlmanac
+Nov 27 20:30:21 raspberrypi weewx[5607]: **** rec = self.getRecord(archivedb, celestial_ts)
+Nov 27 20:30:21 raspberrypi weewx[5607]: **** File "/home/weewx/bin/weewx/filegenerator.py", line 115, in getRecord
+Nov 27 20:30:21 raspberrypi weewx[5607]: **** record_dict_vt = weewx.units.dictFromStd(record_dict)
+Nov 27 20:30:21 raspberrypi weewx[5607]: **** File "/home/weewx/bin/weewx/units.py", line 892, in dictFromStd
+Nov 27 20:30:21 raspberrypi weewx[5607]: **** std_unit_system = d['usUnits']
+Nov 27 20:30:21 raspberrypi weewx[5607]: **** TypeError: 'NoneType' object has no attribute '__getitem__'
+Nov 27 20:30:21 raspberrypi weewx[5607]: **** Generator terminated...
+Nov 27 20:30:23 raspberrypi weewx[5607]: genimages: Generated 11 images in 2.53 seconds
+
+ See the section on option
+ record_generation.
Software
+ configobj errors
+ These are errors in the configuration file. Two are very common. Incidentally,
+ these errors are far easier to diagnose when weewx
+ is run from the command line.
+ configobj.DuplicateError exception
+ This error is caused by using an identifier more than once in the configuration
+ file. For example, you may have inadvertently listed your FTP server twice:
+
+ [Reports]
+ [[FTP]]
+ ... (details elided)
+ user = fred
+ server = ftp.myhost.com
+ password = mypassword
+ server = ftp.myhost.com # OOPS! Listed it twice!
+ path = /weather
+ ...
+ Generally, if you encounter this error, the log file will give you the line
+ number it happened in:
+ Apr 24 12:09:15 raven weewx[11480]: wxengine: Error while parsing configuration file /home/weewx/weewx.conf
+Apr 24 12:09:15 raven weewx[11480]: wxengine: Unable to initialize main loop:
+Apr 24 12:09:15 raven weewx[11480]: **** Duplicate keyword name at line 254.
+Apr 24 12:09:15 raven weewx[11480]: **** Exiting.
+ configobj.NestingError exception
+ This is a very similar error, and is caused by a misformed section nesting.
+ For example:
+ [Reports]
+ [[FTP]]]
+ ... (details elided)
+ Note the extra closing bracket on the subsection FTP.
+
No barometer data
If everything appears normal except that you have no barometer data, the
problem may be a mismatch between the unit system used for service