我们的全部技术支持人员不监督这个论坛。如果您需要我们工作人员的帮助,请从“问一个问题”页面提交你的问题


登录注册在论坛上发表/回复。

如何使用CR800或CR1000X在windy.com上张贴气象测量资料?


anemopetros 2021年12月8日08:04 PM

这就跟你问声好!

我想知道是否有人尝试用CR800或CR1000X在windy.com上发布气象测量?

Httppost命令似乎很有前途…

我做了一个脚本,但它不能发布到windy.com。

Error: failed to connect and http_post=0(见下面的脚本)

>>

....

HTTPResponse作为字符串

Public token_wind作为字符串
Public token_winddir作为字符串
公共token_temp作为字符串
公共token_gust作为字符串
Public Url_string As String *300
公共http_post

Const APIkey = " eyJhbGc……等”

Const URL_windy = " https://stations.windy.com/pws/update/ "

...

BeginProg

...

扫描(1秒,0,0)

....

...
CallTable输出

NextScan

SlowSequence

扫描(10,Min,0,0)'每10分钟运行一次

GetRecord (tb_1、输出1)

token_winddir = " ? winddir = " + tb_1 (20)
token_wind = "风= " + tb_1 (14)
token_gust = "阵风= " + tb_1 (15)
token_temp = " temp = " + tb_1 (34)

Url_string = URL_windy + APIkey + token_winddir + token_wind + token_gust + token_temp +杆(13)

http_post = HTTPPost (HTTPResponse Url_string, " ", " ")

NextScan
EndSequence

EndProg

登录注册在论坛上发表/回复。
Baidu