VMgr_PublishToWeb
This application was added in REL-1.1.0.
Introduction
This example script connects to a Manager using the Python library and does the following:
- Subscribes to data notifications from the VManager
- Parses received notifications to detect OAP temperature packets from SmartMesh IP motes running in Master mode
- Publishes any temperature data to the Grafana instance at "clouddata.dustcloud.org"
- Prints the MAC address and temperature value to the screen
It connects to:
- The SmartMesh IP VManager
- Requires SmartMesh IP motes running in Master mode
Running
You can run the VMgr_PublishToWeb.py
application:
- By double-clicking on its source files at
/vmanager_apps/VMgr_PublishToWeb.py
By default the application will connect to a VManager instance installed locally on the same PC, namely 127.0.0.1:8888. To connect to an instance installed on a different machine, call this application with a command line option:
> python VMgr_PublishToWeb.py --vmgr_host <IP Address>
VMgr_PublishToWeb - (c) Dust Networks SmartMesh SDK 1.1.0.1 ==== Subscribing to data notifications and publish to clouddata.dustcloud.org Forwarding notifications. Press any key to stop sent mac=00-17-0D-00-00-60-08-DC temperature=25.00C sent mac=00-17-0D-00-00-60-08-DC temperature=25.00C Script ended normally