When a project is completed it has to be deployed on the server and the various clients.
When the project is modified, even slightly, it is important to transfer it to the server and to the clients. If the project version on the server does not match the version on the client, the application will not work correctly.
There are two ways to deploy a project:
By clicking on the “Deploy” button, the following options will be displayed:
When you export the project for the Apps using this feature, the Configurator will create a snapshot of the project at the time you press the button. If you make modifications to the project and you want to actualize the apps content you need to press again the deploy button so that you will be able to download the new snapshot with all the modifications.
This feature will work only when the PC running the configurator is on the same network of the device running the App. It is useful when internet is not available or during the test phase of the project. When the project is finished it is advisable to use the Cloud feature that will guarantee that all the clients will use the same project version.
This method should be used when the Thinknx server is connected to a local network but has no access to the Internet. However, it requires the use of a PC with the Thinknx Configurator installed as well as the availability of all the client devices on site. The PC and the clients should be connected to the same network as the Thinknx server.
Figure 1: Deploying to Local Server
After selecting to deploy project to server, the Configurator automatically checks the system properties to confirm that a valid IP address has been set for the server; otherwise the deploy cannot be finished. If components not corresponding to the selected licences have been configured in the project, the Configurator displays a warning message. The export can still be finished but the commands related to unlicensed objects will not be working.
Figure 2: Deploying to Local Client
This method is more popular than the previous one because it allows to deploy the project to server and clients remotely. The main condition to achieve this is to have the Thinknx server connected to the Internet.
In the web interface of the Thinknx server, click on “Server” tab, select “Thinknx Cloud” from the list, and click on “Enable Thinknx Cloud”. Fill in the new password and email address and click “Enable”. The Cloud service should now be enabled, and the connection should be “available and established” as seen in the picture below.
Open project inside Thinknx Configurator and enable Thinknx Cloud in the “System” tab. Make sure to enter the same password used in the web page.
It is also important to enable “Automatic Server update” allowing the server to be updated automatically with every project upload to the Cloud.
Enabling “Automatic Authentication” will allow new users to access the mobile application without the need for an intervention on site (see section Client Authentication below).
Finally, selecting “Local and Cloud” for the “Cloud Connection Policy”, will allow the client to control the project remotely using Thinknx Cloud whenever the local connection fails.
Figure 7: Configure Cloud inside Configurator
Inside Thinknx Configurator, click on “Deploy” and select “Upload to the Cloud”. Allow 1-2 min after upload for the server to reboot.
Figure 8: Upload to Cloud
Open Thinknx application and go to Settings. Select the Cloud icon, and enter the serial number of the server and its corresponding password (Cloud password).
If users have been created inside the Configurator, then the password entered should be the corresponding password of each user.
Figure 9: Download project from Cloud
When the project is uploaded onto the Cloud, the user can also download it on their client device by simply scanning the QR code provided by the integrator. This QR code is generated by the Configurator by accessing the Users and Groups window and clicking on the Data Summary of each user profile. For more information, check out section 2.Thinknx Configurator - Users and Groups.
The download can be accomplished by selecting the QR code icon in the Settings window on the client application. The user must allow Thinknx UP application to access the phone's camera. Scan the QR code, and the project download will automatically start. Once finished, open the project and proceed to the Authentication process below.
Figure 10: QR code button on client application
Figure 11: QR code scanning
Whenever a client uses the Thinknx application, a connection to the server is established. The first time the client opens the loaded project, the server requests an authentication of the device.
This method only works if there is direct access to the server's web page.
The authentication can be done remotely without the need to access the server's web page. It only requires the creation of the users inside the Configurator project. The username and password of each user shall be used to allow access to the project. Another requirement is to have «Thinknx Cloud» enabled, as well as «Automatic Authentication» inside Configurator.
This feature is available for server firmware 1.1.10.22 and above, configurator version 1.3.0.24 and above, and UP client version 1.2.24 and above.
Instead of sharing a username and password to allow users to authenticate with the server, it is possible to generate a one-time password (OTP) and send it to the client. The code generated is valid for 2 hours, after which it will no longer work.
Figure 16: Admin Configuration
Figure 17: Enable OTP Authentication
Figure 18: Project Settings
Figure 19: Create User
Figure 20: OTP created
Figure 21: OTP Authentication
Even if the projects are saved inside the Configurator, it is always recommended to export the files and save them for backup in case of a computer failure. It is also useful to transfer files from one Configurator to another.
To export projects, click on “Export” button in the upper bar inside the Configurator. The following options are displayed:
Figure 22: Export for server on file