文件名称:weather_lua
介绍说明--下载内容均来自于网络,请自行研究使用
可以在openwrt系统运行,使用lua语言编写。
1.环境:linux(openwrt)
2.依赖:stty 设置串口参数 curl 获取网络设置
cjson 解析json数据
ntpd 网络校时
3.串口名,波特率 城市id 接口签名自行修改
流程:运行后网络对时,打开串口,更新天气数据直到成功,监控串口数据流入,串口返回天气信息-Openwrt system can run using lua language. 1. Environment: linux (openwrt) 2. dependence: stty set up the serial port parameters curl obtain network settings cjson parse json data ntpd school network 3. name of the serial baud rate of the interface signature urban id modification process yourself: After running network time, open the serial port, until a successful update weather data, monitoring serial data flow into the serial port returns weather information
1.环境:linux(openwrt)
2.依赖:stty 设置串口参数 curl 获取网络设置
cjson 解析json数据
ntpd 网络校时
3.串口名,波特率 城市id 接口签名自行修改
流程:运行后网络对时,打开串口,更新天气数据直到成功,监控串口数据流入,串口返回天气信息-Openwrt system can run using lua language. 1. Environment: linux (openwrt) 2. dependence: stty set up the serial port parameters curl obtain network settings cjson parse json data ntpd school network 3. name of the serial baud rate of the interface signature urban id modification process yourself: After running network time, open the serial port, until a successful update weather data, monitoring serial data flow into the serial port returns weather information
(系统自动生成,下载前可以参看下载内容)
下载文件列表
weather.lua
说明.txt
lua-cjson_2.1.0-3_ar71xx.ipk