supported_hardware:serverevents
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
supported_hardware:serverevents [2020/03/14 15:06] – created James Sentman | supported_hardware:serverevents [2020/03/14 15:47] – [Events With No Data:] James Sentman | ||
---|---|---|---|
Line 13: | Line 13: | ||
{{: | {{: | ||
**Outgoing Network Connection: | **Outgoing Network Connection: | ||
- | Enter the address and port that the server is running on. If possible assign a static IP address to the remove | + | Enter the address and port that the server is running on. If possible assign a static IP address to the remote |
\\ | \\ | ||
**HTTP Path:** | **HTTP Path:** | ||
- | This is the request path to make to receive | + | This is the request path to make to start the server events stream. Any GET parameters can be included after the path as in the example picture. As of version 1.0 it is not possible to send a PUT or POST request to start the stream. If you need to do this please drop me a note and I’ll move adding this up the priorities list.\\ |
\\ | \\ | ||
Note that this is not the full URL. This field should not contain the “http:// | Note that this is not the full URL. This field should not contain the “http:// | ||
Line 23: | Line 23: | ||
====Events With No Data:==== | ====Events With No Data:==== | ||
- | If an event is received with no Data section after it 2 things are done. First the event name is written to the XTension log in case that is something that you wish to see. In addition an ON is sent for a unit with the same address as the event name. In the case of something like the data stream from a networked video camera it may just send “event: Motion” type events without any extra data. If you create a Unit on this interface and set it’s address to “Motion” then it will receive an On command whenever that is received and you can now process the motion hit in the On script of that Unit. | + | If an event is received with no Data section after it two things are done. First the event name is written to the XTension log in case that is something that you wish to see. In addition an ON is sent for a unit with the same address as the event name. In the case of something like the data stream from a networked video camera it may just send “event: Motion” type events without any extra data. If you create a Unit on this interface and set it’s address to “Motion” then it will receive an On command whenever that is received and you can now process the motion hit in the On script of that Unit. |
For example, if we receive: | For example, if we receive: |
supported_hardware/serverevents.txt · Last modified: 2023/02/13 14:52 by 127.0.0.1