eddddddddy / e-ink-esp32-arduino-weather-time-note Goto Github PK
View Code? Open in Web Editor NEWYou can get time\weather\temperature-inside\humility-inside\pressure-inside\IAQ-inside\QQ-note\computer-info on this device.
You can get time\weather\temperature-inside\humility-inside\pressure-inside\IAQ-inside\QQ-note\computer-info on this device.
RT
你好up主,一直无法进群联系,故开了issues.
我上传程序后,一直无法刷新出天气,已经更换成自己的和风key
mqtt主题 notice_r 可以回调并显示在显示屏上
监听主题 weather_r 信息
weather_call_r call for weather info
{"code_1": "18", "code_2": "18", "wea_1": "小雨", "wea_2": "小雨", "tmp_1_min": "26", "tmp_1_max": "34", "tmp_2_min": "26", "tmp_2_max": "33"}
ARDUINOJSON库版本 5 和 6.9.1均使用过,一直无法解析,不知是何故。
本人在认真浏览b站教程视频后,仍有些无法独立解决的问题,因本人没有开发经验,在群里不方便码字又怕打扰大家交流,故提出issue希望各位大佬帮忙。
本人使用的是TTGO T5 V2.3型号的开发板及bme680传感器,使用的是\src\Arduino\T5-Ink-2.3内源码。在Arduino(1.8.13)软件内安装好esp32开发环境及如下Arduino库后,按照视频操作烧录进开发板,板子无响应(上传完成屏幕没有刷新,板子LED蓝灯恒亮,RST及另外一个按钮按下无作用)。
大部分库是从GitHub直接下载的(带-master的),其中Adafruit_BusIO是编译时报错后自行安装的。
因为选择了bme680传感器,将源码第51行的#include "Adafruit_BME280.h"
改为了#include "Adafruit_BME680.h"
,并将程序内bme280的相关变量都改为了bme680字样。除此之外源码只更改了wifi及服务器地址信息。
服务器环境为python3.8,安装好所需的包之后运行server.py产生如下报错:
PS C:\Users\Administrator\Desktop> python server.py
<websocket._app.WebSocketApp object at 0x000001CEB7F21A30>
Handshake status 404 Not Found
<websocket._app.WebSocketApp object at 0x000001CEB7F21A30>
### closed ###
�[32mINFO�[0m: Started server process [�[36m856�[0m]
�[32mINFO�[0m: Waiting for application startup.
�[32mINFO�[0m: Application startup complete.
�[32mINFO�[0m: Uvicorn running on �[1mhttp://0.0.0.0:8899�[0m (Press CTRL+C to quit)
Exception in thread Thread-2:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "server.py", line 637, in mqtt_init
client.connect('127.0.0.1', 1883, 600) # 600为keepalive的时间间隔
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\paho\mqtt\client.py", line 937, in connect
return self.reconnect()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\paho\mqtt\client.py", line 1071, in reconnect
sock = self._create_socket_connection()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\paho\mqtt\client.py", line 3522, in _create_socket_connection
return socket.create_connection(addr, source_address=source, timeout=self._keepalive)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\socket.py", line 808, in create_connection
raise err
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\socket.py", line 796, in create_connection
sock.connect(sa)
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
�[32mINFO�[0m: Shutting down
�[32mINFO�[0m: Waiting for application shutdown.
�[32mINFO�[0m: Application shutdown complete.
�[32mINFO�[0m: Finished server process [�[36m856�[0m]
cqhttp插件配置文件为默认,控制台没有文字输出。server.py除更改过qq信息外没有进行更改。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.