I followed the Debian instructions for adding a weewx daemon using the init.d commands.I don't think it worked, because there is no evidence of weewx running.- not seeing weather station data appearing in /var/log/syslog- not seeing weewx in the "top" screen- not seeing a /var/run/weewx.pid file- no /home/weewx/public_html/index.html file is being createdNow, I guess the mystery is, why isn't weewx running as a daemon?
If I manually call 'sudo /etc/init.d/weewx start', I do not see any entries appear in the /var/log/syslog.
Didn't Ubuntu move to using 'service name start/stop' commands?
In the 2nd line of my first post, I gave the link to the directions I followed.Here's that link, again: https://weewx.com/docs/setup.htmSection 4 tells Debian users to enter a bunch of init.d commands:cd /home/weewxsudo cp util/init.d/weewx.debian /etc/init.d/weewxsudo chmod +x /etc/init.d/weewxsudo update-rc.d weewx defaults 98sudo /etc/init.d/weewx startThose are wrong and outdated?
If so, the install instruction page needs to be updated!
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/a6d73a65-e05b-4a4c-ad07-c75384737972n%40googlegroups.com.
Standard answer applies here.
You need to provide us your syslog from when weewx starts to 2x the archive time period you have configured....or run "sudo /home/weewx/bin/wee_reports" to force it to run the reports immediately and provide what you see in the console, which should 'also' generate syslog entries.
I might add that I provided some docs updates to add the systemd commands to the setup.py instructions for Debian, which were merged into the the development branch, so those will be in the docs in a future release. I think the old init.d stuff will be sunset eventually now that almost every current os is based on systemd, but either way works on all systemd systems I have access to (debian/ubuntu/centos8/rhel8)
I think Vince pointed me to the syslog, as the log to look in.
The 'archive time period' is at the default 300 (seconds?).
I don't think the Acurite Atlas weather sensor holds any history, so I suspect I could lower the 'archive time period' to a single digit?
I ran wee_reports and here's what appeared in the syslog:
Apr 26 21:56:34 Ubuntu20-WEEWX wee_reports[4071] INFO weewx.cheetahgenerator: Skipping template index.html.tmpl: cannot find start timeApr 26 21:56:34 Ubuntu20-WEEWX wee_reports[4071] INFO weewx.cheetahgenerator: Skipping template statistics.html.tmpl: cannot find start timeApr 26 21:56:34 Ubuntu20-WEEWX wee_reports[4071] INFO weewx.cheetahgenerator: Skipping template telemetry.html.tmpl: cannot find start timeApr 26 21:56:34 Ubuntu20-WEEWX wee_reports[4071] INFO weewx.cheetahgenerator: Skipping template tabular.html.tmpl: cannot find start timeApr 26 21:56:34 Ubuntu20-WEEWX wee_reports[4071] INFO weewx.cheetahgenerator: Skipping template celestial.html.tmpl: cannot find start timeApr 26 21:56:34 Ubuntu20-WEEWX wee_reports[4071] INFO weewx.cheetahgenerator: Skipping template rss.xml.tmpl: cannot find start timeApr 26 21:56:34 Ubuntu20-WEEWX wee_reports[4071] INFO weewx.cheetahgenerator: Generated 0 files for report SeasonsReport in 0.01 secondsApr 26 21:56:34 Ubuntu20-WEEWX wee_reports[4071] DEBUG weewx.manager: Daily summary version is 4.0Apr 26 21:56:35 Ubuntu20-WEEWX weewx[3583] DEBUG user.sdr: lines=[]Apr 26 21:56:36 Ubuntu20-WEEWX wee_reports[4071] INFO weewx.imagegenerator: Generated 60 images for report SeasonsReport in 1.86 secondsApr 26 21:56:36 Ubuntu20-WEEWX wee_reports[4071] INFO weewx.reportengine: Copied 5 files to /home/weewx/public_htmlApr 26 21:56:36 Ubuntu20-WEEWX wee_reports[4071] DEBUG weewx.reportengine: Report 'SmartphoneReport' not enabled. Skipping.Apr 26 21:56:36 Ubuntu20-WEEWX wee_reports[4071] DEBUG weewx.reportengine: Report 'MobileReport' not enabled. Skipping.Apr 26 21:56:36 Ubuntu20-WEEWX wee_reports[4071] DEBUG weewx.reportengine: Report 'StandardReport' not enabled. Skipping.Apr 26 21:56:36 Ubuntu20-WEEWX wee_reports[4071] DEBUG weewx.reportengine: Report 'FTP' not enabled. Skipping.Apr 26 21:56:36 Ubuntu20-WEEWX wee_reports[4071] DEBUG weewx.reportengine: Report 'RSYNC' not enabled. Skipping.Apr 26 21:56:40 Ubuntu20-WEEWX weewx[3583] DEBUG user.sdr: lines=['{"time" : "2021-04-27 02:56:36", "model" : "Acurite-Atlas", "id" : 17, "channel" : "A", "sequence_num" : 0, "battery_ok" : 1, "message_type" : 38, "wind_avg_mi_h" : 0.000, "wind_dir_deg" : 197.000, "rain_in" : 0.130, "strike_count" : 2, "strike_distance" : 8, "exception" : 0, "raw_msg" : "c011660006148d004826"}\n', '{"time" : "2021-04-27 02:56:36", "model" : "Acurite-Atlas", "id" : 17, "channel" : "A", "sequence_num" : 1, "battery_ok" : 1, "message_type" : 38, "wind_avg_mi_h" : 0.000, "wind_dir_deg" : 197.000, "rain_in" : 0.130,
--
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/yejkXG-_uZo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/030dadf7-e3de-4ad5-9a32-9a9094a2a4f0n%40googlegroups.com.
Hi,I think you need to take a step back and work through this carefully and methodically. The weewx.conf you posted a couple of posts ago is for a setup.py install, ie WeeWX is installed in /home/weewx. The syslog extract you provided is for a WeeWX install that was installed as a package (ie not installed via setup.py) where weewx.conf is located in /etc/weewx. This makes it impossible to reconcile one against the other (and in this case determine if you have any obvious issues in weewx.conf).
You need to forget about index.html and wee_reports for the time being, you have a fundamental config problem with the sdr driver that is preventing WeeWX from receiving data. No data in means no data to the database which means no WeeWX output. So wee_reports will not do anything mainingful and index.html will not be produced.
When obtaining a log extract you should edit weewx.conf, set debug = 1, save weewx.conf and restart WeeWX. Let WeeWX run for at least two archive periods (in you case 10 minutes) and then take a copy of the log showing the full WeeWX startup and the 10 minutes of log activity. Post the log extract here, no zips or compressed files, just plain text (far easier for us to read on mobile devices etc). Don’t restart WeeWX multiple times or post excessively long log extracts (unless expressly asked for), again far easier for us to read if your log extract is not excessively long.
In terms of your sdr problem, I would sort out your WeeWX install (is it setup.py or a package install ?).
I would then work through the ‘Configuration’ and ‘How to diagnose problems‘ sections (in order) of the sdr driver readme to make sure you have the sdr driver properly configured. If you are still stuck, come back here and post a sanitised copy of (the correct) weewx.conf (the wee_debug utility can do this for you) as well as a log extract as I described above.
This is difficult to troubleshoot with the system functionality spread across multiple groups of developers!
The file at file:///home/weewx/public_html/index.html is not readable. It may have been removed, moved, or file permissions may be preventing access.
Now, I'm tweaking the [sensor_map] variables so they line up with the variables in weewx, and all the collected data gets displayed.
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/bc4f3073-2f11-452e-9254-dcb40a51b012n%40googlegroups.com.