This directory provide three files that sends sample data over Fogwing IoTHub.
We have provided three files:
This program is for sending the data over Fogwing, it keeps sending data with every minute or hour gap as per requirement until programs stop manually and configuration.json is for configuring the required credentials of Fogwing IoTHub and sample data.
- Copy the python and json file to your raspberry, now you have completed coding part.
- Install all required libraries using pip with our requirements.txt file.
pip install -r requirements.txt
Note:- Do the following modification in configuration.json file.
- Enter the username, password, client_id, pub_topic of your Fogwing IoTHub access and data_interval as you want.
- Now run the file with the below command.
Note:- Provided everything goes in line with the above mentioned instructions,you will be able to see a message that reads 'successfully published' in command line.
python fwg_dtwin_wqm.py
- Now you are ready to analyze your data at Fogwing Platform portal, you can check all the data within the data storage in the portal.
- Fogwing Community Forum
- Fogwing Community Docs
- Please visit https://www.fogwing.io/industrial-iot-platform/ for more information about Fogwing Industrial IoT Platform.