Skip to content

Cli dashboard for current disruptions at energieonderbrekingen.nl

Notifications You must be signed in to change notification settings

akkerman/enercli

Repository files navigation

EnerCli

Commandline dashboard showing disruptions updated today.
Data from https://energieonderbrekingen.nl/

Screenshot

Prerequisites:

  • client_id and client_secret for the api
  • node >= 13
  • dark terminal with font awesome installed

Install

git clone https://github.com/akkerman/enercli.git
cd enercli
npm install
node index.mjs

Shortcuts

key function
ctrl+c Exit application
ctrl+l Clear screen, refresh
e Toggle display of electricity
g Toggle display of gas

Run with docker

docker build -t enercli https://github.com/akkerman/enercli.git
docker run -it --rm --name enercli -e client_id=<your_client_id> -e client_secret=<your_client_secret> -e TZ=Europe/Amsterdam -e lines=20 enercli