You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple shell script that will show the current time on our screen.
How does it work?
To start, you would typically use the "date" command in Linux, which provides system date and time information. The "date" command allows you to specify a format for displaying the date and time.
The basic structure of the digital clock script involves an infinite loop. An infinite loop is a loop that runs indefinitely, repeatedly executing the same set of commands until explicitly terminated. In this case, it ensures that the digital clock keeps updating and displaying the current time continuously.
Steps_
1-Use the "date" command to get the current time in the desired format.
2- Create an infinite loop that continuously updates and displays the time.
3- Display the current time on the screen within the loop.
4- Add a delay to control the refresh rate of the clock (e.g., every second).
5- By executing this script, you'll have a digital clock that shows the current time and keeps updating in real-time until you stop the script manually.
Hello there 👋
Thanks for submitting your first issue to the Pi-Apps project! We'll try to get back to you as soon as possible.
In the meantime, we encourage you join our Discord server, where you can ask any questions you might have.
Please respond as soon as possible if a Pi-Apps maintainer requests more information from you. Stale issues will be closed after a lengthy period of time with no response.
Hello @AIREEXZIP2! Thank you fro submitting this. Unfortunately there are a few problems with it.
First of all, we try to prioritize adding apps that a normal, everyday desktop user would find useful. To see the current time, an average user may look at a clock plugin in the panel, or maybe use a system monitor like conky to view the time.
I do not think that any amount of changes to the script would persuade us to add this app to the official list of apps on pi-apps, so I am closing this issue now. You can still feel free to reply back here and ask about anything else.
What is the name of the app?
digital clock
(Optional) Where is the app hosted?
No response
About the app
A simple shell script that will show the current time on our screen.
How does it work?
To start, you would typically use the "date" command in Linux, which provides system date and time information. The "date" command allows you to specify a format for displaying the date and time.
The basic structure of the digital clock script involves an infinite loop. An infinite loop is a loop that runs indefinitely, repeatedly executing the same set of commands until explicitly terminated. In this case, it ensures that the digital clock keeps updating and displaying the current time continuously.
Steps_
1-Use the "date" command to get the current time in the desired format.
2- Create an infinite loop that continuously updates and displays the time.
3- Display the current time on the screen within the loop.
4- Add a delay to control the refresh rate of the clock (e.g., every second).
5- By executing this script, you'll have a digital clock that shows the current time and keeps updating in real-time until you stop the script manually.
Upload file or Add PR Link
digital clock.zip
Confirmations
The text was updated successfully, but these errors were encountered: