Elecrow's 2nd Electronics Design Contest is Heating Up! Win $6,000 cash + Maker products + Official sponsorship! Share your designs today! [Learn More]

+ Follow

Pi Digital Clock 7.84" (PYTHON)

Pi Digital Clock: A smart device with real-time clock and calendar, time-based greetings, and PM2.5 data, replacing paper calendars.

Pi Digital Clock 7.84
 
  • thumbnail-img
  • thumbnail-img
  • thumbnail-img
 

Hardware Components

  • LCD Mini Monitor 7.84 Inch

    X 1

Goods

Story

 

 

 

 

lll

 

 

 

Description

The inspiration for this project came from my habit of frequently

checking paper desk calendars. But every time I wanted to see the date or holidays, I had to manually flip through the pages. That got me thinking… why not combine a clock and a calendar into one screen?

 

A screen that can show the date and time automatically—no more flipping pages!

Then I thought, why not add some smart features too, like air quality info and a greeting system?

And that’s how Pi Digital Clock was born—a smarter, paper-free upgrade for your workspace!

 

 

 

Key Features of This Project

- Displays a real-time digital clock  

 -Includes a clear calendar showing day, month, year  

-Greets with morning, noon, afternoon, evening messages based on time  

 -Shows real-time PM2.5 / AQI values, fetched from Weather API

 -Photo Frame

 

STEP 1:Setting up to run automatically on boot

 

      In this step, we will edit the ~/.bashrc file to add commands that automatically run Python scripts when the Raspberry Pi boots and enters the specified terminal (/dev/tty1). Using ~/.bashrc is suitable for executing commands in the user’s environment and can be configured to run only under specific conditions, such as when logging in through the first terminal.

 

 nano ~/.bashrc

 

if [ "$(tty)" == "/dev/tty1" ]; then

    DISPLAY=:0 python3 /home/pi/pidigi2.py &

fi

 

Press Ctrl+X to save and exit, then sudo reboot.

 

STEP 2: API AQI,PM2.5

 

      Visit https://aqicn.org/data-platform/token/ to request a free API token by entering your email and confirming via the link sent.

 

Use the token in the URL: https://api.waqi.info/feed/{city}/?token={your_token}, e.g., https://api.waqi.info/feed/bangkok/?token=your_token.

 

The API returns AQI, PM2.5, temperature, humidity, etc., in JSON format, with a quota of 1,000 requests per second.

 

STEP3: Folder 'pic'

 

Creating the pic folder allows you to store image files in an organized and easily accessible location. Python scripts that run automatically on boot may be configured to read from or save images to this folder. For example, if picaren2.py is a script that uses the Raspberry Pi camera to capture photos, the pic folder will serve as the storage location for those images.

 

How to Create the Folder

To create a folder named pic in the user's home directory (e.g., /home/pi/ on a Raspberry Pi), use the following command in the terminal:

mkdir pic

 

mkdir: The command to create a new folder (make directory).

~/pic: Specifies the location and name of the pic folder in the home directory (e.g., /home/pi/pic)

 

 

CODE:

 

https://github.com/YakrooThai/RaspberryPiZERO/blob/main/PiDigitalClock/picaren2.py

3Dprint FILE:Case 

https://grabcad.com/library/pi-digital-clock-7-84-display-1

https://www.thingiverse.com/thing:6920898

https://www.printables.com/model/1158056-pi-digital-clock-784-display

https://cults3d.com/en/3d-model/gadget/pi-digital-clock-7-84-display

 

Coming Sooon!!

You can contact

Please follow my YouTube channel. Still a newbie to make a YouTube channel.

by just clicking on SUBSCRIBE button. Thankyou

https://www.youtube.com/@Yakroo108

Code
  • https://github.com/YakrooThai/RaspberryPiZERO/blob/main/PiDigitalClock/picaren2.py

    https://github.com/YakrooThai/RaspberryPiZERO/blob/main/PiDigitalClock/picaren2.py
    View

Pi Digital Clock 7.84" (PYTHON)

Pi Digital Clock: A smart device with real-time clock and calendar, time-based greetings, and PM2.5 data, replacing paper calendars.

211
 
4
0
0
These revenues will go back into supporting creators, contests, and the open source ecosystem, and more.

Share your project on social media to expand its influence! Get more people to support it.

  • Comments( 0 )
  • Like( 4 )
/1000
Upload a photo:
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP

You May Also Like

View All
Add to cart
Board Type : GerberFile :
Layer : Dimensions :
PCB Qty :
Different PCB Design
PCB Thickness : PCB Color :
Surface Finish : Castellated Hole :
Copper Weight : 1 oz Production Time :
Total: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.

PCB Assembly

PCBA Qty: BomFile:
NO. OF UNIQUE PARTS: NO. of Components:
Assembly Cost: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
3dPrintingFile : Size :
Unit : Volumn :
3D Printing Qty : Material :
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Acrylic Type : AcrylicFile :
Dimensions: Engrave:
Acrylic Qty :
Acrylic Thickness:
Acrylic Color:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
CNC Milling File : Size:
Unit: Volumn:
CNC Milling Qty : Material:
Type of Aluminum: Surface Finish:
Tolerance:
Surface Roughness:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Item Price Qty Subtotal Delete
Total: US $0.00
Certified Product | Supported Purchase: Full After-sales Protection