Changes

Jump to navigation Jump to search

X729-Software

309 bytes removed, 16:37, 19 November 2022
no edit summary
pi@raspberrypi:~/x729 $ sudo python3 plsd.py
Safe shutdown will be implemented in 5 seconds.
 
5.3 Test the buzzer alarm when AC power loss or power adapter failure
pi@raspberrypi:~/x729 $ sudo python3 buzzer.py
Once power adapter is removed then the buzzer will generate a beep sound continuously.
 
'''6. Set and Read the RTC time'''
Save and exit. In nano, you do that by hitting CTRL + X, answering Y and hitting Enter when prompted.
6.2 Run the commands to disable the "fake hwclock" which interferes with the 'real' hwclock
pi@raspberrypi ~ $ sudo apt-get -y remove fake-hwclock
pi@raspberrypi ~ $ sudo update-rc.d -f fake-hwclock remove
[[File:X729-6.png|none]]
 6.3 Run the command and comment out these five lines:
[[File:X729-7.png|none]]
6.5) 4 Reboot the Raspberry Pi pi@raspberrypi ~ $ sudo reboot
(6.6) 5 Run the command to verify the time is correct. Plug in Ethernet or WiFi to let the Pi sync the right time from the Internet pi@raspberrypi ~ $ date
(6.7) 6 Run the command to write the time pi@raspberrypi ~ $ sudo hwclock -w
(6.8) 7 Run the command to read the time pi@raspberrypi ~ $ sudo hwclock -r
Once the time is set, make sure the batteries are inserted so that the time is saved. You only have to set the time once. That's it! Next time you boot the time will automatically be synced from the [[X729]]. #If you need to set the system time for any reason you can use the following command : date -s "5 MAR 2019 13:00:00"  #Write the system date and time to the RTC module after your correct the system date and time : sudo hwclock -w  #Read the date and time back from the RTC module: sudo hwclock -r

Navigation menu