Got screens in your home or office? Wish you could magically zap stuff onto them? Here's an API for that.
Simply open a unique URL in a fullscreen web browser on as many or as few screens as you'd like, and issue calls to the Billboard API. Your content will appear on the screens you've specified, through the magic of node.js and Socket.io.
You can several types of content.
curl -X POST -d content="<Path to Image/Youtube/Iframe or Text>" http://{billboard_instance_url}/api/screens/home
You can force how to handle the content by adding the action
param.
curl -X POST -d action=image -d content="<Path to Image" http://{billboard_instance_url}/api/screens/home
To make the content the default. It reverts to the default after showing other content. set default=true
curl -X POST -d defult=true -d content="<Path to Image" http://{billboard_instance_url}/api/screens/home
response:
{
"status": "ok"
}
List the names of screens that are currently available:
curl http://{billboard_instance_url}/api/screens
response:
{
"screens": [
"all", // all currently connected screens
"right",
"left"
]
}
Runs window.location.reload()
to force get a screen to update:
curl http://{billboard_instance_url}/api/screens/:name:/reload
response:
{
"status": "ok"
}
If you browse to any screen http://{billboard_instance_url}/screens/{screen_name}
you can edit the content directly
from that screen. Simply click the gear to open the screen control. Then paste your image, youtube or other webpage
link. Or just type some text to share with your coworkers.