找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 8148|回复: 14

[k3] 斐讯天气服务器彻底瓦了。。如何修改天气源

[复制链接]
发表于 2019-3-4 15:25 | 显示全部楼层 |阅读模式
    斐讯K3的天气显示一直依赖斐讯天气服务器。而最后一次天气服务器数据更新是3月1日
admin@RT-AC3100-4A2C:/tmp/home/root#  /usr/sbin/weather update_weather
weather.c_186:update from city_Id

buffer {"data":{"last_update":"2019-03-01T16:35:00+08:00","now":{"code":"4","wind_scale":"3","temperature":"9","humidity":"90","wind_direction":"东北","text":"多云"},"name":"成都"},"error":"0"}
update to weather now in nvram

所使用的文件是 /usr/sbin/weather

我用Notepad打开前面一堆乱码但后面有一些代码应该就是获取天气数据的。请问如何对获取天气数据部分进行修改。就俩个地址:https://phiclouds.phicomm.com/weather/city/list   http://172.17.227.247/FX_Cloud/weather
weather [parameter1] [-d]
        updatecity
        convert
        update_weather
        get_weather
        time -d  updatecity  /tmp/city_list  %s_%d:update city list in /tmp/city_list
   weather_main.c  %s_%d:fail to update city list
convert city_ch %s_%d:fail to convert chinese name to id
   time    %s_%d:get time now failed!
update_weather  fail to update weather now in nvram update to weather now in nvram  get_weather /tmp/weather_now    %s_%d:fail to get weather now from file %s
curl -k -s -H "Authorization:%s" %s?city=%s eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOiI3NTkzODMwNSIsImNvZGUiOiJmZWl4dW4uU0hfNCIsInR5cGUiOiJhY2Nlc3NfdG9rZW4iLCJpc3MiOiJQaGljb21tIiwibmJmIjoxNDk5MjM3MTgyLCJleHAiOjM4MzIwMzcxODIsInJlZnJlc2hUaW1lIjoiMjA0Mi0wMi0yNCAxNDo0NjoyMiJ9.WDkhzMGE867wtnQ3JiTeI2tFTSqWc6VV_bMnI4OdjDM   https://phiclouds.phicomm.com/weather/now   WTW3SJ5ZBJUY    %s_%d:%s
   weather.c   %s_%d:popen failed!
    curl -k -s -H "Authorization:%s" %s https://phiclouds.phicomm.com/weather/city/list wb  %s_%d:fopen failed
%s_%d:size of buffer is %d
%s_%d:update citylist successfully
%s_%d:failed to update citylist
    %s_%dpen file %s failed
  %s_%d:reupdate file %s successfully
    %s_%d:fail to reupdate file %s!!!
  %s_%d:cityCh_to_cityId error:parse buffer failed!
  result  %s_%d:the array size of city list data is %d
   city    cityId  city_id converted chinese city name %s to city_id %s
   fail to convert chinese city name %s to city id
    %s_%d:city_ch is empty, update from mac
    et2macaddr  curl -k -s -H "Authorization:%s" %s?mac=%s  http://172.17.227.247/FX_Cloud/weather  %s_%d:update from city_Id
  %s_%d:weather_now error:pipe open failed!
  %s_%d:weather_now error:pipe fread failed!
buffer %s
  %s_%d:get invalid data in update
   %d  weather_error   0   %s_%d:weather_now is %s
   data    %s_%d:NO valid data in update
  now weather_code    temperature weather_temp    %s_%d:input parameters invalid
%s_%d:parse file %s failed
%s_%d:empty json, no error code
    last_update %s_%d:invalid ptr %p    %s_%d:time is %d-%d-%d %d:%d %d
    ps | grep %s | grep -v grep %s_%d:run command fail
%s_%d:procese %s is not running
    %s_%d:process %s is running

我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-3-4 15:27 | 显示全部楼层
不是可以自己选天气预报的地址吗

点评

服务器都瓦了。你选地址也没得用啊。。天气也不更新  详情 回复 发表于 2019-3-4 15:29
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-3-4 15:29 | 显示全部楼层
寒冰01 发表于 2019-3-4 15:27
不是可以自己选天气预报的地址吗

服务器都瓦了。你选地址也没得用啊。。天气也不更新
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-4 15:45 | 显示全部楼层
这么k3也凉凉叻

点评

K3看来是被抛弃了。只有大家想办法了。  发表于 2019-3-4 15:54
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-4 17:15 | 显示全部楼层
没办法,k3固件内部api不对应,光改一个网址也不好使
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-4 17:30 | 显示全部楼层
居然是自己服务器,还以为直接用三方的,用第三方主要是数据匹配问题,
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-4 17:39 | 显示全部楼层
主要是真的有人去路由器上看天气么
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-4 17:41 | 显示全部楼层
我是没明白为什么路由器要显示天气,脑残的设计
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-4 19:28 | 显示全部楼层
开发第三固件时候可以把屏幕天气也省了或者换成当前系统参数和温度
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-4 22:21 | 显示全部楼层
看到淞江2.27通告了吧,顾等17人个体起诉,fx成功洗白,就这样了,大家就将就用硬件就是,不要对服务过多期待了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-4 22:35 | 显示全部楼层
在WEB可以设置天气地址
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-8 23:02 | 显示全部楼层
你不说我还没发现呢 天气预报真的不准确了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-4-13 16:07 | 显示全部楼层
岂止是K3,连手环手表都不能更新天气预报了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-25 13:33

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表