摘要
针对"知天气"数据监控不及时的问题,提出了基于Android的数据主动监控方案,该方案使用服务器模拟客户端请求"知天气"的接口数据,并根据数据的更新时间与当前的时间作对比,如果时间差超过预定的缺失数据时间,就通过信鸽服务向数据监控手机推送数据缺失的报文,数据监控客户端接收并解析数据缺失的报文,将数据缺失的报文展示在手机客户端上。
Aiming at the problem of"ZhiTianQi" data monitoring, an active data monitoring scheme based on Android is proposed. In this scheme, the server simulates the client's request for "weather" and compares the update time with the current time. If the time difference exceeds a predetermined missing data time, a data missing message is pushed to the data monitoring handset through the XinGe service. The data monitoring client receives and parses the missing data packets, and displays the missing data packets on the mobile client.
出处
《数字技术与应用》
2017年第1期174-175,共2页
Digital Technology & Application
基金
福建省气象局青年科技专项(2016q10)