Open main menu
Home
How to do
Din rail devices
Box devices
Sensors
Multiroom
Applicatin
XML
Additional info
Log in
Settings
Larnitech wiki page
Search
Changes
← Older edit
Newer edit →
Troubleshooting API2
(view source)
Revision as of 08:42, 9 February 2022
10 bytes removed
,
08:42, 9 February 2022
m
no edit summary
Line 5:
Line 5:
To get started, you should:
To get started, you should:
Establish a web socket connection.
Establish a web socket connection.
−
<syntaxhighlight lang="xml"
line
>
+
<syntaxhighlight lang="xml">
ws://IPADDR:PORT/api
ws://IPADDR:PORT/api
</syntaxhighlight>
</syntaxhighlight>
Line 12:
Line 12:
PORT – port for API2 (you can get it from LT Setup=>General=>API=>Websocket port (2041 by default);
PORT – port for API2 (you can get it from LT Setup=>General=>API=>Websocket port (2041 by default);
Authorize
Authorize
−
<syntaxhighlight lang="json"
line
>
+
<syntaxhighlight lang="json">
{
{
"request": "authorize",
"request": "authorize",
Support
editor,
Interface administrators
,
Administrators
, translation-admin, translator
9,706
edits