energy-ua-info

Version, currently main branch1 version
  • main branchlatestJan 30, 2026

github.com/mamantoha/energy-ua-info

A command-line tool that fetches and displays scheduled electricity outage information for Ukrainian cities

3 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  energy-ua-info:
    github: mamantoha/energy-ua-info
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
>= 1.0.0
License
MIT
Author
Anton Maminov
Target
  • energy-ua-info from src/energy-ua-info.cr

Dependencies

This version declares no dependencies.

README

energy-ua-info

energy-ua-info is a command-line tool written in Crystal that fetches and displays scheduled electricity outage information for Ukrainian cities. It retrieves data from the https://energy-ua.info/ service and presents outage periods, durations, and next scheduled events for a specified city, group, and subgroup.

Installation

  1. Install Crystal (if not already installed):

  2. Clone the repository:

    git clone https://github.com/mamantoha/energy-ua-info.git
    cd energy-ua-info
  3. Install dependencies:

    shards install
  4. Build the executable:

    shards build --release

Usage

Використання: energy-ua-info CITY GROUP SUBGROUP

Де:
  CITY - назва міста (наприклад, kyiv, lviv, kharkiv)
  GROUP - номер групи (наприклад, 1, 2, 3)
  SUBGROUP - номер підгрупи (наприклад, 1, 2)

Приклад:
  energy-ua-info kyiv 1 1

Отримає інформацію про відключення електроенергії для Києва, групи 1, підгрупи 1.
    -h, --help                       Показати це повідомлення

Example:

energy-ua-info kharkiv 6 1

This will fetch and display the outage schedule for Kharkiv, group 6, subgroup 1.

Output Example

screenshot

Contributing

  1. Fork it (https://github.com/mamantoha/energy-ua-info/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

MIT

Author