I'll pencil in some of the API's as I research them.
Please let me know if any of these appear to be in error.
Joel
For all of these URLs, I'm omitting the DNS or IP address prefix which would look something like this 192.168.1.13/sisbot/play.
Also note that the proxy at 80 for forward over to the actual sisbot listener at 3002. Without proxy this would look like 192.168.1.13:3002/sisbot/play
You MUST replace the 192.168.1.13 with whatever IP or DNS you can reach your table at on your home router. You CAN keep the :3002 port or use with no port specifier on the default port 80 for each one of the URL.s
Here's the link to the docs.
https://documenter.getpostman.com/view/4978253/RWTeUgtc
If I send a "http://XX.XX.XX.XX/3002/sisbot/play" by my browser´I get the reply "Error: ENOENT: no such file or directory, stat '/home/pi/sisbot-server/sisbot/play' ".
Do I have to do some autentification stuff before?
Holger
Holger,
A couple things with your request:
The address you wrote above has a misspelling of "/3002" in it (it should have a colon before 3002). The correct address would either be "http://XX.XX.XX.XX/sisbot/play" or "http://XX.XX.XX.XX:3002/sisbot/play". The port number is optional as the proxy server will direct it to the right place.
The other important difference is the API expects a POST request. You would need to use a form, Ajax, or some other means (Postman, as Joel notes above) besides the browser address bar. There is no authentication needed.
Hope that helps. Let me know if you need more assistance.
Matt
Hi Matt,
thanks for your reply. I was offline for a while, sorry.
I see the colon issue, and I used Postman for generating the right request.
Unfortunately sisbot responds with error, pls. see screenshot. I tried with and w/o port parameter, same response.
Thanks for the screenshot, I was able to duplicate your issue here after comparing to my own setup.
The table is expecting form data (even if empty), which can be included in the Body tab. I've attached a screenshot of what the value should be in this case. I'll update the server to accept it without specific data in the future, but for now just include the empty "data" object.
Matt
Yeahh, now I got it! Thank you, Matt!
I want to integrate this now into my home automation ( https://fhem.de/fhem.html ), let´s see...
Best,
Holger
We take your privacy seriously and will only use your personal information to provide you with the products and services you request from us. Please see our privacy policy for more details.