GithubHelp home page GithubHelp logo

emw's Introduction

Sample code for plausible server end support of a network of electric vehicle charging stations reacting to demand response signals from the ISO.

The implementation is in Node.js, and uses REST style interfaces implemented using the Restify framework.

The evse directory contains pseudo-code of a REST server running inside an EVSE. It both sends events to a central server, and receives commands from that server.

The server directory is pseudo-code of a REST server for the network of participating EVSE's. It receives events from the EVSE's and from the ISO, and dispatches commands to the EVSE's as appropriate.

Server events

POST requests to /evse URL's are to come from the EVSE's, while POST requests from /iso come from the ISO.

EVSE's will send events to the server depending on events within the EVSE.
You can see the configuration for those events in the evse/index.js script. These events include powerOn, powerOff, plugIntoVehicle, and unplugged. While the EVSE is connected to a vehicle, it will send a heartbeat every minute or so containing data about the active charging session.

The ISO sends events to the server related to its business.

Server data storage

The server maintains two data stores.

  • EVSE's - Data about each connected EVSE, location, and its current status.
  • ReductionRequest's - Each time the ISO sends a demand response request, it gets recorded, and then a list of affected EVSE's is recorded.

Additionally there should be an activity log necessary for various kinds of reporting.

emw's People

Contributors

robogeek avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

karlpilkington

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.