Forum Replies Created
-
AuthorPosts
-
iDougParticipantThank you.
iDougParticipantThank you. That worked.
iDougParticipantHello Michael,
Won’t you need the Internet to set the time and weather?
Granted setting the time should be a rare occurrence but the weather should be daily or hourly. I see these as two of the biggest advantages of OpenSprinkler over other systems. One advantage (or possible disadvantage) with the files being on the Internet would be to receive updated versions.
Is there another reason these files need to be local?
iDougParticipantHere is my addition to the /etc/rc.local file:
# Get date-time from Internet (Write to BeagleBone Black BBB).
ntpdate -b -s -u pool.ntp.org
# Write date-time to the RTC on OpenSprinkler OSBo.
sudo hwclock -w
# Write the date-time from the OSBo to BBB.
# (Just in case the Internet is not available and the battery
# is working.)
echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
sudo hwclock -s
exit 0Please, let me know if you see any potential issues. This does seem to work, even on a OSBo that does not have the date-time initially.
iDougParticipantI can set system time:
ntpdate -b -s -u pool.ntp.org
Set the hardware clock from the current system time.
sudo hwclock -w
Reading system time.
date
Reading hardware clock
sudo hwclock -r
Everything but enabling and starting the service.
When I run:
which systemctl
there is no response. I am guessing systemctl is not a part of Ubuntu in the OSBo image.
It does appear that systemctl is NOT a part of Ubuntu. Several people have told me that “upstart” has replaced it.
http://upstart.ubuntu.com/cookbook/Anyone know a conversion from systemctl to upstart?
iDougParticipantYes, I would like to exchange the covers, if it isn’t to much trouble.
Thank You
-
AuthorPosts