You are looking at the HTML representation of the XML format.
HTML is good for debugging, but is unsuitable for application use.
Specify the format parameter to change the output format.
To see the non HTML representation of the XML format, set format=xml.
See the complete documentation, or API help for more information.
<?xml version="1.0"?>
<api>
  <query-continue>
    <allpages gapcontinue="Rpi/ru" />
  </query-continue>
  <query>
    <pages>
      <page pageid="4249" ns="0" title="Rpi">
        <revisions>
          <rev contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">&lt;languages/&gt;
&lt;translate&gt;

&lt;!--T:1--&gt;
{{H0|iRidium Server для Raspberry Pi|Установка и настройка сервера в проекте i3 lite}}

&lt;!--T:2--&gt;
'''iRidium Sever для Raspberry Pi''' - это программная реализация iRidium Server, которая запускается как демон или консольное приложение на контроллерe Raspberry Pi 3
&lt;/translate&gt;

&lt;translate&gt;

&lt;!--T:3--&gt;
{{d}} [http://www.iridiummobile.net/redirects/?go=iRidium_SERVER_RASPBERRY_LITE Скачать iRidium Server lite для Raspberry Pi3]&lt;/translate&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-4&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:iRidiumServerPiPicture.png]]&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;
&lt;translate&gt;

&lt;!--T:4--&gt;
'''Технические характеристики:'''
* [https://www.raspberrypi.org/ raspberrypi.org]
&lt;/translate&gt;
&lt;/div&gt;
&lt;/div&gt;


&lt;translate&gt;

&lt;!--T:5--&gt;
iRidium Server подключается к оборудованию и передает ему команды от панелей управления. Панели управления подключаются к серверу для управления через него оборудованием, получения обратной связи, загрузки логов и базы данных. 
&lt;/translate&gt;

&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:iRidiumServerHowItWorks.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;translate&gt;
=Установка и настройка= &lt;!--T:6--&gt; 


&lt;!--T:7--&gt;
Чтобы установить iRidium Server на Raspberry Pi, скачайте и установите необходимое ПО:
# [http://www.iridiummobile.net/redirects/?go=iRidium_SERVER_RASPBERRY_LITE Скачайте]  файл (*.deb) сервера для Raspberry Pi
# [https://winscp.net/download/files/201511161314cb45cb9ac3d19e3fb28a98b374caafee/winscp576setup.exe Скачайте] и установите программу WinSCP
# [http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe Скачайте] и установите программу PuTTY
&lt;br /&gt;
Подключите и настройте Raspberry Pi по инструкции с сайта [https://www.raspberrypi.org/ raspberrypi.org]. 
&lt;br /&gt;
На устройство должна быть установлена операционная система Raspbian  (официально поддерживаемая операционная система Raspberry Pi на базе Debian).

&lt;!--T:8--&gt;
{{label|1}} Запустите '''WinSCP'''. В интерфейсе программы настройте:
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer1.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
* File Protocol: SCP
* Host name: IP адрес Raspberry Pi (чтобы узнать адрес, введите &lt;code&gt;ifconfig&lt;/code&gt; в консоли pi)
* Port number: 22
* User name: ваш логин (по умолчанию pi)
* Password: ваш пароль (по умолчанию raspberry)



&lt;!--T:9--&gt;
{{label|2}} Сохраните настройки клавишей &lt;code&gt;Save&lt;/code&gt;. Подключитесь к Raspberry нажав кнопку &lt;code&gt;Login&lt;/code&gt;. Если параметры подключения были указаны верно, вы увидите окно, в правой части которого находится меню работы с файлами вашего Raspberry:
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-12&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer2.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;!--T:10--&gt;
{{label|3}} Скопируйте файл(*.deb), который скачали по ссылке #1, в папку &lt;code&gt;/home/pi&lt;/code&gt; 
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer3.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;!--T:11--&gt;
{{label|4}} Запустите '''PuTTY'''. В интерфейсе программы настройте:
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer4.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
*Host Name (or IP address): IP адрес вашего Raspberry
*Port: 22 (по умолчанию)
*Connection Type: SSH
*Saved Session: вводим имя текущей настройки и нажимаем Save
*Close window on exit: Only on clean exit



&lt;!--T:12--&gt;
{{label|5}} В настроенном PuTTY нажмите Open - откроется консоль. Введите логин и пароль подключения к серверу. 
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer5.png]]&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;col-sm-12 col-md-4&quot;&gt;''{{i}} вводимый пароль не отображается в консоли - это нормально. Нажмите Enter, когда закончите ввод''&lt;/div&gt;
&lt;/div&gt;


&lt;!--T:13--&gt;
{{label|6}} Если логин и пароль введены верно, вы увидите сообщение об успешном подключении к Raspberry
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer9.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
{{i}} Настроить статический IP адрес для Raspberry вы можете через Putty, [https://www.modmypi.com/blog/tutorial-how-to-give-your-raspberry-pi-a-static-ip-address по инструкции]



&lt;!--T:14--&gt;
{{label|7}}  Установите загруженный в память Raspberry пакет с помощью команды:
 sudo dpkg -i /&lt;путь_к_пакету&gt;/&lt;имя_пакета&gt;.deb
например:
 sudo dpkg -i /home/pi/iridiumserver_1.0.0-5934_PI.deb
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer6.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;!--T:15--&gt;
Дождитесь завершения установки. Не выключайте питание устройства. В результате вы увидите:
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer7.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
После установки сервер запускается как демон - в лог PuTTY не будет выводиться информация о его работе, при перезагрузке Raspberry сервер запустится автоматически. &lt;br /&gt;

&lt;!--T:34--&gt;
{{label|8}} Запустите Сервер, находясь в каталоге iridiumserver. Для этого есть команды:
* &lt;code&gt;sudo ./iridium&lt;/code&gt; - запустить сервер. При закрытии консоли сервер закроется
* &lt;code&gt;sudo ./iridium --hidden&lt;/code&gt; - запустить сервер в фоновом режиме (как демон). При закрытии консоли сервер не закроется



&lt;!--T:19--&gt;
Успешный запуск сервера:
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer11.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;!--T:20--&gt;
Ошибка: может возникнуть при попытке повторного запуска сервера в фоновом режиме:
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer12.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;!--T:21--&gt;
В случае такой ошибки введите команду:
 sudo rm /tmp/irdaemon.pid
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer13.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
и повторите запуск сервера (пункт 8).
&lt;/translate&gt;&lt;br /&gt;
{{label|9}} &lt;translate&gt;&lt;!--T:22--&gt;
Сервер готов к работе с проектом&lt;/translate&gt;&lt;br /&gt;
===&lt;translate&gt;&lt;!--T:23--&gt;
Добавление сервера в проект i3 lite&lt;/translate&gt;===
&lt;translate&gt;
&lt;!--T:24--&gt;
Добавить сервер к проекту можно двумя путями:
&lt;/translate&gt;&lt;br /&gt;
{{label|1}} &lt;translate&gt;&lt;!--T:25--&gt;
Добавление сервера при создании проекта&lt;/translate&gt;&lt;br /&gt;
&lt;translate&gt;&lt;!--T:26--&gt;
Запустите приложение i3 lite и начните создавать проект. Приложение попросит вас добавить сервер. Надо согласиться.&lt;/translate&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-12&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:AddServerOnStart.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;translate&gt;&lt;!--T:27--&gt;
Вы увидите окно с серверами, доступными в локальной сети. Вам нужно выбрать свой сервер&lt;/translate&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-4&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:ServerScanner.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;translate&gt;&lt;!--T:28--&gt;
Приложение попросит вас ввести активационный код с помощью QR сканера или вручную. &lt;/translate&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-12&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:QRCode.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;translate&gt;&lt;!--T:29--&gt;
Теперь сервер добавлен в проект. &lt;/translate&gt;&lt;br /&gt;
{{label|2}} &lt;translate&gt;&lt;!--T:30--&gt;
Добавление сервера в уже созданный проект&lt;/translate&gt;&lt;br /&gt;
&lt;translate&gt;&lt;!--T:31--&gt;
Откройте проект и зайдите в конфигуратор.&lt;/translate&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-4&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:OpenConfig.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;translate&gt;&lt;!--T:32--&gt;
Перейдите на вкладку Server и нажмите на кнопку &quot;Select Server&quot;. &lt;/translate&gt;
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-12&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SelectServer.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;translate&gt;&lt;!--T:33--&gt;
Вы увидите окно с серверами, доступными в локальной сети. Вам нужно выбрать свой сервер. Приложение запросит у вас ввести пин код от сервера (пин код по умолчанию 2007). После ввода пин кода, сервер надо активировать с помощью нажатия на соответствующую кнопку&lt;/translate&gt;
&lt;noinclude&gt;[[Категория:Инструкции]]&lt;/noinclude&gt;</rev>
        </revisions>
      </page>
      <page pageid="4351" ns="0" title="Rpi/en">
        <revisions>
          <rev contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">&lt;languages/&gt;

{{H0|iRidium Server for Raspberry Pi|Installing and setting up a server in a project i3 lite}}

'''iRidium Sever for Raspberry Pi''' is a program implementation of iRidium Server, which is launched as daemon or console application on a  Raspberry Pi 3 controller


{{d}} [http://www.iridiummobile.net/redirects/?go=iRidium_SERVER_RASPBERRY_LITE Download iRidium server for Raspberry Pi3]
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-4&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:iRidiumServerPiPicture.png]]&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;

'''Technical characteristics:'''
* [https://www.raspberrypi.org/ raspberrypi.org]
&lt;/div&gt;
&lt;/div&gt;



iridium server conects to a hardware and send commands from a control panel to it. The control panels connect to the server to control the hardware through it, receive feedback, upload logs and database. 

&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:iRidiumServerHowItWorks.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;

=Installation and configuration= 


To install iRidium server on Raspberry Pi download and install a required software:
# [http://www.iridiummobile.net/redirects/?go=iRidium_SERVER_RASPBERRY_LITE Download]  (*.deb) server file for Raspberry Pi
# [https://winscp.net/download/files/201511161314cb45cb9ac3d19e3fb28a98b374caafee/winscp576setup.exe Download] and install WinSCP 
# [http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe Download] and install PuTTY
&lt;br /&gt;
Connect and configure Raspberry Pi according to instructions from [https://www.raspberrypi.org/ raspberrypi.org]. 
&lt;br /&gt;
Raspbian operating system must be installed on your device (officially supported operating system Raspberry Pi on the basis of Debian).

{{label|1}} Launch '''WinSCP'''. In the program interface configure:
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer1.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
* File Protocol: SCP
* Host name: Raspberry Pi IP-address (to find out your address enter &lt;code&gt;ifconfig&lt;/code&gt; in the pi console)
* Port number: 22
* User name: your login (&quot;pi&quot; by default)
* Password: your password (&quot;raspberry&quot; by default)



{{label|2}} Save the settings with the &lt;code&gt;Save&lt;/code&gt; key. Connect to Raspberry by pressing &lt;code&gt;Login&lt;/code&gt; button . If the connection parameters are entered correctly, you will see a window on the right side of which is a menu for working with your Raspberry files:
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-12&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer2.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;


{{label|3}}Copy a(*.deb) file, which you downloaded by link #1, in &lt;code&gt;/home/pi&lt;/code&gt; folder 
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer3.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;


{{label|4}} Launch '''PuTTY'''. In the program interface set up:
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer4.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
*Host Name (or IP address): IP-address of your Raspberry
*Port: 22 (default)
*Connection Type: SSH
*Saved Session: enter the name of the current setting and click Save
*Close window on exit: Only on clean exit



{{label|5}} In the configured PuTTY click &quot;Open&quot; - the console will open. Enter login and password for connecting to the server. 
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer5.png]]&lt;/div&gt;&lt;/div&gt;
&lt;div class=&quot;col-sm-12 col-md-4&quot;&gt;''{{i}} entered password does NOT displayed in the console - it is normal. Press &quot;Enter&quot;, when you finish to enter''&lt;/div&gt;
&lt;/div&gt;


{{label|6}} If the login and password are correct, you will see a message about a successful connection to Raspberry
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer9.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
{{i}} You can configure a static IP-address for Raspberry through Putty, [https://www.modmypi.com/blog/tutorial-how-to-give-your-raspberry-pi-a-static-ip-address by instruction]



{{label|7}}  Install the package loaded into the Raspberry memory using the command:
 sudo dpkg -i /&lt;way_to the_package&gt;/&lt;package_name&gt;.deb
For example:
 sudo dpkg -i /home/pi/iridiumserver_1.0.0-5934_PI.deb
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer6.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;


Wait for the installation to complete. Do NOT turn off the power of the device. As a result, you will see:
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer7.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
After installation, the server runs as a daemon - the PuTTY log will NOT display any working information, when you restart, the Raspberry Server will start automatically. &lt;br /&gt;

{{label|8}} Launch the server from the iridiumserver directory. To do this, there are commands:
* &lt;code&gt;sudo ./iridium&lt;/code&gt; - launch the server. When you close the console, the server closes
* &lt;code&gt;sudo ./iridium --hidden&lt;/code&gt; - launch the server in the background (like a daemon). When the console is closed, the server does NOT close



Successful server startup:
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer11.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;


An error may occur when you try to restart the server in the background:
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer12.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;


In case of such an error, enter the command:
 sudo rm /tmp/irdaemon.pid
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-8&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SetupPiServer13.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
and restart the server (item 8).&lt;br /&gt;
{{label|9}} The server is ready to work with the project&lt;br /&gt;
===Adding a server to the i3 lite project===
You may add the server to the project in two ways:&lt;br /&gt;
{{label|1}} Adding the server during the creation of the project&lt;br /&gt;
Launch the i3 lite application and start to create a project. The application will ask you to add a server. You need to agree.
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-12&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:AddServerOnStart.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
You will see a window with the servers available on the local network. You need to select your server
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-4&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:ServerScanner.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
The application will ask you to enter the activation code using the QR scanner or manually 
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-12&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:QRCode.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
Now the server is added to the project. &lt;br /&gt;
{{label|2}} Adding a server to the already created project&lt;br /&gt;
Open the project and go to the Config
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-4&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:OpenConfig.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
Click the &quot;server&quot; tab and click the &quot;Select Server&quot; button. 
&lt;div class=&quot;row&quot;&gt;
&lt;div class=&quot;col-sm-12 col-md-12&quot;&gt;&lt;div class=&quot;thumbnail&quot;&gt;[[File:SelectServer.png]]&lt;/div&gt;&lt;/div&gt;
&lt;/div&gt;
You will see a window with the servers available on the local network. You need to select your server. The application will ask you to enter the pin code from the server (pin code is default 2007). After entering the PIN code, the server must be activated by clicking on the corresponding button
&lt;noinclude&gt;[[Категория:Инструкции]]&lt;/noinclude&gt;</rev>
        </revisions>
      </page>
    </pages>
  </query>
</api>