Difference between revisions of "Simple EVSE"

From BITPlan can4eve Wiki
Jump to navigation Jump to search
Line 238: Line 238:
 
== start a web server ==
 
== start a web server ==
 
<source lang='bash'>
 
<source lang='bash'>
java -jar simpleevse.jar  --port ttyUSB0 --server --debug
+
java -jar simpleevse.ja --port ttyUSB0 --server --debug
 +
SimpleEvSe: 0.0.1
 +
 
 +
Jul 29, 2017 6:40:46 PM com.sun.jersey.api.core.PackagesResourceConfig init
 +
INFORMATION: Scanning for root resource and provider classes in the packages:
 +
  com.bitplan.simpleevse.resources
 +
  com.bitplan.rest.providers
 +
Jul 29, 2017 6:40:54 PM com.sun.jersey.api.core.ScanningResourceConfig logClasses
 +
INFORMATION: Root resource classes found:
 +
  class com.bitplan.simpleevse.resources.SimpleEvseResource
 +
Jul 29, 2017 6:40:54 PM com.sun.jersey.api.core.ScanningResourceConfig logClasses
 +
INFORMATION: Provider classes found:
 +
  class com.bitplan.rest.providers.JsonProvider
 +
Jul 29, 2017 6:40:55 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
 +
INFORMATION: Initiating Jersey application, version 'Jersey: 1.19.3 10/24/2016 03:43 PM'
 +
Jul 29, 2017 6:40:57 PM com.bitplan.rest.RestServerImpl addHttpHandler
 +
INFORMATION: adding classpath httphandler /static/->/
 +
Jul 29, 2017 6:40:57 PM org.glassfish.grizzly.http.server.NetworkListener start
 +
INFORMATION: Started listener bound to [0.0.0.0:8102]
 +
Jul 29, 2017 6:40:57 PM org.glassfish.grizzly.http.server.HttpServer start
 +
INFORMATION: [HttpServer] Started.
 +
Jul 29, 2017 6:40:57 PM com.bitplan.rest.RestServerImpl startWebServer
 +
INFORMATION: starting server for URL: http://0.0.0.0:8102
 
</source>
 
</source>
 +
Now you can use your browser or curl to issue restful commands
 +
Valid commands are e.g.:
 +
 +
*    http://localhost:8102/charge/control/write/StopCharging/1
 +
*    http://localhost:8102/charge/control/write/StopCharging/0
 +
*    http://localhost:8102/charge/control/write/SetChargeCurrent/6
 +
*    http://localhost:8102/charge/control/read/SetChargeCurrent
 +
*    http://localhost:8102/charge/control/read/all
 +
 
<headertabs/>
 
<headertabs/>

Revision as of 18:43, 29 July 2017