Hi Oscar, A working hardware clock on the pi should kick in soon after bootup. As I recall a systemd installation requires a few adjustments if you're working from a wheezy HowTo.
If you have a look at the rorpi HowTo it gives some extra details for the systemd changes https://github.com/glennmckechnie/rorpi-raspberrypi/wiki/rorpi-raspberrypi-preinstall#Time_keeping Also on the weewx wiki, is a HowTo for the pi and a RTC https://github.com/weewx/weewx/wiki/pi-RTC-with-raspbian-jessie have a look at both of those. The acid test is after a reboot, especially with the network cable disconnected. If that doesn't work, neither is your RTC. And as vince says, remove the fake hwclock package if you're running a RTC. Cheers Glenn rorpi - read only raspberry pi & various weewx addons https://github.com/glennmckechnie On 12 October 2017 at 11:54, Oscar <[email protected]> wrote: > Here are portions of the startup file. > > Here is portions of the startup file. > > # set the hardware clock > wait_for_time_set() { > if [ ! -f /sys/class/i2c-adapter/i2c-1/new_device ] > then > echo "Setting Clock" > echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device > hwclock -s > fi > } > > > do_start() { > # call proc to set the hardware clock > wait_for_time_set > NPROC=$(count_procs) > if [ $NPROC != 0 ]; then > return 1 > fi > start-stop-daemon --start --chuid $WEEWX_USER --pidfile $PIDFILE --exec > $DAEMON -- $DAEMON_ARGS || return 2 > return 0 > } > > > On Wednesday, October 11, 2017 at 3:05:33 PM UTC-6, Oscar wrote: >> >> Lost power the other day. When power came back on, the error "launch of >> report thread aborted: existing report thread still running." was being >> written to the log file every couple of seconds. I restarted weewx and the >> issue was resolved. As a test, I disconnected power and the same issue >> occurred. I did a 'ps -ef | grep weewx' and one entry of weewxd was >> displayed. Is there an issue with an old PID file being read? >> >> weewx version 3.7.1 >> raspberry pi2 >> 1,236,526 records in archive table >> >> Thanks, >> Oscar >> >> >> > -- > 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 [email protected]. > 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
