by V.S
This is a project that aims to create a simple Backend in order to:
- control a charging Station
- Store and Visualise charging processes
- Export data in a given format. Written in Javascript. And tested on a X-Charge - C2EU - AC Charging Station.
Starting Point:
- OCPP 1.6 - JSON
- Server written in node.js using the ws module
- X-Charge C2EU are used for testing.
- central system adress (adress of the server) is the http://192.168.0.23:9016
The Backend
The Frontend
- think of an App structure . index.html
- design the ui and the basic functionalities
- test the whole thing
- write about what you did, how you overcame all these little problems and why you think the code works
- save data to mongo.db
probably useful links( It may be useful to clean the links from time to time if you don't remember using them)
- node.js http // html ( https://nodejs.org/api/http.html#http_message_rawheaders )
- one page or multiple? Boilerplate?
- https://www.jenniferbland.com/saving-data-to-mongodb-database-from-node-js-application-tutorial/
- https://nodejs.org/en/docs/guides/anatomy-of-an-http-transaction/
- https://nodejs.org/api/http.html#http_message_rawheaders
- https://nodejs.org/api/events.html
- https://www.npmjs.com/package/soap ---------------------------------------------------------- Node's Soap Package Info
- https://github.com/strongloop/strong-soap --------------------------------------------------- Strong Soap !!!
- https://github.com/aymen-mouelhi/ocpp-js/blob/master/entities/CentralSystem.js -------------- A similar Project
- https://tools.ietf.org/html/rfc6455 --------------------------------------------------------- Web Socket description
- https://www.ably.io/concepts/websockets ----------------------------------------------------- Article on Web Sockets
- https://hackernoon.com/implementing-a-websocket-server-with-node-js-d9b78ec5ffa8 ------------ Implementing Wb Sockets
- https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers
- npm install ws // installs websockets
- npm install node-uuid // Unique Id's
- npm install body-parser
- npm install express // front end
- npm install open // opens the front-end webpage
- npm install bootstrap@3 // style