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.



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

Posted on by:

aishikamidder05 profile

Aishika Midder

@aishikamidder05

Full time cat lover part time tech devotee | CSE Sophomore at National Institute of Technology, Durgapur, India

Discussion

markdown guide
 

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

 

Glad you found it useful!

 

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

 

Thank you. Glad you found it useful!

 

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

 

Thanks a lot! Glad you found it useful.

 

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

 

Glad you found it useful!

 

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

 

thank you ! Yes, surely.

 

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

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

 

Thank you. Subho Mahalaya!

 

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