DEV Community

loading...
Cover image for Build a Pomodoro clock using Github actions!

Build a Pomodoro clock using Github actions!

aishikamidder05 profile image Aishika Midder Updated on ・2 min read

My Workflow

My SMS Alert
Alt Text

My email Alert
Alt Text

Hey there, lovely people of the internet, this is my second post for Actions Hackathon. This time, I have built a pomodoro timer using python and implemented it using github actions. I made it keeping in mind the burnout we developers face after a certain point. 🐞

Just another normal day in our lives, when there is a huge task to complete or to finish a project or assignment on time, we end up thinking that we can drive straight through it but we get tired and exhausted. Most of us can stay focused on a task for at most 35-45 minutes, after that our mind starts wandering and you will never know where that 1 hour went missing ( give it back!!)

Alt Text

Here comes our saviour, drumrolls the Pomodoro technique! 🍅
The Pomodoro timer instills a sense of urgency where rather than feeling like you have endless time in the world to get things done, you know you only have 45 minutes to make as much progress on a task as possible. (It's only 45 mins, you can do it!)⏳
And breaks? You get a whole 15 minutes to chill after each 45 min session.

This technique has been extremely useful for me and I wanted to make it easy to use for the community as well. Github Actions enabled me to do the exact same and I made a beneficial use of it.

Alt Text

My timer implemented with the help of Github Actions sends me a notification every 45 minutes, when my work is over and every 15 minutes when my break gets over. I have used Twilio to send me the SMS on my mobile phone and Mailgun to send me the email alert.

Here's a look at my newly created Github action!

Alt Text

To use it for yourself, setup an account in Twilio and Mailgun. Just create the secret variables with the same names I have created and put your own information, like api keys, phone number, email etc. Set the secret variable IS_ACTIVATED to 0 to stop receiving any alerts and set it to 1 to turn on the pomodoro clock.

Submission Category:

Category 1: Wacky Wildcards
Category 2: Phone Friendly

Yaml File or Link to Code

pomodoro-clock

This project was built as a part of Github Actions Hackathon My DEV Post here

To use it for yourself

Setup an account in Twilio and Mailgun
Create the secret variables with the same names I have created
Just put your own information, like api keys, phone number, email etc.
Set the secret variable IS_ACTIVATED to 0 to stop receiving any alerts and set it to 1 to turn on the pomodoro clock.

After this hackathon ended, I have made this open for hacktoberfest especially for beginners.

Make sure to make valid pull requests for hacktoberfest or else your PR would be declared invalid.

I will merge your contributions if they are useful.




Hope you find my post useful. Thanks for reading till the end.
Adios! ^_^

Discussion (13)

pic
Editor guide
Collapse
michelcpp profile image
michel-cpp

Github actions looks cool, didn't know we could do that !

Collapse
aishikamidder05 profile image
Aishika Midder Author

Glad you found it useful!

Collapse
ankan2k profile image
Ankan Pramanik

Pretty interesting! Seriously i had no idea with github actions. gonna check it out!

Collapse
aishikamidder05 profile image
Aishika Midder Author

thank you ! Yes, surely.

Collapse
sabarishcodes profile image
Sabarish Rajamohan

Wow, this is so awesome! 💯✨ Have never come across Actions being used for such an usecase. Great job Aishika! 👏👏👏

Collapse
aishikamidder05 profile image
Aishika Midder Author

Thanks a lot! Glad you found it useful.

Collapse
maulik profile image
Maulik

Nice idea and implementation. This idea can be used for automating many things also.
Thanks

Collapse
aishikamidder05 profile image
Aishika Midder Author

Glad you found it useful!

Collapse
shunjid profile image
Shunjid Rahman Showrov

Didn't know about this technique. I will definitely try it. Best of luck. 😀

Collapse
aishikamidder05 profile image
Aishika Midder Author • Edited

Thank you. Glad you found it useful!

Collapse
sisodiya2421 profile image
Abhishek Sisodiya

It's really a nice idea. Best of Luck 😃

On a side note, my hometown is Durgapur. Subho Mahalaya.

Collapse
aishikamidder05 profile image
Aishika Midder Author

Thank you. Subho Mahalaya!

Collapse
shaijut profile image
Shaiju T • Edited

Nice, 😄 I have already planned something similar in C#, 40 % over.