Commit Graph

360 Commits

Author SHA1 Message Date
Ace
823df7253a
adapt for Pillow10 2023-11-20 20:15:16 +01:00
Ace
d53d167f74
Update inkycal_stocks.py 2023-11-20 18:58:56 +01:00
Ace
341a9cdc74
Update test_inkycal_stocks.py 2023-11-20 18:57:10 +01:00
mrbwburns
f146949249 latest best guess at scraping the weather 2023-11-20 17:29:46 +01:00
mrbwburns
edd12c3ba0 Merge branch 'weather_scaling' of github.com:mrbwburns/Inkycal into weather_scaling 2023-11-20 17:29:46 +01:00
mrbwburns
0d8cb6c42a no image processing on main
remove the weather scraper call from the inky image module
2023-11-20 17:29:46 +01:00
mrbwburns
2f494eab9e revert original weather module back to master 2023-11-20 17:29:46 +01:00
mrbwburns
485228e35d another shot for improved image display 2023-11-20 17:29:46 +01:00
mrbwburns
0ca272b563 weather scraper improvements 2023-11-20 17:29:46 +01:00
mrbwburns
ba630c381f remove image "optimization" 2023-11-20 17:29:45 +01:00
mrbwburns
6287affb0c call the openweather scraper from the image module 2023-11-20 17:29:45 +01:00
mrbwburns
a0fa33d5e1 scraping the weather instead of using the API 2023-11-20 17:29:45 +01:00
mrbwburns
7cac3fd195 - improve devcontainer setup
- add openweather web scraper module
2023-11-20 17:29:45 +01:00
mrbwburns
62bb0f600e first improvements for larger fontsizes 2023-11-20 17:29:45 +01:00
Ace
a937564ec9
re-activate unittests 2023-11-20 17:21:18 +01:00
mygrexit
126b3826e6
Add dotted and dashed lines (draw_boarder function)
First version of adding dotted and dashed line in order to be able to have more distinguishon between multi event, single event and mixed event days. This version is using the "arcs" from PIL ImageDraw which isn't pretty.
2023-11-10 21:53:36 +01:00
mygrexit
2dc945ebee
Added support for multi-day events
Improved event handling in calendar: Enhanced the calendar module to handle events spanning multiple days.
2023-11-10 14:57:47 +01:00
mygrexit
d79c65cdd5
Add localized formatting for multi-day event durations
This commit introduces a feature to format the names of multi-day events using Arrow's localization. Event titles now include the event duration in days.
2023-11-10 13:39:08 +01:00
Ace
2b2eca2271
Merge pull request #279 from aceinnolab/feature/#245
text-module enhancement
2023-11-08 22:30:02 +01:00
Ace
bb9257ee30
consistency 2023-11-08 22:25:46 +01:00
Ace
bebe60aef3 text-module enhancement
This allows an improved approach to load text from URL
Also improved the function to check for a connection by attempting three times before giving up
2023-11-08 20:22:50 +01:00
Ace
a921a9c917 code quality improvements 2023-11-07 23:13:30 +01:00
Ace
93c968da53 python 3.11 & code quality improvements 2023-11-07 22:49:48 +01:00
Ace
5508274df7
fix issue on no title 2023-09-25 13:36:39 +02:00
Hong Jiang
9559206594 add an image_file driver for development
The driver just writes images to files. This makes it possible to test without
an e-ink display.
2023-09-13 11:25:46 +08:00
Hong Jiang
07ba1f02a8 refactor: do not process .py file manually
Import the driver as a module in `Display.get_display_size()`.
2023-09-11 01:08:11 +08:00
Hong Jiang
b57d60bab9 only print dir creation log when it actually happens 2023-09-10 13:03:30 +08:00
Hong Jiang
b18d25eaa4 only create directory for stocks when necessary
This avoids printing an inacurate error every time.
2023-09-10 12:53:40 +08:00
Ace
b4d2913495 remove async 2023-06-07 13:03:45 +02:00
Ace
d6c6f627ae fix display render operations 2023-06-07 12:32:06 +02:00
LakesideMiners
ccf90d8aea
Update __init__.py 2023-06-07 05:44:20 -04:00
LakesideMiners
0109eba4cc
Update __init__.py 2023-06-07 05:44:05 -04:00
Ace
2bf47c8f2d fix docs path 2023-06-03 21:56:01 +02:00
Ace
795252c82c fixing actions 2023-06-03 18:47:09 +02:00
Ace
8431c52f6e fixing actions 2023-06-03 18:43:18 +02:00
Ace
9486006e86 naming convention 2023-06-03 16:16:07 +02:00
Ace
8a81cd5908 initial docs 2023-06-03 15:53:45 +02:00
Ace
9794f0237f
Merge pull request #254 from LakesideMiners/LakesideMiners-5in83bV2driver
Create epd5in83b_V2.py
2023-06-03 14:46:23 +02:00
LakesideMiners
6cd221f43a
Create epd5in83b_V2.py 2023-05-25 12:52:14 -04:00
Ace
7663a9888f refactoring wip 2023-05-20 03:09:15 +02:00
Ace
a7d30ce6ba ui-improvements 2023-05-17 10:12:52 +02:00
Ace
7c908f590a
temporary disabled
The test for the stocks module fails as the stocks module is temporary not included in the default modules. Once it's fixed, it will be included again.
2023-05-10 13:53:29 +02:00
Ace
56c17801b6
temp disable Stocks module 2023-04-16 21:17:31 +02:00
Ace
003258eb39
temp disable Stocks module 2023-04-16 21:16:42 +02:00
The Random DIY
598fbf7b68 InkyCal module updated with Black and Pylint changes 2023-02-25 15:38:15 +02:00
Ace
d072e86599
added changes from #194 2023-02-14 22:58:32 +01:00
Ace
0533a974fd
revert weather module 2023-02-14 21:58:23 +01:00
Ace
eea4211530
Delete inkycal_weather.py 2023-02-14 21:36:32 +01:00
ch3lmi
d8e18a2f86
Add files via upload 2023-02-13 09:19:23 +01:00
ch3lmi
d57744adfb
Update inkycal_weather.py 2023-02-13 09:06:38 +01:00
ch3lmi
52b300bda2
Add files via upload 2023-02-10 14:50:16 +01:00
ch3lmi
415705d555
Add files via upload 2023-02-10 14:34:20 +01:00
aceisace
3eb1891131 Merge branch 'feature/venv'
# Conflicts:
#	.github/workflows/tests.yml
#	README.md
#	inkycal/modules/ical_parser.py
#	inkycal/modules/inkycal_agenda.py
#	inkycal/modules/inkycal_feeds.py
#	inkycal/modules/inkycal_todoist.py
#	inkycal/modules/inkycal_weather.py
#	requirements.txt
2023-01-13 01:47:18 +01:00
aceisace
5b46cee938 set timeout for reading from ical url 2023-01-11 23:13:00 +01:00
aceisace
0729fec933 use absolute path for test settings file 2023-01-11 22:35:05 +01:00
aceisace
8e754cb6cd improve unit-testing
use config class which reads from .env file
remove obsolete functions
update requirements
2023-01-11 22:24:39 +01:00
aceisace
24ae6df27e bump requirements
fix some minor issues
code cleanup
2023-01-10 22:58:01 +01:00
dealyllama
dfd710af94 Update inkycal_todoist.py 2022-12-06 10:43:47 -08:00
aceisace
69786fb4df fix problem where todos were only shown of a single group 2022-10-04 23:56:43 +02:00
aceisace
4753dbc4a6 fix problem when due was defined in todo 2022-10-04 23:31:33 +02:00
aceisace
f3d951a93c fix calculation of offsets due to new api response structure 2022-10-04 22:22:55 +02:00
aceisace
2914070d65 check if todo data entry exists to prevent errors when writing text (text=None) 2022-10-04 22:06:28 +02:00
aceisace
578d3d9f1f logger stuff 2022-10-03 02:58:27 +02:00
aceisace
3460aabd7b Added (plain) text to display module 2022-10-03 02:58:07 +02:00
aceisace
560d73a87c logger best practices 2022-10-03 02:56:04 +02:00
aceisace
9dff6e88cf bump requirements and adapt todoist module accordingly 2022-10-03 01:03:24 +02:00
aceisace
49741f9618 Merge remote-tracking branch 'origin/feature/venv' into feature/venv 2022-10-02 00:49:37 +02:00
aceisace
4d1ed107b7 naming convention 2022-10-02 00:49:27 +02:00
Ace
f85ec1b343 fix path 2022-09-09 02:41:01 +02:00
Ace
ae365b7111 fix for 12.48" epd 2022-09-09 02:35:54 +02:00
aceisace
5294d486e3 add missing file for 12.48" 2022-09-09 00:50:06 +02:00
aceisace
1c68895d94 improved tests 2022-09-08 23:23:05 +02:00
aceisace
a431ffb683 improved tests 2022-09-08 22:25:50 +02:00
David
54f293d0e6 Fixed parser reading file based calendars as strings rather than calendar objects 2022-08-29 17:16:19 +01:00
Konrad Weihmann
026b3c1da0 main: add image hashing
build md5 sum over the resulting assembled image(s) and
check against a stored hash file to determine if we really need
to update the screen.
Option can be controlled by new image_hash global option.

If info_section is enabled while image_hash is on,
the time of update will be stripped from the section,
as it is clearly not hashable.

In the end this enables us to update the information in the
background way more frequent without increasing the stress
caused to the display

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
2022-08-23 09:13:22 +00:00
aceisace
118548aa44 adjust release version 2022-04-14 17:47:37 +02:00
aceisace
41916b10c7 added drivers for 12.48" display 2022-04-14 17:46:30 +02:00
aceisace
3dd40edfb0 improve testing 2022-04-14 17:14:30 +02:00
aceisace
a5429f82d7 updated driver files for 7.8", 9.7" and 10.3" parallel epaper displays 2022-04-14 06:38:22 +02:00
aceisace
24dd8a12df fix test 2022-04-14 06:29:11 +02:00
aceisace
3d90a75d81 fix test 2022-04-14 06:12:06 +02:00
aceisace
ef678a970a fix test 2022-04-14 06:07:14 +02:00
aceisace
40c0f5ff58 fix test 2022-04-14 05:59:47 +02:00
aceisace
c718d4831f fix tests for image module 2022-04-14 05:53:10 +02:00
aceisace
661aab45d4 minor fixes 2022-04-14 04:57:55 +02:00
Ace
606ea8e7e5
fix keyerror -> summary not in posts 2022-04-14 04:33:16 +02:00
Ace
1263b601fc
Merge pull request #203 from priv-kweihmann/agenda-locale-fix
agenda: print localized time for events
2022-04-14 04:09:54 +02:00
aceisace
f54de4387b #203 2022-04-14 04:08:38 +02:00
aceisace
5cd04bda04 Minor code improvements 2022-04-10 06:35:08 +02:00
aceisace
f452135b42 add tests for parallel displays 2022-04-10 04:24:42 +02:00
aceisace
f923321f24 use It8951 files 2022-04-10 02:48:40 +02:00
aceisace
1f7ef37da1 modify parallel epd run file 2022-04-10 02:27:44 +02:00
aceisace
5b032d6231 Improved formatting 2022-04-02 01:30:17 +02:00
Ace
7ec890b2ca
Merge pull request #160 from emilyboda/emilyboda-hotfix-fix_loading_from_ics_file
fix loading from ics file
2022-04-02 00:54:08 +02:00
Ace
b1f2a43413
Merge pull request #174 from sapostoluk/main
Weather Module: Windspeed rounding and formatting fix
2022-04-02 00:49:14 +02:00
aceisace
309687cb44 Allow usage without display and SPI when setting render->False
Generated images will be available in the images folder
Generate colour full-screen image when combining sub-images
2022-03-31 19:04:42 +02:00
aceisace
f10fe8a988 Allow usage without display and SPI when setting render->False
Generated images will be available in the images folder
2022-03-31 18:36:50 +02:00
Ace
b08a585424
Fix for deleted groups causing Exceptions
Deleted groups would previously cause the module to fail as the api would still show todos from groups that have been deleted, but not the name of the group.
Iterating over the groups caused a KeyError Exception. This commit does an additional check to see if the group really does exist or has been deleted.
2022-02-09 22:16:26 +01:00
Ace
b00212a9db
fix cursor out of range 2022-02-08 23:39:29 +01:00
Konrad Weihmann
74892968ee agenda: print localized time for events
in before these were always formatted with the default locale

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
2021-11-28 22:53:17 +01:00
wface
5a163a65a8 changed yfinance requirement to 0.1.62 2021-07-11 11:26:05 +02:00
wface
48204c0c55 inkycal_stocks module update
updates the inkycal_stocks module from 0.3 to 0.5
2021-07-08 17:20:27 +02:00
Ace
12cc7b0079
support for v2 display 2021-04-24 00:24:56 +02:00
sapostoluk
ad68387642 Fixed misplaced parentheses for rounding windspeed, abbreviated 'miles/h' to 'mph', and added space before wind units 2021-02-17 00:36:13 -05:00
sapostoluk
af1e7e05c1 Implemented wind speed rounding for non-beaufort units, as the round_windspeed option previously didn't actually round the windspeed 2021-02-16 23:56:53 -05:00
Ace
25ce92ad26
Fix for auto-expansion of events for 4 rows 2021-02-04 23:48:17 +01:00
Ace
287f7196f7
Fix for KeyError: 31
Added a second check for checking if key exists in the dictionary.
2021-02-02 23:52:52 +01:00
Ace
fcf7799e43 Hotfix for Todoist API module
The Todoist module would not update on each loop, but rather at each reboot. This commit fixes the problem by syncronising with the API on each refresh.
2021-02-01 19:17:07 +01:00
emilyboda
0bff15ca3b
fix loading from ics file 2021-01-19 13:02:44 -05:00
Ace
897ea0352a removed obsolete file 2020-12-07 11:36:14 +01:00
Ace
6e4060d0ae Switch to guided installation of driver
Do not rely or use setup_state.txt to determine if installation was successful, instead check existence of zip file.
Do not install the driver files automatically when initialising Driver class, instead, ask the user to enter two commands in the Terminal.

Removed setup function for 9.7", improved installer.
2020-12-07 11:36:01 +01:00
Ace
9d4810ce25 fix bad linebreaks from Windows 2020-12-07 10:57:08 +01:00
Ace
4ecb778812 Use zip files for drivers
Using zip files instead of unzipped folders to reduce size of repo.
Added demo image which is shown on successfull installs for the 9.7" E-Paper
2020-12-07 10:40:01 +01:00
Ace
2a84ee47e8
fixing issues with log file on readthedocs 2020-12-07 00:23:42 +01:00
Robert Sirre
32846ef1e7 Corrected typo 2020-12-06 23:26:17 +01:00
Ace
8a9e1cb30c
fix more typos 2020-12-06 17:14:45 +01:00
Ace
e24728df27
fixed typos 2020-12-06 00:01:23 +01:00
Ace
e6f70d150c added sample for inkycal_server 2020-12-05 00:26:55 +01:00
Ace
30e773a1ee formalities.. 2020-12-05 00:26:13 +01:00
Ace
10920bd610 minor improvements
Increased height for weekday names.
When there is more free space below the calendar, assign the empty space to the event section.
2020-12-05 00:25:48 +01:00
Ace
7b09d05a76 improved logging, code cleanup
Changed level for logs to info
2020-12-05 00:24:26 +01:00
Ace
8ea8f6cfa4 Improved image handling
The given image is now rotated by 90 deg when attempting to send it to the epaper. This function was initally in main, but has been shifted.
2020-12-05 00:23:09 +01:00
Ace
ebe60b303b formalities.. 2020-12-05 00:21:44 +01:00
Ace
19baf57c6c various improvements
Cleaned up code, improved logging,
fixed an issue where forecast time would show UTC time instead of local time, improved layout on dynamic heights. More evenly distributed rows, simplified some code, removed non-required validate function.
2020-12-05 00:20:40 +01:00
Ace
598d2b2614 code cleanups 2020-12-05 00:18:14 +01:00
Ace
9d3823876e Added merge function
Improved logging, switch from printing to logging
2020-12-05 00:17:59 +01:00
Ace
e3ca1628e1 reduced logging output for display 2020-12-05 00:16:57 +01:00
Ace
697401f612 Improved testing method
Added shebangs, logging messages are now shown.
Running on an Rpi allows previewing the generated images.
2020-12-05 00:16:07 +01:00
Ace
7ba83fd50f Added testing for weather and todoist modules 2020-12-05 00:14:07 +01:00
Ace
588a457304
fixed typo 2020-12-03 14:21:12 +01:00
Robert Sirre
15eae0d4ee Renamed programm to program 2020-12-02 10:41:03 +01:00
Ace
ded27dab9c
added seconds on logs, use default date format 2020-12-02 01:17:06 +01:00
Ace
42e66abf90 improved testing of ical parser 2020-12-02 01:01:53 +01:00
Ace
71d89d45d8 switched from optional to required parameter 2020-12-02 01:01:31 +01:00
Ace
5063117945 adapted module for custom image class 2020-12-02 01:01:00 +01:00
Ace
b6a64681a0 fixed html tags showing up on Feeds
Added test for RSS feed with html elements
2020-12-02 01:00:28 +01:00
Ace
5b8f7473d0 adapted tests 2020-12-02 00:59:00 +01:00
Ace
07fd9d9b57 fixed loading from file 2020-12-02 00:58:37 +01:00
Ace
f6de947096 added palette and dithering support in custom image class 2020-12-02 00:57:36 +01:00
Ace
355a151c61 added test for inkycal-main 2020-11-30 12:09:22 +01:00
Ace
008cf34455 simplified some config for tests 2020-11-30 12:08:56 +01:00
Ace
d9b569cc71 Fix non-render mode
improved printed messages
simplified some code
fixed printed time not updating correctly
removed non-required logging from PIL
2020-11-30 12:08:29 +01:00
Ace
a2e8ccea2d
fix logger is not defined 2020-11-30 08:59:21 +01:00
Ace
7cd78dcdd0
removed dummy test 2020-11-30 00:37:16 +01:00
Ace
1016aa2889 Adapted tests for Image and Slideshow module 2020-11-29 23:51:04 +01:00
Ace
b8ef99d07b Use language from config instead of system language
This fixes an issue where the weekday would be named according to the system language, but not the specified language in that module's settings.
2020-11-29 23:47:14 +01:00
Ace
031b3211ec added orientation option for slideshow 2020-11-29 23:45:48 +01:00
Ace
3d4e24eee1 Adapted Inkycal_image
By using a helper class, this module could be simplified greatly
2020-11-29 23:45:17 +01:00
Ace
6d2c289e76 Fixed loading iCalendars from filepath 2020-11-29 23:44:21 +01:00
Ace
301d239c3f fixed calibration on 9.7" E-Paper displays 2020-11-29 23:43:56 +01:00