本网页已闲置超过3分钟,按键盘任意键或点击空白处,即可回到网页

基于STM32+ESP8266的WIFI桌面天气预报(HTTP GET请求+ json+UTF-8中文显示 )

发布时间:2017-07-14 更新时间:2017-08-15
服务 该方案不提供技术支持
¥ 20.00
分享到:

评价1

购买55

查看10,922

基于STM32+ESP8266的WIFI桌面天气预报(HTTP GET请求+ json+UTF-8中文显示 )

发布:2017-07-14 更新:2017-08-15
服务 该方案不提供技术支持
评价1 购买55 查看10,922
分享到:
编号 图片 器件型号 数量 建议厂商/器件描述 参考价格
风险等级
ECAD模型
数据手册
更多信息
讨论区
lyb201677h ·  2020-05-07
lyb201677h ·  2020-05-07
zheng1314 ·  2019-10-05
fourteenz ·  2019-10-05

硬件使用的是原子mini开发板,硬件资料网上很轻松可以获得

展开
注册不上 ·  2017-08-06
fourteenz ·  2017-08-07
fourteenz ·  2017-08-07
fourteenz ·  2017-08-07
fourteenz ·  2017-08-07
fourteenz ·  2017-08-07
fourteenz ·  2017-08-07
fourteenz ·  2017-08-07

{"HeWeather5":[{"aqi":{"city":{"aqi":"58","pm10":"65","pm25":"34","qlty":"良"}},"basic":{"city":"西安","cnty":"中国","id":"CN101110101","lat":"34.26316071","lon":"108.94802094","update":{"loc":"2017-08-0710:51","utc":"2017-08-0702:51"}},"daily_forecast":[{"astro":{"mr":"19:22","ms":"05:18","sr":"06:01","ss":"19:41"},"cond":{"code_d":"307","code_n":"101","txt_d":"大雨","txt_n":"多云"},"date":"2017-08-07","hum":"67","pcpn":"6.4","pop":"99","pres":"1007","tmp":{"max":"25","min":"20"},"uv":"4","vis":"16","wind":{"deg":"238","dir":"西南风","sc":"微风","spd":"9"}},{"astro":{"mr":"20:02","ms":"06:14","sr":"06:02","ss":"19:40"},"cond":{"code_d":"100","code_n":"100","txt_d":"晴","txt_n":"晴"},"date":"2017-08-08","hum":"42","pcpn":"0.0","pop":"0","pres":"1005","tmp":{"max":"30","min":"20"},"uv":"10","vis":"20","wind":{"deg":"224","dir":"西南风","sc":"微风","spd":"14"}},{"astro":{"mr":"20:39","ms":"07:12","sr":"06:02","ss":"19:39"},"cond":{"code_d":"100","code_n":"100","txt_d":"晴","txt_n":"晴"},"date":"2017-08-09","hum":"24","pcpn":"0.0","pop":"0","pres":"1001","tmp":{"max":"34","min":"21"},"uv":"10","vis":"20","wind":{"deg":"263","dir":"西风","sc":"微风","spd":"7"}}],"hourly_forecast":[{"cond":{"code":"101","txt":"多云"},"date":"2017-08-0713:00","hum":"82","pop":"20","pres":"1004","tmp":"24","wind":{"deg":"246","dir":"西南风","sc":"3-4","spd":"18"}},{"cond":{"code":"101","txt":"多云"},"date":"2017-08-0716:00","hum":"78","pop":"20","pres":"1005","tmp":"24","wind":{"deg":"264","dir":"西风","sc":"3-4","spd":"18"}},{"cond":{"code":"309","txt":"毛毛雨/细雨"},"date":"2017-08-0719:00","hum":"78","pop":"7","pres":"1006","tmp":"22","wind":{"deg":"247","dir":"西南风","sc":"微风","spd":"13"}},{"cond":{"code":"103","txt":"晴间多云"},"date":"2017-08-0722:00","hum":"80","pop":"7","pres":"1006","tmp":"22","wind":{"deg":"219","dir":"西南风","sc":"微风","spd":"8"}}],"now":{"cond":{"code":"300","txt":"阵雨"},"fl":"28","hum":"99","pcpn":"0","pres":"1007","tmp":"25","vis":"8","wind":{"deg":"317","dir":"西北风","sc":"微风","spd":"9"}},"status":"ok","suggestion":{"air":{"brf":"良","txt":"气象条件有利于空气污染物稀释、扩散和清除,可在室外正常活动。"},"comf":{"brf":"舒适","txt":"白天不太热也不太冷,风力不大,相信您在这样的天气条件下,应会感到比较清爽和舒适。"},"cw":{"brf":"不宜","txt":"不宜洗车,未来24小时内有雨,如果在此期间洗车,雨水和路上的泥水可能会再次弄脏您的爱车。"},"drsg":{"brf":"舒适","txt":"建议着长袖T恤、衬衫加单裤等服装。年老体弱者宜着针织长袖衬衫、马甲和长裤。"},"flu":{"brf":"少发","txt":"各项气象条件适宜,无明显降温过程,发生感冒机率较低。"},"sport":{"brf":"较不宜","txt":"有较强降水,建议您选择在室内进行健身休闲运动。"},"trav":{"brf":"较不宜","txt":"温度适宜,风稍大,同时有有较强降水,会给出行产生很多麻烦,建议好还是多选择在室内活动!"},"uv":{"brf":"最弱","txt":"属弱紫外线辐射天气,无需特别防护。若长期在户外,建议涂擦SPF在8-12之间的防晒护肤品。"}}}]}

展开
注册不上 ·  2017-08-07

感谢您能抽空帮助解决问题,显示方面暂时没有好的建议,这里把我之前的想法说一下吧,用图形化显示界面,图标仿照天气预报的格式(仅是个人的一些想法),,,邮箱:1129866625@qq.com

展开
fourteenz ·  2017-08-07

下面是新的天气API接口的json数据,您看下.在显示界面方面有什么好的建议,能让这么多数据更合理显示给大家,欢迎提供建议意见

展开
fourteenz ·  2017-08-07

再打一遍...您好,昨晚回来才看到您的消息,确实是天气API接口出问题了,我重新找到了一个更好的API接口,天气数据内容丰富,而且个人用户免费使用,这周内我把天气API这块弄好,然后再把个人所在城市接口封装好提供出来,再优化下显示界面GUI,因为这次的新的天气API数据内容太丰富了,所以得好好规划下,您把邮箱给我留一下,我搞定后给你把程序发过去

展开
fourteenz ·  2017-08-07

我刚才回复的消息没上传上去?

展开
aliya ·  2017-07-23
xiaoxiaolei1 ·  2017-12-01

你好,可以加我QQ详谈:1184613459

展开
fourteenz ·  2017-07-23

如果还没能解决你的问题,你单步调试下,看下程序最终走到哪步了,就知道你出现的问题所在,也就好解决了

展开
aliya ·  2017-07-23

好的明天试试,我q422582774@qq.com

展开
fourteenz ·  2017-07-23

这两周比较忙,下周忙完我清下BUG并把WIFI模块初始化信息以及获取HTTP请求的信息都更新到LCD显示屏上,重新发布下程序,你给我个邮箱我给你发新版的程序

展开
fourteenz ·  2017-07-23

是不是板子红灯一直亮着?我貌似知道原因了,刚发现的BUG,你手机开热点的IP地址估计不是192.168开头,你调试看下你的WIFI热点IP是多少,然后更改下程序的这里:172行和216行的"192.168"改成你WIFI模块所连接的网的IP地址的前两位"xxx.xxx"应该就OK了,之前没考虑到这个BUG,抱歉啊.

展开
aliya ·  2017-07-23

8266没问题,用单独原子程序测试过

展开
aliya ·  2017-07-23

就是这样接的呀,手机开热点密码名字和程序一样,怎么还是没连接起纳

展开
fourteenz ·  2017-07-23

用串口1,8266在串口1上接着,mini板串口2的PA2PA3被占用着

展开
aliya ·  2017-07-23

额,你用的串口1

展开
aliya ·  2017-07-23

看你发的图片A2A3你wifi都没接纳?

展开
您的评价已提交成功,我们会尽快审核发布,谢谢!

1人评价,平均分5

2021-06-12
2021-06-12

相关芯片与数据手册

电路相关文件 下载所有文件

电路图文件
QQ截图20170713193603.png

描述:STM32与LCD连接图

源代码
WIFI_get_天气_界面优化.zip

描述:整个工程源码,请使用MDK5以上打开

加入微信技术交流群

技术交流,职业进阶

关注与非网服务号

获取电子工程师福利

加入电路城 QQ 交流群

与技术大牛交朋友