Skip to main content

VOLTTRON historian that store data in sqlite3 database

Project description

Eclipse VOLTTRON™ Python 3.10 Python 3.11 Run Pytests pypi version Passing?

VOLTTRON historian agent that stores data into a SQLite database

Requirements

  • Python >= 3.10

Installation

  1. Create and activate a virtual environment.

     python -m venv env
     source env/bin/activate
    
  2. Installing volttron-sqlite-historian requires a running volttron instance.

    pip install volttron
    
    # Start platform with output going to volttron.log
    volttron -vv -l volttron.log &
    
  3. Create a agent configuration file SQLite historian supports two parameters

    • connection - This is a mandatory parameter with type indicating the type of sql historian (i.e. sqlite) and params containing the path the database file.

    • tables_def - Optional parameter to provide custom table names for topics, data, and metadata.

    The configuration can be in a json or yaml formatted file.

    Yaml Format:

    connection:
      # type should be sqlite
      type: sqlite
      params:
        # Relative to the agents data directory
        database: "data/historian.sqlite"
    
      tables_def:
        # prefix for data, topics, and (in version < 4.0.0 metadata tables)
        # default is ""
        table_prefix: ""
        # table name for time series data. default "data"
        data_table: data
        # table name for list of topics. default "topics"
        topics_table: topics
    
  4. Install and start the volttron-sqlite-historian.

    vctl install volttron-sqlite-historian --agent-config <path to configuration> --start
    
  5. View the status of the installed agent

    vctl status
    

Development

Please see the following for contributing guidelines contributing.

Please see the following helpful guide about developing modular VOLTTRON agents

Disclaimer Notice

This material was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the United States Department of Energy, nor Battelle, nor any of their employees, nor any jurisdiction or organization that has cooperated in the development of these materials, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness or any information, apparatus, product, software, or process disclosed, or represents that its use would not infringe privately owned rights.

Reference herein to any specific commercial product, process, or service by trade name, trademark, manufacturer, or otherwise does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or any agency thereof, or Battelle Memorial Institute. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or any agency thereof.

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

volttron_sqlite_historian-2.0.0rc1.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

volttron_sqlite_historian-2.0.0rc1-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file volttron_sqlite_historian-2.0.0rc1.tar.gz.

File metadata

  • Download URL: volttron_sqlite_historian-2.0.0rc1.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.10.18 Linux/6.8.0-1031-azure

File hashes

Hashes for volttron_sqlite_historian-2.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 d4de88131035c97fc04a9ebc539b08cb931567a96f68a82998e320004e2268bb
MD5 3ac616059157e71627dbd98fc64ad4ac
BLAKE2b-256 4ef6440adfa596ae06c9d35d4d441bfc0a4f5674c884b26f2167c47ce6b29af7

See more details on using hashes here.

File details

Details for the file volttron_sqlite_historian-2.0.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for volttron_sqlite_historian-2.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 ed4b35464364d0754acda82278af894cbd8881f72a2f8ba9181accdd4aee63d2
MD5 698ae8461ca906fdf2fe334005d791f7
BLAKE2b-256 fbb846f4d2fc097706edfc70e86fcfe8ac66bd619c8cb165aae609a5e4d8a0c9

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