This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Help with BluOS API
#2
Here's a sample event script for volume control (0..100%). Change IP as needed:
Code:
volume = event.getvalue()

ip = '192.168.1.100'
url = 'http://' .. ip .. ':11000/Volume?level=' .. volume .. '&tell_slaves=1'
res, err = require('socket.http').request(url)
log(res, err)

You can implement other controls the same way just check the documentation on which URL path and parameters must be used. If you have a player with several nodes in one then use port 11010 for zone 2 instead of 11000. Status retrieval can be done via a resident script but it's more complicated. See if control works for you first.
Reply


Messages In This Thread
Help with BluOS API - by Rauschentofft - 23.06.2021, 11:34
RE: Help with BluOS API - by admin - 25.06.2021, 13:49

Forum Jump: