<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.larnitech.com/index.php?action=history&amp;feed=atom&amp;title=Translations%3AAPI%2F1%2Fen</id>
	<title>Translations:API/1/en - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.larnitech.com/index.php?action=history&amp;feed=atom&amp;title=Translations%3AAPI%2F1%2Fen"/>
	<link rel="alternate" type="text/html" href="https://wiki.larnitech.com/index.php?title=Translations:API/1/en&amp;action=history"/>
	<updated>2026-07-11T21:32:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.11</generator>
	<entry>
		<id>https://wiki.larnitech.com/index.php?title=Translations:API/1/en&amp;diff=7956&amp;oldid=prev</id>
		<title>FuzzyBot: Importing a new version from external source</title>
		<link rel="alternate" type="text/html" href="https://wiki.larnitech.com/index.php?title=Translations:API/1/en&amp;diff=7956&amp;oldid=prev"/>
		<updated>2022-01-15T17:36:28Z</updated>

		<summary type="html">&lt;p&gt;Importing a new version from external source&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;API works through HTTP GET request, so you can work with your Larnitech server from browser, just sending requests from address string.&lt;br /&gt;
Request:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot; line&amp;gt;&lt;br /&gt;
http://IPADDR:PORT/JSON_REQUEST&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Where:&lt;br /&gt;
IPADDR – ip address of your metaforsa or DE-MG;&lt;br /&gt;
PORT – port for API plugin (you can get it from LT Setup=&amp;amp;gt;Plugins=&amp;amp;gt;API=&amp;amp;gt;Configure button);&lt;br /&gt;
JSON_REQUEST – request to server in json format.&lt;br /&gt;
Fields of JSON_REQUEST:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
 	&amp;lt;li&amp;gt;&amp;quot;requestType&amp;quot; - Type of request:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
 	&amp;lt;li&amp;gt;“getDevicesList” – request for getting the list of all devices;&amp;lt;/li&amp;gt;&lt;br /&gt;
 	&amp;lt;li&amp;gt;“getDeviceStatus” – request for getting device status;&amp;lt;/li&amp;gt;&lt;br /&gt;
 	&amp;lt;li&amp;gt;“setDeviceStatus” – request for setting device status;&amp;lt;/li&amp;gt;&lt;br /&gt;
        &amp;lt;li&amp;gt;“setDeviceStatusRaw” – request for setting device status (status in hex format);&amp;lt;/li&amp;gt;&lt;br /&gt;
 	&amp;lt;li&amp;gt;“getAllDevicesStatus” – request for getting all devices status.&amp;lt;/li&amp;gt;&lt;br /&gt;
       &lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
 	&amp;lt;li&amp;gt;“key” – key for API plugin (you can get it from LT Setup=&amp;amp;gt;Plugins=&amp;amp;gt;API=&amp;amp;gt;Configure button).&amp;lt;/li&amp;gt;&lt;br /&gt;
 	&amp;lt;li&amp;gt;“addr” – address of device.&amp;lt;/li&amp;gt;&lt;br /&gt;
 	&amp;lt;li&amp;gt;“status” – status of device.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
Examples of requests and responses:&lt;/div&gt;</summary>
		<author><name>FuzzyBot</name></author>
	</entry>
</feed>