What the ...??? I don't get it. I deleted every weewx-related file, and reinstalled again using the python script. After a bit of tweaking, I finally got the service to start .. .
Jan 1 14:59:56 weather weewx[13574]: wmr300x: using PyUSB backend: libusb1 Jan 1 14:59:57 weather kernel: [60750.982271] usb 1-1.5: reset full-speed USB device number 4 using dwc_otg Jan 1 14:59:57 weather weewx[13574]: wmr300x: send initial heartbeat, try 1 Jan 1 14:59:57 weather weewx[13574]: wmr300x: Initiation completed Jan 1 14:59:57 weather weewx[13574]: engine: StdConvert target unit is 0x1 Jan 1 14:59:57 weather weewx[13574]: wxcalculate: The following values will be calculated: barometer=prefer_hardware, windchill=hardware, dewpoint=hardware, appTemp=prefer_hardware, rainRate=hardware, windrun=prefer_hardware, heatindex=hardware, maxSolarRad=prefer_hardware, humidex=prefer_hardware, pressure=prefer_hardware, inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, cloudbase=prefer_hardware Jan 1 14:59:57 weather weewx[13574]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS Jan 1 14:59:57 weather weewx[13574]: engine: Archive will use data binding wx_binding Jan 1 14:59:57 weather weewx[13574]: engine: Record generation will be attempted in 'hardware' Jan 1 14:59:57 weather weewx[13574]: engine: Using archive interval of 300 seconds (specified in weewx configuration) Jan 1 14:59:57 weather weewx[13574]: engine: Using binding 'wx_binding' to database 'weewx.sdb' Jan 1 14:59:57 weather weewx[13574]: manager: Starting backfill of daily summaries Jan 1 14:59:57 weather weewx[13574]: restx: StationRegistry: Registration not requested. Jan 1 14:59:57 weather weewx[13574]: restx: Wunderground: Posting not enabled. Jan 1 14:59:57 weather weewx[13574]: restx: PWSweather: Posting not enabled. Jan 1 14:59:57 weather weewx[13574]: restx: CWOP: Posting not enabled. Jan 1 14:59:57 weather weewx[13574]: restx: WOW: Posting not enabled. Jan 1 14:59:57 weather weewx[13574]: restx: AWEKAS: Posting not enabled. Jan 1 14:59:57 weather weewx[13574]: engine: Starting up weewx version 3.8.0 Jan 1 14:59:57 weather weewx[13574]: wmr300x: read Hist since 2018-01-01 14:59:00 GMT (1514818740): from 31 to 891 Jan 1 14:59:57 weather weewx[13574]: wmr300x: send history startup, try 1 Jan 1 14:59:57 weather weewx[13574]: wmr300x: initHist: discarded 22 packets Jan 1 14:59:57 weather weewx[13574]: wmr300x: Initing history req with cmd 0x65, starting with record 32 Jan 1 14:59:57 weather weewx[13574]: wmr300x: History read initiated Jan 1 14:59:59 weather weewx[13574]: wmr300x: catchup nearly complete: count=0 kept, last_received=890 final=891; state=reading history Jan 1 14:59:59 weather weewx[13574]: wmr300x: request station status at index: 890; state: finishing Jan 1 14:59:59 weather weewx[13574]: wmr300x: catchup completed: count=0 kept last_index rcvd=890 final_index=891; state = wait57 Jan 1 14:59:59 weather weewx[13574]: wmr300x: history finish, try 1 Jan 1 15:00:00 weather weewx[13574]: wmr300x: History read completed Jan 1 15:00:00 weather weewx[13574]: engine: Starting main packet loop. This is further than I have been yet. But when I look in the web directory . . root@weather:~# ls -l /var/www/html/ total 12 -rw-r--r-- 1 root root 10701 Dec 31 20:28 index.html How can the same install script run twice, two hours apart, give completely different results?? On 1 January 2018 at 14:33, Cycle London <cycle.london...@gmail.com> wrote: > Now I seem to have broken the entire thing. I decided to try the python > installation method, so ran `apt-get remove weewx` and then downloaded the > tarball to try a manual installation. > > This time, there is content in /var/www/html but hardly anything (except > user) under /usr/share/weewx. Everything is under /home but even when I > place the new driver into /usr/share/weewx/user and modify the > configuration file, I still get... > > 1 14:11:35 weather systemd[1]: Starting LSB: weewx weather system... > > Jan 1 14:11:35 weather weewx[12205]: engine: Initializing weewx version > 3.8.0 > Jan 1 14:11:35 weather weewx[12205]: engine: Using Python 2.7.13 > (default, Jan 19 2017, 14:48:08) #012[GCC 6.3.0 20170124] > Jan 1 14:11:35 weather weewx[12205]: engine: Platform > Linux-4.9.59-v7+-armv7l-with-debian-9.1 > Jan 1 14:11:35 weather weewx[12205]: engine: Locale is 'en_GB.UTF-8' > Jan 1 14:11:35 weather weewx[12205]: engine: pid file is > /var/run/weewx.pid > > Jan 1 14:11:35 weather weewx[12209]: engine: Using configuration file > /home/weewx/weewx.conf > Jan 1 14:11:35 weather weewx[12209]: engine: Loading station type WMR300 ( > weewx.user.wmr300.py) > Jan 1 14:11:35 weather weewx[12209]: engine: Caught unrecoverable > exception in engine: > Jan 1 14:11:35 weather weewx[12209]: **** No module named > user.wmr300.py > Jan 1 14:11:35 weather weewx[12209]: **** Traceback (most recent > call last): > Jan 1 14:11:35 weather weewx[12209]: **** File > "/home/weewx/bin/weewx/engine.py", line 865, in main > Jan 1 14:11:35 weather weewx[12209]: **** engine = > engine_class(config_dict) > Jan 1 14:11:35 weather weewx[12209]: **** File > "/home/weewx/bin/weewx/engine.py", line 71, in __init__ > Jan 1 14:11:35 weather weewx[12209]: **** > self.setupStation(config_dict) > Jan 1 14:11:35 weather weewx[12209]: **** File > "/home/weewx/bin/weewx/engine.py", line 95, in setupStation > Jan 1 14:11:35 weather weewx[12209]: **** __import__(driver) > Jan 1 14:11:35 weather weewx[12209]: **** ImportError: No module > named user.wmr300.py > Jan 1 14:11:35 weather weewx[12209]: **** Exiting. > Jan 1 14:11:35 weather systemd[1]: Started LSB: weewx weather system. > Jan 1 14:11:35 weather weewx[12193]: Starting weewx weather system: weewx. > > Am I right in stating that in the driver section of the configuration > file, a dot is the directory separator? The file is indexed this way in > the configuration file... > > root@weather:/usr/share/weewx/user# grep driver /home/weewx/weewx.conf > driver = user.wmr300.py > > I tried to change that to weewx.user.wmr300.py to no avail. I also tried > copying the file into /home/weewx but again, no luck. It's trying to find > the python file, but I don't know 1. where to put it and 2. how to point > the configuration file at it. > > At this point, I'm thinking of jacking the whole thing in and > re-installing raspbian to start again. > > On 1 January 2018 at 12:19, gjr80 <gjroder...@gmail.com> wrote: > >> On Monday, 1 January 2018 20:27:29 UTC+10, Cycle London wrote: >>> >>> >>> Ah, that looks so much better, thank you! >>> >> >> Hmm, that sounds promising but your next few lines do not sound so good. >> >> >>> One thing puzzles me. I installed using the 'simplified' method in the >>> User Guide: http://www.weewx.com/docs/usersguide.htm >>> >>> In short, `apt-get install weewx`, but whilst the installation succeeded >>> (except for the original subject of this post), there is nothing under >>> /var/www/html (except for an index.html). Is this normal? Where can I find >>> the files to place into the HTML_ROOT? >>> >> >> The installation may have succeeded but to obtain any output weeWX must >> be running, obtaining data from your station, saving data to the database >> and then generating output. WeeWX places the generated output in HTML_ROOT >> by default. You need to have a look at your log to see what is happening. >> Unless you have changed things this should be in /var/log/syslog. Open >> the log and have a look at the last time you started weeWX, what does it >> say? If the issue/answer is not obvious post an extract from the log, best >> from when weeWX was started until any error trace is complete. Don't delete >> or otherwise alter any lines. The log will tell what is or is not happening. >> >> Also, I want to use MySQL but of course, that's MariaDB as standard these >>> days. Any problems with this? >>> >> >> No problems at all. I would strongly suggest you get weeWX up and running >> properly with SQLite before attempting to move to MySQL or MariaDB. Small >> steps. >> >> Gary >> >> -- >> 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/to >> pic/weewx-user/iGXSDG5XsOQ/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> weewx-user+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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.