Git Product home page Git Product logo

smasunnyportal's Introduction

SMASunnyportal data extraction


This is work in progress


Objective:

Provide a typescript based interface for retrieving SMA Solar plant information from the Sunnyportal.

How to get started?

  1. Clone the project to your local drive
  2. Install all dependencies. For the project PNPM has been used.

npm install or pnpm install

  1. Start the program

npm run start:dev or pnpm run start:dev

  1. Enter the required SMA login credentials. You can leave the baseurl blank, it will use the default.

What data can be collected?

Plant information

  • The list of the plants that are registered under your account
  • The data from an individual selected plant
  • The list of devices used in a plant
  • The details of the devices
  • The parametes of the devices

Plant energy generation information

  • The latest yield information
  • All the data for a certain plant based on a given interval
  • Day overview per day or per quarter of an hour
  • Monthly overview
  • Yearly overview
  • Energybalance information based on totals or details
    • possible periods that can be selected are:
    • infinite: year, month
    • year: year, month, day
    • month: month, day, hour, fifteen
    • day: day, hour, fifteen

The current index.ts file contains testing code for each of the requests that can be made.

Tasks

  • Switch the logger from Pino to Winston
    • Move Pino logger into it's own file
    • Update the logger entries in requests and index
    • Add Winston logger to the project
    • Replace Pino logger by Winston
    • Enable development (DEBUG) and test/production (INFO) levels for Winston.
  • Setup proper response handling and parsing.
  • Refactor the code to remove further duplication.

smasunnyportal's People

Contributors

petepall avatar dependabot[bot] avatar

Watchers

 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.