Skip to main content

Osisoft PI historian plugin for `data-agent` package

Project description

Built Status PyPI-Server Project generated with PyScaffold

data-agent-osisoft-pi

Data Agent plugin for accessing Osisoft PI Historian.

CLI Examples

Example of using Data Agent CLI to access PI tags

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.

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

data_agent_osisoft_pi-0.4.1.tar.gz (28.1 kB view hashes)

Uploaded Source

Built Distribution

data_agent_osisoft_pi-0.4.1-py3-none-any.whl (10.6 kB view hashes)

Uploaded Python 3

Supported by

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