Skip to content

A Python script that displays an ASII style clock in the terminal

License

Notifications You must be signed in to change notification settings

mateowoetam/ASCII-terminal-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A Shell script that displays an ASCII-style clock in the terminal

How it works:

It checks the system time, clears the terminal, reads the current time, formats the time into ASCII with a given representation, and prints the clock, repeating every second to stay on track.

  • The script is also able to display seconds when edited.
  • to run 24h format the time should be set like that in the system

Example:

Screenshot from 2022-12-03 15-47-43

Some challenges:

I found it challenging to implement the ability to display the clock in the middle of the terminal window (an upcoming feature) and create ASCII art of different sizes to have versatile sizes.

Upcoming features

  • Adaptive to window size
  • Center on the window
  • Customizable colours
  • Maybe also RGB puke
  • Other time zones
  • Time and stopwatch
  • User interface to change values of the features above

File content:

  • LICENSE
  • README.md
  • clock.sh (new shell rebase)
  • time2.py (legacy)

How to run:

  • Go to terminal and run the sh file like so: sh /path/to/shell/script

Credits:

Great thanks to OPENAI's chatGPT for proofreading the code and generating solutions

Legacy

How to install Legacy:

Dependencies:

  • Python 3.10 (I haven't tested if it works on older versions)

Instructions:

  • Download the file
  • open file location in terminal
  • enter the command 'Python time2.py' and press ENTER

About

A Python script that displays an ASII style clock in the terminal

Resources

License

Stars

Watchers

Forks

Packages

No packages published