...
- Open the SmartServer Configuration page as described in Accessing the SmartServer IoT Configuration Page. The Network tab appears as the default SmartServer Configuration page. Once the network settings are configured for the SmartServer system, then the System tab will appear as the default.
Network tab
System tab - From the Network tab, select the LAN Interface Static IP Address dropdown option and specify the address details.
- Click Update to save your configuration.
- Click the /wiki/spaces/TEMP/pages/1475599 Firewall tab.
- Enable the SmartServer IoT port 1883 for eth0, which is required for the IzoT Net Export Tool and internal applications.
- Click Update to save your configuration.
- Click the LON tab.
- Enable the SmartServer IoT for IP-852 eth0 interface.
- Click Update to save your configuration.
- Click the CMS tab and log into the CMS.
- From the Devices widget, switch the LON management mode to LON Independent Management Mode (IMM).
...
- Use the CMS Import / Export button ( ) to import the internal LON application DTP file.
- Connect to the SmartServer IoT via FTP.
- In the /var/apollo/data/ directory, create a new directory called apps and a subdirectory under apps, where SmartServer IoT internal application files will be copied using the following commands:
package.json
package-lock.json
<internalApp>.js
- Copy the <internalApp>.conf file into the /etc/supervisor/conf.d directory.
- If your SmartServer IoT has internet access, from the SmartServer console (as described in the section Connecting to Your SmartServer), navigate to the newly created internal app directory and enter the
npminstall
command to add the node packages required for this application.
or
If your SmartServer IoT does not have internet access, use FTP to copy the entire node_modules folder into the SmartServer IoT internal application directory.
...
It is best practice is to design the SmartServer IoT internal application to delay its startup by 5 minutes when running as a service. Doing so allows time for dependent applications, like the CMS, to execute.
From the console, reboot the SmartServer IoT by typing the following command:
Code Block sudo reboot
- Once the SmartServer IoT console has restarted, verify that the Internal App is running by typing the
sudo supervisorctl
command. - Exit supervisorctl by pressing control-c.
...