Giter Site home page Giter Site logo

polarizedions / eskom-loadshedding-api Goto Github PK

View Code? Open in Web Editor NEW
59.0 6.0 21.0 47 KB

Basic (in-progress) api to expose the eskom endpoints for loadshedding.

Home Page: https://www.npmjs.com/package/eskom-loadshedding-api

TypeScript 100.00%
eskom api nodejs typescript loadshedding

eskom-loadshedding-api's Introduction

πŸ‘‹ Hi, I'm Stephan

πŸ’­ Who am I?

  • πŸ“ Fullstack developer
  • πŸ‡ΏπŸ‡¦ Proudly South African
  • 🐱 Cat lover

πŸ“Š Stats

My Stats Top Languages

eskom-loadshedding-api's People

Contributors

dependabot-preview[bot] avatar polarizedions avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

eskom-loadshedding-api's Issues

Status.getStatus() issue

Status.getStatus() seems to be returning -1 all the time

Even though the actual Eskom API is up and running.

Piece of code below is swallowing the exception. I was gonna do a PR but my Typescript is not so good
try {
const resp = await this.get('/GetStatus');
return resp.data;
} catch (e) {
return LoadsheddingStageRaw.UNKNOWN;
}

Pre-loadshedding stage warning

This is more of a feature request than an issue.

Would it be possible to get a planned future state? Like if we're moving to stage 2 at 12:00 we can get that timestamp and the planned stage?

Can't figure out how Eskom se push would manage it.

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.