How To - Convert a DLGW3 from LightRules Mode to SiteWorx Mode
Necessary items
- Micro USB cable
- Computer
- DLGW3-LR
- gw3cli
- Email SiteWorxOps@siteworx.io to receive gw3cli. Please note if using a Mac or Windows computer.
Before you start
Confirm the DLGW3-LR is in LightRules mode by powering the DLGW3-LR and viewing the Mode status indicator:
- LightRules mode
- Blinking yellow (OS 1.1.0+)
- Solid yellow (OS 1.0.0)
- SiteWorx mode
- Solid green
Workflow
Mac
- Download and unzip gw3cli-macos-1.2.4. Drag the unzipped file into your Desktop.
- Open Terminal and change directory to to your Desktop directory where the gw3cli tool is located.
cd ~/Desktop/
- Enter command
./gw3cli
this will show you the help menu with all commands and options- If you see the "gw3cli cannot be opened.." message, the click Cancel
- Navigate to System Settings > Privacy & Security, then click Allow Anyway
- Connect the DLGW3-LR to your computer via Micro USB cable and wait a few minutes for the DLGW3-LR to complete booting.
- Enter command:
./gw3cli get-status
- This will display the serial number and versions of all software.
- Enter command:
./gw3cli get-config
- This will display the configuration of the DLGW3-LR.
- Look for
mode
in the setup section"gateway2.emulator"
indicates the DLGW3-LR is in LightRules mode"gateway3.engine"
indicates the DLGW3-LR is in SiteWorx mode
Only proceed ifmode
is"gateway2.emulator"
- To switch from LightRules mode to SiteWorx mode, enter command:
-
./gw3cli set-config '{"setup":{"mode":"gateway3.engine"}}'
-
- Enter command:
./gw3cli restart-app
- After gateway reboots, verify the changes were completed by checking that
mode
is now"gateway3.engine"
- Email SiteWorxOps@siteworx.io the serial numbers of the DLGW3-LRs that were converted from LightRules mode to SiteWorx mode. The DLGW3-LRs will need to be registered to SiteWorx by SiteWorx Operations before the DLGW3-LRs will connect to SiteWorx.
Windows
- Download and unzip gw3cli-win32-1.2.4.zip Drag the unzipped file into your Desktop.
- Ensure the latest version of Commissioner is installed to ensure USB drivers are up to date: https://commissioner.lightrules.net/Content/English/Home.htm
- Click Start, and search for
cmd
to open CMD prompt. - Enter command:
cd Desktop
- Enter command:
./gw3cli.exe
- This will show you the help menu with all commands and options.The exact syntax of the below commands will depend on where the file is saved and the configuration of your computer. If you are not comfortable with Command Prompt, the easiest thing to do is drag and drop the gw3cli.exe file into Command Prompt to start each command and then manually type the portion of the command after gw3cli.exe
For example to do thegw3cli.exe
command, drag gw3cli.exe into the Command Prompt and then press the Return/Enter key.
To do thegw3cli.exe get-status
command, drag gw3cli.exe into the Command Prompt and then typeget-status
and then press the Return/Enter key.
- This will show you the help menu with all commands and options.
- Connect the DLGW3-LR to your computer via Micro USB cable and wait a few minutes for the DLGW3-LR to complete booting.
- Enter command:
./gw3cli.exe get-status
- This will display the serial number and versions of all software.
- If this command fails to read the serial number from the gateway, please email SiteWorxOps@siteworx.io with a screenshot of Command Prompt as an additional driver may need to be installed.
- Enter command:
./gw3cli.exe get-config
- This will display the configuration of the DLGW3-LR.
- Look for
mode
in the setup section:"gateway2.emulator"
indicates the DLGW3-LR is in LightRules mode"gateway3.engine"
indicates the DLGW3-LR is in SiteWorx mode
Only proceed ifmode
is"gateway2.emulator"
- To switch from LightRules mode to SiteWorx mode, enter command:
gw3cli.exe set-config {\"setup\":{\"mode\":\"gateway3.engine\"}}
- Enter command:
./gw3cli restart-app
- After gateway reboots, verify the changes were completed by checking that
mode
is now"gateway3.engine"
- Email SiteWorxOps@siteworx.io the serial numbers of the DLGW3-LRs that were converted from LightRules mode to SiteWorx mode. The DLGW3-LRs will need to be registered to SiteWorx by SiteWorx Operations before the DLGW3-LRs will connect to SiteWorx.