skip to Main Content
Notifications
Clear all

Sisbot API

6 Posts
3 Users
0 Likes
4,478 Views
(@safepassagedesign)
Contributor
Joined: 6 years ago
Posts: 8
Topic starter  

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

 

 


   
Quote
(@junkinotec-feg-de)
Contributor
Joined: 5 years ago
Posts: 4
 

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


   
ReplyQuote
(@matt2)
Admin
Joined: 4 years ago
Posts: 64
 

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


   
ReplyQuote
(@junkinotec-feg-de)
Contributor
Joined: 5 years ago
Posts: 4
 

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.

 

This post was modified 4 years ago by Holger Runkewitz

   
ReplyQuote
(@matt2)
Admin
Joined: 4 years ago
Posts: 64
 

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


   
ReplyQuote
(@junkinotec-feg-de)
Contributor
Joined: 5 years ago
Posts: 4
 

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


   
ReplyQuote
Share:

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.

Back To Top
Search
    0
    Your Cart
    Your cart is emptyReturn to Shop