Our step-by-step guide to configure the gateway to forward data for processing by Pareto Anywhere.
Learn how we at reelyActive configure the gateways to enable interoperable IoT solutions
A Minew MG4 gateway and the GatewayConfig mobile app.
Configure the WiFi of the MG4 using the GatewayConfig mobile app.
Prepare the mobile device as follows:
Ensure the ON/OFF switch is in the OFF position and then:
The MG4 gateway is now in configuration mode.
Open the GatewayConfig app on the mobile device and complete the connectivity setup as follows:
1 Select the (+) at the top right of the Device list page to configure a new device.
2 Confirm that the gateway is still in configuration mode (from Part 2) and select Next step.
3 Enter the password for the target WiFi network (from Part 1).
4 Select Next step to transfer the connectivity settings to the gateway.
Observe the connected gateway in the list once the configuration completes.
Keep the GatewayConfig app open to complete the gateway configuration in Step 2 below.
Configure the MG4 to forward data to a local server running Pareto Anywhere.
Continue the configuration (from Step 1 above) in the GatewayConfig app on the mobile device as follows:
1 Select the target gateway from the list.
2 Select HTTP for data forwarding.
3
Enter the URL of the Pareto Anywhere server
For testing, use http://xxx.xxx.xxx.xxx:3001/minew replacing the x with the IP address of your computer on the WiFi network.
4 Update the Time server to pool.ntp.org or to the NTP server of your choice.
5 Select Configuration to proceed.
6 Select Ok to restart the gateway for the changes to take effect, if required.
7 Optionally rename the gateway to facilitate identification on the network and/or for future configuration.
8 Select Confirm to complete the configuration.
Observe the named gateway in the Device list.
Run the Pareto Anywhere open source middleware to observe the forwarded data.
Observing data in Pareto Anywhere requires no additional action if an instance based on the pareto-anywhere package is running, or, for quick-and-dirty validation, run barnowl-minew as described below.
If a Pareto Anywhere installation based on the pareto-anywhere package is already present and running on the target computer on the host network, the data forwarded by the gateway should be available in both the web apps and APIs.
To quickly validate that data is correctly received on the target computer on the host network, it is possible to run barnowl-minew standalone to listen for HTTP POSTs on port 3001 as follows:
git clone https://github.com/reelyactive/barnowl-minew.git npm install npm start
If the gateway is correctly configured and at least one Bluetooth Low Energy device is advertising in range, raddec data should appear in the console.
Our cheatsheet details the raddec and dynamb JSON output from the Pareto Anywhere open source middleware.
Tutorial prepared with ♥ by jeffyactive.
You can reelyActive's open source efforts directly by contributing code & docs, collectively by sharing across your network, and commercially through our packages.Continue exploring our open architecture and all its applications.