【问题标题】:How to connect to a PI Webservice, using Python3如何使用 Python3 连接到 PI Webservice
【发布时间】:2019-08-16 03:38:23
【问题描述】:

我正在尝试连接到 OSISoft 的 PI Webservice,官方文档不好,目前我以 https://github.com/SwatiAcharjee/PI-Web-API-Client-Python/blob/master/setup.py 为例。

我安装了:

pip3 安装 osipiconnect

但是当尝试连接到 WS 时,通过:

client = PIWebApiClient (" https://marc-rras.osisoft.int/piwebapi ", useKerberos = False, username =" marc.adm ", password =" kk ", verifySsl = False)

给我一​​个错误:

意外的关键字参数“useKerberos”

(假设 WS 在身份验证过程中使用 Kerberos)

一些想法或示例,说明如何在装有 GNU Linux 的机器上使用 Python 连接到 PI Webservice??。

问候

【问题讨论】:

    标签: python kerberos osisoft


    【解决方案1】:

    OSIsoft 的 PI Web API 具有许多身份验证选项,在许多拥有大多数 Microsoft 计算机的公司中,Kerberos 身份验证提供单点登录体验。这只是使用 PI Web API 的一种方式(推荐和安全)。但还有其他方法。见the OSIsoft Live Library - PI Web API - Authentication options for more details。这些设置需要服务器端配置。

    但退后一步,我可能会尝试了解您想要实现的目标。有多种方法可以通过 PI System 访问和使用数据。 PI Web API 只是其中之一……您是否尝试使用正确的 API?这是XY Problem 的典型案例:)。

    --

    要快速了解作为开发人员使用 PI System 的多种方式,请访问此处:OSIsoft PI Developer Technologies

    并且专门针对 PI Web API,您可以在 youtube 上观看培训视频:PI Web API online Course

    要开始使用 PI System 并了解它的用途,您应该查看此处:What is the PI System?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-06-10
      • 1970-01-01
      • 2020-02-04
      • 2023-03-07
      • 2019-03-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多