RADIUSdesk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
getting_started:20_install_ubuntu_mqtt [2022/06/10 06:24] admingetting_started:20_install_ubuntu_mqtt [2022/06/10 10:25] (current) – [Install Mosquitto] admin
Line 6: Line 6:
   * Make sure you do **Step 3** to secure the it with usernames and passwords.   * Make sure you do **Step 3** to secure the it with usernames and passwords.
   * In this document we use username and password of **openwrt**. Please change according to your preference.   * In this document we use username and password of **openwrt**. Please change according to your preference.
 +
 +<WRAP center round important 100%>
 +  * Please use a strong password for the MQTT user in a production environment.
 +</WRAP>
 +
  
 ===== Install Rdcore-API-Gateway ===== ===== Install Rdcore-API-Gateway =====
Line 26: Line 31:
   * Rename **.env.sample** to **.env** and edit   * Rename **.env.sample** to **.env** and edit
 <code bash> <code bash>
-mv .env.sample .env+sudo mv .env.sample .env
 sudo vi .env sudo vi .env
  
Line 40: Line 45:
   * The Rdcore API Gateway Systemd Startup File   * The Rdcore API Gateway Systemd Startup File
 <code bash> <code bash>
-cp /opt/AmpCore-API-Gateway/rdcore-api-gateway.service /lib/systemd/system/+sudo cp /opt/Rdcore-API-Gateway/rdcore-api-gateway.service /lib/systemd/system/
 </code> </code>
   * Enable the Rdcore API Gateway   * Enable the Rdcore API Gateway
Line 51: Line 56:
 sudo systemctl status rdcore-api-gateway.service sudo systemctl status rdcore-api-gateway.service
 </code> </code>
 +  * Confirm the service is running by visiting the FQDN:8001
 +  * e.g http://cloud.radiusdesk.com:8001/
  
 ===== MQTT Settings in RADIUSdesk ===== ===== MQTT Settings in RADIUSdesk =====
 +  * To enable MQTT on RADIUSdesk there are two places where it has to be configured.
 +  * For the devices managed by MESHdesk and APdesk there is this GUI under **Settings** -> **MQTT**
 +
 +{{:getting_started:mqtt_settings.png|}}
 +  * Command topic is always **/RD/NODE/COMMAND/RESPONSE**
 +  * Then for the server to use MQTT instead of the heartbeat system you have to edit the following config file.
 +  * Edit **/var/www/html/cake3/rd_cake/config/MESHdesk.php**
 +  * Look for this sections and adapt to your server's values.
 +<code php>
 +$config['mqtt_settings']['enable_realtime'] = true;
 +$config['mqtt_settings']['api_gateway_url'] = 'http://164.160.89.129:8001';
 +</code>