https://github.com/imubit/data-agent-osisoft-pi
Data Agent plugin (connector) for accessing Osisoft PI Historian
https://github.com/imubit/data-agent-osisoft-pi
data-agent osisoft-pi python
Last synced: 3 months ago
JSON representation
Data Agent plugin (connector) for accessing Osisoft PI Historian
- Host: GitHub
- URL: https://github.com/imubit/data-agent-osisoft-pi
- Owner: imubit
- License: lgpl-3.0
- Created: 2023-09-07T22:07:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-15T17:32:01.000Z (about 1 year ago)
- Last Synced: 2025-02-22T07:48:58.162Z (3 months ago)
- Topics: data-agent, osisoft-pi, python
- Language: Python
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
- Authors: AUTHORS.md
Awesome Lists containing this project
README
[](https://cirrus-ci.com/github/imubit/data-agent-osisoft-pi)
[](https://pypi.org/project/data-agent-osisoft-pi/)
[](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.