VOLTTRON historian that store data in sqlite3 database
Project description
VOLTTRON historian agent that stores data into a SQLite database
Requirements
- Python >= 3.10
Installation
-
Create and activate a virtual environment.
python -m venv env source env/bin/activate
-
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 &
-
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
-
-
Install and start the volttron-sqlite-historian.
vctl install volttron-sqlite-historian --agent-config <path to configuration> --start
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file volttron_sqlite_historian-2.0.0rc0.tar.gz
.
File metadata
- Download URL: volttron_sqlite_historian-2.0.0rc0.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f06d98e0bd977a4710edcab6431ec644392adb59ed9a4b545d9e50499c9b0ee5 |
|
MD5 | a35b267f0d242de4f151ad06d65d6468 |
|
BLAKE2b-256 | d0dcf422b4c8aa129d9b79578896fa41e4b3869e0721fcc207cc3992090c3921 |
File details
Details for the file volttron_sqlite_historian-2.0.0rc0-py3-none-any.whl
.
File metadata
- Download URL: volttron_sqlite_historian-2.0.0rc0-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 070d7acf518344286299724bf41e5f9f9edc9676d84f388fbdc79354c714f05c |
|
MD5 | b35f9ebec1a99421257ed4a951833a21 |
|
BLAKE2b-256 | 3a2085a204ec2ac367731e693b2e2157308c30aac15a38c5aa754ecb9f85cbab |