Changes
Jump to navigation
Jump to search
12 bytes added
, 27 February
Line 2: |
Line 2: |
| <translate> | | <translate> |
| <!--T:1--> | | <!--T:1--> |
− | API works via WebSocket connection, so you can interact with your Larnitech server from a browser using extensions (such as WebSocket Test Client).<br><br> | + | (NOT WORK) |
− | To get started, you should:<br> | + | API also works via WebSocket connection, so you can interact with your Larnitech server from a browser using extensions (such as WebSocket Test Client).<br> |
− | 1. Establish a web socket connection.
| + | To get started, you should:<br><br> |
− | | + | 1. Establish a web socket connection.<br> |
| <syntaxhighlight lang="xml"> | | <syntaxhighlight lang="xml"> |
| ws://IPADDR:PORT/api | | ws://IPADDR:PORT/api |
Line 11: |
Line 11: |
| Where: IPADDR – ip address of your metaforsa or DE-MG;<br> | | Where: IPADDR – ip address of your metaforsa or DE-MG;<br> |
| PORT – port for API2 (you can get it from LT_Setup => General => API => Websocket port (2041 by default);<br><br> | | PORT – port for API2 (you can get it from LT_Setup => General => API => Websocket port (2041 by default);<br><br> |
− | 2. Authorize
| + | 2. Authorize |
− | | |
| <syntaxhighlight lang="json"> | | <syntaxhighlight lang="json"> |
| { | | { |