This program shows the current time, date and weekday. It's designed with a Raspberry Pie Zero in mind.
(Dark/Lightmode)
You will need a Respberry Pie Zero and a RTC-module
- Shows time, date and weekday
- Darkmode
- Connect the RTC-module to your Raspberry Pie
/// Tutorial ///
- Install Raspberry Pie OS (32-bit) on a micro SD card
- Set up your RCT-module
- Activate I2C ->
raspi-config i2cdetect -y 1to check for the RTC, it should show 68sudo nano /etc/modulesand addrtc-ds3231sudo nano /boot/firmware/config.txtand adddtoverlay=i2c-rtc,ds3231sudo apt-get -y remove fake-hwclocksudo nano /lib/udev/hwclock-setand comment from the firstifto firstfireboot- Check if the RTC is working with
sudo hwclock -r - And write the correct time with
sudo hwclock -w
-
Copy
clock.pyin your /home/USER directory -
Create a autostart directory (if not present) and do not use
sudomkdir /home/USER/.config/autostart
-
Create a .desktop file with
nanonano /home/USER/.config/autostart/clock.desktop
Content :
[Desktop Entry] Type=Application Name=Clock Exec=/usr/bin/python3 /home/USER/Intensivuhr/clock.py -
Reboot