Coder Social home page Coder Social logo

kindleoutlookcalendarweather's People

Contributors

shaderfallback avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

kindleoutlookcalendarweather's Issues

天气刷新的问题

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切换的时候 一个天气刷新了 一个天气还是老的 😵

报错 'No time zone found with key Etc/GMT'

运行后,在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,该如何解决

sh: fbink: not found

设备型号是:
Kindle Basic (2014)
log如下:

Update Init...
Reset Update...ok
**sh: fbink: not found**
Update Screen...ok

[Bug]kpw5无法停止天气台历

描述

功能都正常,除了不能正常退出。

测试:

  1. 软件运行后,点关闭按钮,显示 “WeatherCalendar_OFF , OpenSourceCode to ...” ,但程序仍在运行,重启后停止运行。
  2. 软件运行后,直接重启,程序停止运行。

使用的版本:

  • KindleCalendarPlugin台历插件下载 V0.3

  • kindle版本5.14.2,已越狱。

  • python是最新的3.9版本。

  • MRPI最新版本

  • kual最新版本

安装的插件:

  • Rename OTA binaries
  • USBNetwork
  • Outlook 天气台历
  • Galculator
  • HTTP File Server
  • KOReader
  • Screen Savers
  • kerm

config.ini修改内容

ClientID
ClientValue
CityCode
ScreenResolutionX = 1236
ScreenResolutionY = 1648

关于其他机型的适配

  • Kindle 2/3/4/5/7/8/10:PNG 格式,宽高 600*800 像素
  • KPW 1/2:PNG 格式,宽高 758*1024 像素
  • KO1、KV、KPW 3/4:PNG 格式,宽高 1072*1448 像素
  • KO 2/3:PNG 格式,宽高 1680*1264 像素
  • KPW5:PNG 格式,宽高 1236*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了

WeatherStation.7z.zip

从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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.