Thread Rating:
  • 4 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Esperyd´s Raspberry PI project
(07-17-2018, 09:48 AM)Frnandu Martiński Wrote:
(07-11-2018, 01:45 PM)SiverNodashi Wrote:
(07-04-2018, 12:36 PM)daromer Wrote: Solar-sis you can define the commands in the config file. You then use the API to poke the system to do certain things.


How do you "poke the API"?  i.e. how do you access the API?

like I wrote above (check what port you have configured, mine is 3001, adjust accordingly):

curl http://localhost:3001/output_source_priority?source=00 

curl http://localhost:3001/utility_max_charging?current=10
I tried the commands and I get this error

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<pre>Internal Server Error</pre>

Any idea ?

Forum Jump:

Users browsing this thread: 2 Guest(s)