如何与本地网络中远程 Windows 10 PC 上运行的 Influxdb 进行交互?

问题描述 投票:0回答:1

我想通过任何方法发出发布请求,将一个新点写入名为

my_db
的 Influxdb 数据库,该数据库在我本地网络中的另一台 PC 上运行。安装了 Influxdb 1.8 的 PC 在 Windows 10 上运行。到目前为止,我尝试以这种方式使用 Python:

import requests
requests.post(url="192.168.x.x:8086/write?db=my_db", data=my_data)

但是我得到一个错误:

    raise InvalidSchema("No connection adapters were found for {!r}".format(url))
requests.exceptions.InvalidSchema: No connection adapters were found for '192.168.x.x:8086/write?db=my_db'

是否需要进行某种设置才能启用远程连接?请原谅我的无知,但我对网络的东西不是很满意。如果可能的话,我想避免任何形式的身份验证。

python network-programming influxdb
1个回答
-1
投票

你好,我也在找这个问题的解决方法,请问你解决了吗?

© www.soinside.com 2019 - 2024. All rights reserved.