Search for Solutions. Get Support.
- First time setup
- Button Mapping
- Link Multiple Haptique
- Sequence and Macros
Roku : URL Integration and Button Mapping for Haptique®
Updated 2 Dec, 2024SpecificationsURL integration allows Haptique® to interact with external devices by sending HTTP POST requests to predefined IP endpoints. These requests perform specific actions, such as turning a device on/off adjusting volume, or launching applications.
Key Component :
- IP Commands : Each Button in Haptique® is linked to a unique HTTP endpoint for a specific action.
- Button Mapping : Haptique®'s buttons are configured to trigger these HTTP requests.
- Device Control : Commands are sent to the IP address of the target device e.g Roku.
2. Implementation Steps
Step 1 : Define the IP Commands
We started by listing the required IP commands for the devices to be integrated. These commands correspond to various actions like power toggling, navigation, or app launching.
Example IP Commands for Roku :
Action | HTTP Endpoint |
Power Toggle | /Keypress/Power |
Volume UP | /Keypress/VolumeUp |
Volume Down | /Keypress/VolumeDown |
Launch Netflix | /launch/12 |
Launch Youtube | /launch/837 |
Remote Navigation UP | /keypress/Up |
Back | /Keypress/Back |
Step 2 : Create Button Triggers in Haptique®
We mapped Haptique® buttons to these commands. Each button in the Haptique® interface is configured to trigger an HTTP POT request to the appropriate endpoint.
Example Button Mappings :
- Power Button : Sends a POST request to /keypress/Power.
- Volume Up Button : Sends a POST request to /keypress/VolumeUp.
- Netflix Button : Sends a POST request to /launch/12
- Back Button : Sends a POST request to /keypress/Back
3. Example Workflow
Here's how the mapped buttons function in Haptique® :
1. The user presses the Power Button in Haptique®.
2. Haptique® sends an HTTP POST request to http://192.168.1.X:8060/keypress/Power
3. The Roku device receives the request and toogles the power state.
4. Key Benefits of URL Integration in Haptique®
- Streamlined User Control : Users can control external devices directly from the Haptique® interface.
- Scalability : New commands can easily be added for additional devices or actions.
- Customization : Each button can be customized to perform specific actions based on user needs.
5. Troubleshooting
If a button does not work ewpected :
- Verify the device's IP address and connectivity.
- Check the URL configuration in Haptique®'s settings.
- Ensure the target device is powered on and responds to HTTP requests.
- Test the commands manually using curl or a similar tool.