Code Monkey home page Code Monkey logo

openvolt-cli's Introduction

openvolt CLI

Gathers and displays energy consumption information from OpenVolt and other sources

Installation

This is a CLI tool, you can clone it locally with git clone and either run it directly with npm or manually.

You will need to create a .env file with the following variables defined in .env.example

Steps

  1. Clone the repository
  2. Run npm install to install dependencies
  3. Run npm link to link the CLI to your system
  4. Run openvolt to start the CLI

You can also execute the file directly from the src folder with tsx using npm start.

If you have any issues with the installation, please install tsx globally with npm i -g tsx (this shouldn't be necessary in most cases)

Usage

There's only one command called analysis, you can run openvolt -h or openvolt help analysis to see the options.

❯ openvolt -h
Usage: OpenVolt CLI [options] [command]

Fetches energy information from OpenVolt

Options:
  -V, --version                 output the version number
  -h, --help                    display help for command

Commands:
  analysis [options] [meterId]  Gets analysis of the energy consumption of a meter
  help [command]                display help for command

You can optionally supply a meter ID and a date range to get the analysis for that specific time using openvolt analysis [meterId] -s [startDate] -e [endDate]. Dates must be in the ISO format YYYY-MM-DDTHH:MM:SS.ZZZZ.

Running it in larger terminals will make the output easier to read

openvolt-cli's People

Contributors

khaosdoctor avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.