SmartEVSE / SmartEVSE-3

Smart Electric Vehicle Charging Station (EVSE)
MIT License
128 stars 87 forks source link

Read/Write values over HTTP #5

Closed martijndierckx closed 6 months ago

martijndierckx commented 2 years ago

Since v3 includes WIFI and a webserver. Is it possible to read/write the same values as we did over Modbus for the v2?

mstegen commented 2 years ago

Currently the webserver just shows a status page. It's not yet possible to read/write values directly using unique endpoints like /chargecurrent or /temperature The only two endpoints that currently work are /update (to update the firmware or spiffs partition) or /erasesettings to erase all settings, including the ESP's wifi settings. This is something which is on my to-do list. Still figuring out what the best approach is...

martijndierckx commented 2 years ago

The HTTP API would be my primary reason for upgrading my v2 to a v3. So keep me posted.

Still figuring out what the best approach is...

Are you looking for an HTTP API architecture? If so ... I would be happy to help you with this. (I could setup a spec in Postman)

fluppie commented 2 years ago

Hey @martijndierckx check out @k-janssens in https://github.com/SmartEVSE/SmartEVSE-3/issues/3

martijndierckx commented 2 years ago

@mstegen any update on this? I've got SmartEVSE3 sitting on my desk waiting to replace my v2. But I really need the HTTP API in order to proceed.

bostjanlaba commented 2 years ago

There is a web server on v3? Does it support node.js? Is there any documentation so that I can create my own web service to control the charger, get data from it etc.? I did node.js api servers in the past but in this case I'm not sure how the api server itself reads, writes data from/to the controller itself. Is there a middleware for this?

Thank

martijndierckx commented 2 years ago

I've switched to the forked Serkri firmware. HTTP api is basic, but present.

mstegen commented 6 months ago

All the work that went into Serkri's fork and more added by Dingo35 is now finally available here. Will close this now.