As part of the Wave developers environment, it is possible to send Generic Events from 3rd party devices such as Node Red.
In the below example we can load up a layout in Wave using Node Red, this could be built on further, for example having physical buttons on a desk that call for different layouts in the Wave Client software,
or even using Node Red as a timer (using Inject Nodes) to load different layouts depending on the time of day.
This guide assumes you have a good working knowledge of Node Red, Wave layouts and Rules.
- Within Node Red, drag in a http request node and an inject node then configure with your Wave server credentials.
Note - Wave V5.0 or newer will need digest authentication enabled for the Wave account being used in Node Red.
- In this example we are sending the Generic Event caption "openarundelfrontlayout"
Wave API URL used - http://192.168.20.198:7001/api/createEvent?Z&caption=openarundelfrontlayout
Important - Wisenet wave uses self signed SSL certificates, is order for Node Red to communicate with Wave you need to un-tick the Verify server certificate box, see above arrow where this setting is held.
- This option must be unticked.
- In Wave, we can now create a rule so when the generic event caption is received our layout of choice is loaded up.
See below example.
- Now, when the Node Red inject node is triggered, Wave will load the Arundel Front layout for anyone with an Administrator account, other levels of Wave accounts can also be used providing they have permissions to view the cameras and layouts.
Using a physical button connected to a Raspberry Pi to open a Wave Layout.
- The below Node Red flow will send the Generic Event URL when a physical button is pressed that is wired into the Raspberry Pi GPIO pin.
Multiple physical buttons and Wave rules could be created so different layouts can be loaded with a push of a button.