Skip to content
/ poweron Public

Telegram bot for power outages in Lviv, Ukraine

Notifications You must be signed in to change notification settings

sl4wa/poweron

Repository files navigation

Poweron-Bot

Setup

1. Install Dependencies

Create a virtual environment and install required Python packages:

make deps

2. Install and Enable Services

Set up and enable the bot and notifier services using Supervisor:

make install

This command registers two Supervisor services:

  • bot_notifier: Handles notifications.
  • bot: Manages bot interactions.

3. Start the Bot Services

To start both services together, run:

make start

4. Run loe_checker.sh with Cron

To check the API at regular intervals, add loe_checker.sh to cron:

  1. Make the script executable:

    chmod +x /path/to/loe_checker.sh
  2. Add it to cron (for example run every 5 minutes between 7 AM and 11 PM):

    */5 7-23 * * * /path/to/loe_checker.sh

About

Telegram bot for power outages in Lviv, Ukraine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published