Skip to content

Latest commit

 

History

History

using_API_token

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Extracting Data from Fogwing IIoT Data Storage using Python and API Token

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.

Fogwing IIoT data extractor

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.

Here are the steps to follow in order to extract data from Fogwing IIoT using an API Token:

1. Moving Files.

  • Move downloaded files to a directory of your choice on your system. Once you have done this, you can proceed with the next steps.

2. Installing Libraries

  • You can install all the required libraries using pip and the requirements.txt file provided using follwing command.

    • pip install -r requirements.txt

3. Update Credentials

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.

4. Run the Program and Get Started with Fogwing IIoT

  • To run the program, use the following command.
    • python fwg_data_ext_apitoken.py

Where to Find Help and Resources for Fogwing

Please visit https://www.fogwing.io/industrial-iot-platform/ for more information about Fogwing Industrial IoT Platform.