Skip to main content

An ExoEdge source for <keep this to one line>.

Project description

Description

The purpose of this repository is to provide an ExoEdge protocol source that uses a text files as the input and output.

A protocol source (often just referred to as a “source”) is the glue between ExoEdge and the field-bus that you want to get data to and from. It is helpful to think of a source as a plugin to ExoEdge.

Current Usage

Currently, the source will read from a file and push the last line of data to ExoSense.

This can be used either by overwriting the file (always one line in the file) or appending the input file with a new line to keep historical information on the edge.

Planned Features

  • Implement output_file for controlling the device

  • Add custom delimiter

Install

Installing a build can be done in several ways:

Installing From Source

$ python setup.py install

Installing From Builds

$ pip install dist/*.whl

Installing From Builds

$ pip install exoedge_fileio

ExoSense Configuration

Below is an example config_io for reading from input_file and using output_file for device control.

{
  "channels": {
    "000": {
      "channel_name": "000",
      "description": "File Reader",
      "display_name": "FileIO",
      "properties": {
        "data_type": "TEMPERATURE",
        "data_unit": "DEG_FAHRENHEIT",
        "device_diagnostic": false,
        "max": null,
        "min": null,
        "precision": 2
      },
      "protocol_config": {
        "app_specific_config": {
          "input_file": "<Fully qualified path to file>",
          "output_file": "<Fully qualified path to file>"
        },
        "application": "FileIO",
        "down_sample": "actual",
        "input_raw": {},
        "interface": null,
        "report_on_change": false,
        "report_rate": 10000,
        "sample_rate": 10000,
        "timeout": null
      }
    }
  }
}

Example Protocol Configuration in ExoSense

images/FileIO_Protocol_Configuration.png

Device Control

Device control is available by using an “output_file” in the app_specific_config

ExoEdge will write the Device Control (data_out) value to this file. It will also write the latest value upon starting (in case the value was set when the device was off).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

exoedge_fileio-19.2.1.11.24.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file exoedge_fileio-19.2.1.11.24.tar.gz.

File metadata

  • Download URL: exoedge_fileio-19.2.1.11.24.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/2.7.13

File hashes

Hashes for exoedge_fileio-19.2.1.11.24.tar.gz
Algorithm Hash digest
SHA256 74420b058d50d057fc31f485932840be10d69d4cb68810c08df550c61ee2b838
MD5 7f511bff1ba44d15e5c8aef3575165e9
BLAKE2b-256 b24e79a59c60fc04dcda17386cecc079d93b6b10ab597a8d3ae38ad972293787

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page