energo-pro-alerts

Energo Pro Varna Alerts
Email and web notifications for planned repairs and outages from Energo Pro - Varna
About
Energo Pro (Енерго Про) is the local electricity supplier for Varna region in Bulgaria. They post notifications about planned repairs on their website but it is not possible to subscribe to those notifications and receive them immediately - instead one should check their website frequently.
The code in this repository serves as a middleware between the website and the user - it sends hourly notifications on email which contain the latest news related to planned repairs and outages.
The way the code is structured allows for integration with any other website which has a dedicated page for this purpose.
Usage
In order to use this repository, one must clone it and adjust the repository secrets found under settings/secrets/actions
in the repository and add their own configuration:
# The email address of the sender of the notifications
EMAIL_FROM="sender@example.com"
# The subject in the email
EMAIL_SUBJECT="Planned outages and repairs"
# The email address of the recipient of the notifications
EMAIL_TO="recipient@example.com"
# API key for Brevo (formerly known as Sendinblue)
SENDINBLUE_API_KEY="abc-123"
# Your client ID as shown in the invoices and the contract
USERNAME='123456789'
# The last four digits of your unique ID (ЕГН)
PASSWORD='1234'
Available ways to use the code in this repository
The code is deployed via Vercel and can be accessed here.
When forked and correctly set up, this repository creates a CRON job which sends an email at 0 (zero) o'clock each hour between 5:00 and 14:00 UTC.
One can adjust this by modifying the parameters in the action configuration
Visitor stats
Code stats
LICENSE
MIT