ProtoPixel Spaces can integrate with other elements such as presence sensors via its API.
The API entry is the following:
#API URL
/api/v1/external/toggle/%button_id/%status
#To make a request you need
# 1. Node or Create IP address
# 2. API URL where we can replace the name of the button and the status
example:
# this will notify the API that a button named Button1 has been triggered with the On state.
curl http://localhost:8181/api/v1/external/toggle/Button1/On
# if we want to notify a node
curl http://192.168.133.100:8181/api/v1/external/toggle/Experience/1
To tie it to a particular action, go to the space as Manager and select My Rules in the menu.
Then Click on Add Rule, Add Event, Learn and trigger the event. You can now select it.
Comments
0 comments
Article is closed for comments.