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.

Hi, 

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">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Internal Server Error</pre>
</body>
</html>

Any idea ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)