[![Built Status](https://api.cirrus-ci.com/github/imubit/data-agent-osisoft-pi.svg?branch=main)](https://cirrus-ci.com/github/imubit/data-agent-osisoft-pi)
[![PyPI-Server](https://img.shields.io/pypi/v/data-agent-osisoft-pi.svg)](https://pypi.org/project/data-agent-osisoft-pi/)
[![Project generated with PyScaffold](https://img.shields.io/badge/-PyScaffold-005CA0?logo=pyscaffold)](https://pyscaffold.org/)
# data-agent-osisoft-pi
> [Data Agent](https://github.com/imubit/data-agent) plugin for accessing Osisoft PI Historian.
## CLI Examples
Example of using [Data Agent](https://github.com/imubit/data-agent) CLI to access PI tags
```commandline
dagent exec create_connection --conn_name=pi --conn_type=osisoft-pi --enabled=True --server_name=DATA-SERVER
dagent exec list_connections
dagent exec connection_info --conn_name=pi
dagent exec list_tags --conn_name=pi
dagent exec read_tag_values_period --conn_name=pi --tags="['sinusoid', 'sinusoidu']" --first_timestamp=*-100h --last_timestamp=*
dagent exec copy_period --src_conn=pi --tags="['SINUSOID', 'sinusoidu']" --dest_conn=csv --dest_group='sinus.csv' --first_timestamp=*-100h --last_timestamp=*
```
## Troubleshooting
### OSIsoft.AF.PI.PITimeoutException when reading historical data
Increase the SDK data access timeout settings on the client machine. There are two timeouts for the SDK, a connection timeout and a data access timeout. The connection timeout default is 10 seconds. The data access timeout is 60 seconds. Data access timeouts are the most likely cause of the error.
* Launch AboutPI-SDK.exe.
* Navigate to the Connections tab.
* Select the PI Data Archive in question.
* Increase the Data Access Timeout and Connection Timeout to 120 seconds or more.
Raw data
{
"_id": null,
"home_page": "https://github.com/imubit/data-agent-osisoft-pi/",
"name": "data-agent-osisoft-pi",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Meir Tseitlin",
"author_email": "meir@imubit.com",
"download_url": "https://files.pythonhosted.org/packages/fd/89/3db9a4420d25ff1fa866883f3b3b4f60df9c5d38fe3b83edd5494e0b71f0/data_agent_osisoft_pi-0.4.1.tar.gz",
"platform": "any",
"description": "\n[![Built Status](https://api.cirrus-ci.com/github/imubit/data-agent-osisoft-pi.svg?branch=main)](https://cirrus-ci.com/github/imubit/data-agent-osisoft-pi)\n[![PyPI-Server](https://img.shields.io/pypi/v/data-agent-osisoft-pi.svg)](https://pypi.org/project/data-agent-osisoft-pi/)\n[![Project generated with PyScaffold](https://img.shields.io/badge/-PyScaffold-005CA0?logo=pyscaffold)](https://pyscaffold.org/)\n\n# data-agent-osisoft-pi\n\n> [Data Agent](https://github.com/imubit/data-agent) plugin for accessing Osisoft PI Historian.\n\n\n## CLI Examples\n\nExample of using [Data Agent](https://github.com/imubit/data-agent) CLI to access PI tags\n\n```commandline\ndagent exec create_connection --conn_name=pi --conn_type=osisoft-pi --enabled=True --server_name=DATA-SERVER\ndagent exec list_connections\ndagent exec connection_info --conn_name=pi\ndagent exec list_tags --conn_name=pi\ndagent exec read_tag_values_period --conn_name=pi --tags=\"['sinusoid', 'sinusoidu']\" --first_timestamp=*-100h --last_timestamp=*\ndagent exec copy_period --src_conn=pi --tags=\"['SINUSOID', 'sinusoidu']\" --dest_conn=csv --dest_group='sinus.csv' --first_timestamp=*-100h --last_timestamp=*\n```\n\n\n## Troubleshooting\n\n### OSIsoft.AF.PI.PITimeoutException when reading historical data\n\nIncrease the SDK data access timeout settings on the client machine. There are two timeouts for the SDK, a connection timeout and a data access timeout. The connection timeout default is 10 seconds. The data access timeout is 60 seconds. Data access timeouts are the most likely cause of the error.\n* Launch AboutPI-SDK.exe.\n* Navigate to the Connections tab.\n* Select the PI Data Archive in question.\n* Increase the Data Access Timeout and Connection Timeout to 120 seconds or more.\n",
"bugtrack_url": null,
"license": "LGPL v3",
"summary": "Osisoft PI historian plugin for `data-agent` package",
"version": "0.4.1",
"project_urls": {
"Documentation": "https://github.com/imubit/data-agent-osisoft-pi/",
"Download": "https://pypi.org/project/data-agent-osisoft-pi/#files",
"Homepage": "https://github.com/imubit/data-agent-osisoft-pi/",
"Source": "https://github.com/imubit/data-agent-osisoft-pi/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8ee1d6c1c09625d3f15647c74992337d0eee64db705abccc21a48d92f49af175",
"md5": "18c6000f4e9d93bd77d156b08270e3a8",
"sha256": "63d9602cf318366a735867ecd1d6c9ecc04790fdf19feb1baf2ca3778d9aa300"
},
"downloads": -1,
"filename": "data_agent_osisoft_pi-0.4.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "18c6000f4e9d93bd77d156b08270e3a8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 10614,
"upload_time": "2024-05-15T17:33:08",
"upload_time_iso_8601": "2024-05-15T17:33:08.339192Z",
"url": "https://files.pythonhosted.org/packages/8e/e1/d6c1c09625d3f15647c74992337d0eee64db705abccc21a48d92f49af175/data_agent_osisoft_pi-0.4.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "fd893db9a4420d25ff1fa866883f3b3b4f60df9c5d38fe3b83edd5494e0b71f0",
"md5": "e20eee4cf814bf3e8b06f168d2688383",
"sha256": "24e2e1af2b0a74f324eb0441ca6c5046d23ab94d1e7039b09a8f06882deee4ef"
},
"downloads": -1,
"filename": "data_agent_osisoft_pi-0.4.1.tar.gz",
"has_sig": false,
"md5_digest": "e20eee4cf814bf3e8b06f168d2688383",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 28143,
"upload_time": "2024-05-15T17:33:09",
"upload_time_iso_8601": "2024-05-15T17:33:09.853571Z",
"url": "https://files.pythonhosted.org/packages/fd/89/3db9a4420d25ff1fa866883f3b3b4f60df9c5d38fe3b83edd5494e0b71f0/data_agent_osisoft_pi-0.4.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-15 17:33:09",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "imubit",
"github_project": "data-agent-osisoft-pi",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "data-agent-osisoft-pi"
}