This repository contains three files that enable you to extract data from Fogwing IIoT using API Token.
Note: This SDK is subject to change as it is currently in preview.
To extract data from fogwing, we have provided three files:
Note: The purpose of the code is to extract data from Fogwing IIoT using an API client. To achieve this, you can modify the configuration.json file to configure the Fogwing credentials, Edge EUI and Date range.
- Move downloaded files to a directory of your choice on your system. Once you have done this, you can proceed with the next steps.
-
You can install all the required libraries using pip and the requirements.txt file provided using follwing command.
pip install -r requirements.txt
To update credentials for Fogwing IoTHub access, you need to modify the configuration.json file.
- Replace the placeholder values of USERNAME and PASSWORD with Fogwing Login credentials
- Replace the placeholder values of EDGE_EUI with the specific Edge EUI of the Edge device from which you wish to extract data.
- Replace the placeholders START_DATE and END_DATE with the specific dates that define the range of data you wish to extract.
Note: The date range needs to be entered in the format of DD-MM-YYYY and should not exceed a duration of three months.
- To run the program, use the following command.
python fwg_data_ext_apitoken.py