shaderfallback / kindleoutlookcalendarweather Goto Github PK
View Code? Open in Web Editor NEWstandAlone
License: MIT License
standAlone
License: MIT License
intTime = int(strtime5)
if(countUpdate_1 and intTime == 7):
tempArray = UpdateData()
countUpdate_1 = False
elif(countUpdate_2 and intTime == 11):
tempArray = UpdateData()
countUpdate_2 = False
elif(countUpdate_3 and intTime == 16):
tempArray = UpdateData()
countUpdate_3 = False
elif(countUpdate_4 and intTime == 21 ):
tempArray = UpdateData()
countUpdate_4 = False
问一下 怎么更改天气刷新的时间 我这早上上班还是昨天的天气 我改了里边的7 11 16 21没有作用
还有就是 天气刷新逻辑混乱 我两个rss切换的时候 一个天气刷新了 一个天气还是老的 😵
为什么要在 GetRss 的 死循环里面引用更新天气?
运行后,在log.log中报错
Traceback (most recent call last):
File "/mnt/us/extensions/KindleOutlookCalendarWeather/bin/pytz_deprecation_shim/_impl.py", line 39, in timezone
zone = _compat.get_timezone(key)
File "/mnt/us/extensions/KindleOutlookCalendarWeather/bin/pytz_deprecation_shim/_compat_py3.py", line 16, in get_timezone
return zoneinfo.ZoneInfo(key)
File "/mnt/us/python3/lib/python3.9/zoneinfo/_common.py", line 24, in load_tzdata
raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key Etc/GMT'
用 echo $TZ查询后时区是Asia/Shanghai,该如何解决
天气图标缺少霾 天气数据不准确 RSS源添加两个以上 打开软件会一直白屏
设备型号是:
Kindle Basic (2014)
log如下:
Update Init...
Reset Update...ok
**sh: fbink: not found**
Update Screen...ok
需要判断当前是否有天气缓存没有的话需要重新建立
功能都正常,除了不能正常退出。
KindleCalendarPlugin台历插件下载 V0.3
kindle版本5.14.2,已越狱。
python是最新的3.9版本。
MRPI最新版本
kual最新版本
ClientID
ClientValue
CityCode
ScreenResolutionX = 1236
ScreenResolutionY = 1648
如题 不能保持一直前台运行,需要关闭待机模式
我手里有一台KPW4,长款的像素比大概是1.8倍左右,我把程序内的绘图代码加入了(int(xxscale),int(yyscale)),这样就应该可以快速适配其他的设备,通过缩放的方式。 比如KPW4就是用xscale=1.8,yscale=1.8
实际运行的时候程序没有跑起来,log内容如下
Traceback (most recent call last):
File "/mnt/us/extensions/KindleOutlookCalendarWeather/bin/WeatherStation.py", line 6, in <module>
import feedparser
ModuleNotFoundError: No module named 'feedparser'
是一个库引起的报错。
log.log
不知道up对于这个方式和这个报错有什么想法
server=1之后,我从localhost没能成功显示内容,但是程序可以正常运行
2023-01-02 21:42:56 Update Init...
2023-01-02 21:42:56 Image Cache List 0 : c:/Users/Administrator/Desktop/KindleOutlookCalendarWeather-main/bin/nowTime2142.png
2023-01-02 21:42:56 Image Cache List 1 : c:/Users/Administrator/Desktop/KindleOutlookCalendarWeather-main/bin/nowTime2143.png
c:\Users\Administrator\Desktop\KindleOutlookCalendarWeather-main\bin\WeatherStation.py:532: DeprecationWarning: ROTATE_270 is deprecated and will be removed in Pillow 10 (2023-07-01). Use Transpose.ROTATE_270 instead.
Himage = Himage.transpose(Image.ROTATE_270)
2023-01-02 21:42:56 Update Screen...ok
下面是修改后的程序,因为没能运行就先不提merge request了
从sourcecode修改了屏幕显示的坐标,其他没有测试了。
=================Outlook令牌生成工具===================
请提前在config.ini文件填写客户端ID,和密码的值
复制下面的连接到浏览器,并登录邮箱授权,然后将浏览器链接粘贴回来,并回车
-注意不要有任何多余空格和符号!
------------------BiliBili日出东水---------------------
Visit the following url to give consent:
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?response_type=code&client_id=6fd66d9a-a956-4862-8341-201fb8b928ad&redirect_uri=https%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fnativeclient&scope=https%3A%2F%2Fgraph.microsoft.com%2FCalendars.ReadWrite+https%3A%2F%2Fgraph.microsoft.com%2FUser.Read+offline_access&state=KE1JQq8bXBiQ3pkE8fgmnaj4vgmS9L&access_type=offline
Paste the authenticated url here:
https://login.microsoftonline.com/common/oauth2/nativeclient?code=M.C531_BAY.2.U.8900c53b-554f-8c35-adba-2f3e1553be4a&state=g1dLuUqwEkbZaKX27EY4j6SJXo5XDE
Unable to fetch auth token. Error: (mismatching_state) CSRF Warning! State not equal in request and response.
Something go wrong. Please try again.
O365\utils\utils.py:905: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
Traceback (most recent call last):
File "PythonO365.py", line 90, in
File "PythonO365.py", line 61, in GetO365
File "O365\calendar.py", line 1899, in get_events
File "O365\calendar.py", line 1651, in get_events
File "O365\connection.py", line 654, in get
File "O365\connection.py", line 641, in oauth_request
File "O365\connection.py", line 449, in get_session
RuntimeError: No auth token found. Authentication Flow needed
[7084] Failed to execute script 'PythonO365' due to unhandled exception!
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.