Skip to content

Commit

Permalink
Adding notification sound
Browse files Browse the repository at this point in the history
  • Loading branch information
ameyjadiye committed May 14, 2021
1 parent db2bfc1 commit c5e4e91
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# [CoWin-Vaccine-Notifier]()
Automated Python Script to retrieve vaccine slots availability and get notified when a slot is available.

## pre requisite
```
pip install requests pygame
```

[Blog: Step by Step Guide](https://ayushirawat.com/automate-cowin-vaccine-slots-availablity-using-python):
==========================
you can find a step by step walkthrough in my [Blog](https://ayushirawat.com/automate-cowin-vaccine-slots-availablity-using-python)
Expand Down
5 changes: 4 additions & 1 deletion script.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'''

import requests

from pygame import mixer
from datetime import datetime, timedelta
import time

Expand Down Expand Up @@ -74,6 +74,9 @@
if(counter == 0):
print("No Vaccination slot avaliable!")
else:
mixer.init()
mixer.music.load('sound/dingdong.wav')
mixer.music.play()
print("Search Completed!")


Expand Down
Binary file added sound/dingdong.wav
Binary file not shown.

0 comments on commit c5e4e91

Please sign in to comment.