Getting Started with the NodeNs ZERO

2D setup guide: Configuration

The following instructions apply for connecting to the NodeNs sensors through a GATEWAY device.

First connect to the GATEWAY and configure the Wi-Fi settings

  1. Using a PC or other Wi-Fi enabled device, connect to the GATEWAY using the following Wi-Fi settings:
    • SSID: NodeNsAP
    • Password: NeedOne1

Note: the NodeNs sensors are pre-configured to connect to these settings

  1. Securely connect to the GATEWAY via SSH:
    1. Open a command terminal (e.g. cmd in Windows).
    2. Connect via SSH by typing: ssh pi@192.168.10.1
    3. When prompted, enter the password:
      • Password: NeedOne1

You will now have a direct connection to the GATEWAY. Note: You may also connect via services such as RealVNC, or directly to the GATEWAY with an HDMI cable connected to a monitor.

  1. Update the Wi-Fi configuration so that the GATEWAY may connect to your local Wi-Fi network.
    1. Update the Wi-Fi configuration by typing: sudo nano wifi_config.sh
    2. Using the arrow keys update the following lines, enclosing the SSID and PASSPHRASE with quotation marks:
      • CLIENT_SSID=”<enter the WiFi client you wish to connect to>”
      • CLIENT_PASSPHRASE=<”enter the password of the WiFi client>”
      • Save using <Ctrl+s> and then Exit using <Ctrl+x>.
    3. Run the shell script by typing: . wifi_config.sh or sh wifi_config.sh. This may take a few minutes depending on required updates.
  1. Reboot the gateway by typing: sudo reboot
  1. After a few minutes, the WiFi network with the SSID “NodeNsAP” should re-appear. Note: the AP may disconnect and reconnect while the new settings are applied.

Configure your local machine (e.g. PC) to accept the sensor data

  1. Ensure that your local machine is connected to the NodeNsAP network.
  2. Start Node Red from the command line by typing: node-red
  3. Download the dashboard flow:
    (note that this is updated regularly). Alternatively, please request a link to the git. repository where the most up-to-date version can be downloaded)
  1. Open node-red through a Chrome browser and enter “localhost:1880” in the navigation board
  2. In the node-red window import the flow:
    1. Click the three lines next to the “Deploy” icon in the top-right of the window.
    2. Select “Import“.
    3. Click on “Select a file to import” and chose the file JSON file downloaded in the previous step.
    4. Click on “Import”.
  1. Ensure that the MQTT nodes connect to the broker.
  2. Deploy the dashboard so that it is ready and waiting. Note: if the dashboard doesn’t automatically load, you can use a web browser to navigate to “localhost:1880/ui”.

The broker status can be viewed using the dashboard LED (green indicates a connection. Red indicates the dashboard is disconnected from the broker.