这就跟你问声好!
我想知道是否有人尝试用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