What I built
Emask Notifier is a background worker that running a process and managed by Supervisor daemon.
This notifier can monitor this Emask website and check whether the e-Mask can be available for buying.
At this moment, it doesn't have the public API service for everyone because it's only for people in Taiwan.
To be private usage, it's only for my friends to let them receive the notification message and know the masks are available to buy.
In the future, it will have the contact form to let people in Taiwan can allow this notifier sends notification via Vonage SMS API to specific cell-phone number.
Category Submission:
Program for the People
App Link
At this moment, it's not available because this is the notifier and it's running as the background process on the targeted operating system.
Screenshots
If someone is in the default phone lists, it will get following SMS message:
Description
If developers want to setup own notifier for this eMask notifier, it's very easy to build.
And the completed README is available here.
Link to Source Code
peter279k / emask-notifier
The e-mask notifier for improve https://emask.taiwan.gov.tw/msk/index.jsp feature
emask-notifier
Introduction
Using the Nexmo API to make SMS message with specific phone number and user.
Emask Notifier Installation (Deprecated)
- Set up a Nexmo account on Nexmo developer site
- Creating
phone.csv
and locate this CSV file is withemask-notifier.sh
on same directory.
And the format is as follows:
user_name,user_phone
- Set
api_key
as a system environment variable withecho 'export api_key="{your_api_key}"' | sudo tee -a /etc/environment
on/etc/environment
file - Set
api_secret
as a system environment variable withecho 'export api_secret="{your_api_secret}"' | sudo tee -a /etc/environment
on/etc/environment
file - Using
cd /path/to/emask-notifier/ && ./emask-notifier.sh
as a Cronjob to let this Bash script do work automatically. - Done. Happy to do notification for your friends :)!
Emask Notifier Uninstallation (Deprecated)
- Remove
api_key
system environment variable on/etc/environment
file - Remove
api_secret
system environment variable on/etc/environment
file - Remove this Cronjob work.
Emask Notifier for notifier.php Installation
- Checking the
supervisor
,curl
andcron
commands have…
Permissive License
The license is under MIT and available here.
Background
When the COVID-19 is ravaging the world, the mask is very important for people to avoid droplet infection.
Fortunately, the Taiwan government provides the e-mask website for Taiwan people to buy ten masks per two weeks.
However, the website doesn't have the subscription service that sending the notification via SMS to people and notify them buying masks.
That's the main reason why I build this notifier worker and setup the process running on the operating system :).
Additional Resources/Info
I'm grateful for these services to help me to complete this notifier:
Top comments (0)