Commit Graph

277 Commits

Author SHA1 Message Date
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
Ace
9216afbea8 improved logging + log to file
Logging is now set at two levels:
logging.ERROR and more important messages are shown on the console while running inkcal.
logging.DEBUG (all) messages are logged inside a log file named inkycal.log in /Inkycal/logs.

Fixed an issue with the info section not updating the time correctly.
2020-11-29 14:56:44 +01:00
Ace
eb806526bd Added custom image class 2020-11-29 14:54:00 +01:00
Ace
8a82a149af removed a problematic line 2020-11-29 14:53:13 +01:00
Ace
dc536ff63a Added Slideshow module
A module that cycles through images in a given folder
2020-11-29 14:52:50 +01:00
Ace
636172f157 readability improvements
switched from string formatting to f-strings
removed some non-required validation
Standardised some logging outputs
better formatting of config inside tests
2020-11-29 14:51:19 +01:00
Ace
bcc512d1cc Fixing some issues with 9.7" E-Paper displays
test() saves assembled images now.
If the 9.7" E-Paper is selected, the images are now flipped correctly.
2020-11-25 14:24:29 +01:00
Ace
578f48d24d added official suppport for inkycal_stocks.py (by @worstface) 2020-11-25 10:22:34 +01:00
Robert Sirre
586be7f5d0 Added configuration options 2020-11-24 22:07:49 +01:00
Robert Sirre
650e9bdb92 Debugged inkycal_image
Still needs some work:
- input parameter validation (rotation, layout, colours)
- configuration of panel colors in Web UI

Added suggestion for less dynamic calling of module.generate_image()
2020-11-24 22:07:49 +01:00
Ace
57cc49be21 added functions to add/remove third party modules
Documentation can be found on readthedocs
2020-11-24 15:32:11 +01:00
Ace
159c2d2642 Fix for weather-location by id 2020-11-24 15:20:56 +01:00
Ace
418422fa52 Improved documentation 2020-11-24 00:40:49 +01:00
Ace
0acd5c5c17 adapted 3rd party module template 2020-11-24 00:40:07 +01:00
Ace
7e44b7d824 Fixed some sizes in tests 2020-11-24 00:39:23 +01:00
Ace
9cd2f1c5cd
fixing docs... 2020-11-23 12:48:51 +01:00
Ace
948573cb59 Fixed #141 list index out of range
If the number of events exceeded the number of lines allocated for events, a *list index out of range* exception was thrown. This has been fixed now  by providing an additional check.
2020-11-22 13:27:27 +01:00
Ace
9517b303b4
Fixed a few things, should be usable now 2020-11-21 23:48:42 +01:00
Ace
49b0d7cc65 Adapted main file to support new web-ui
A lot of work behind the scenes. Logging is now handled by main file now. Improved logging, support for logging from modules, improved support for info section, added support for info section height, slight improvements in printing output
2020-11-21 16:31:00 +01:00
Ace
e93c3e36ad improved logging 2020-11-21 16:25:08 +01:00
Ace
44524425be Code cleanup + removing obsolete files 2020-11-21 16:24:49 +01:00
Ace
21caad2f37 Added test for Jokes Module 2020-11-21 16:22:59 +01:00
Ace
afe84dc8e6 Improved web-ui labels, improved logging, improved support for testing
Switched from NotoSans-SemiCondensed to NotoSansUI-Regular
2020-11-21 16:22:15 +01:00
Ace
077392c2f9 Official support for Image and Jokes module 2020-11-21 16:19:24 +01:00
Ace
8190325cb7 Added official support for Inkycal-Todoist API module #126
Fixed some bugs, improved alignment of project name, due date and description of todo.
Project names are shown in colour on 3-colour displays
Images are rendered correctly.
2020-11-13 16:47:07 +01:00
Ace
9aea1f568c switch from logging to logger 2020-11-13 16:43:37 +01:00
Ace
8db419fa37 Added support for Icanhazdad api module #103
Special thanks to Erik Fredericks for his work on this module (see Pull-request #103)
2020-11-13 10:17:39 +01:00
Ace
0dfd78d33d Minor improvements 2020-11-13 10:14:30 +01:00
Ace
517f1ac5b1 Inital template for Inkycal-Server module 2020-11-12 21:22:22 +01:00
Ace
9de2b90955 Improved fetching of Todos (WIP) 2020-11-12 21:21:49 +01:00
Ace
6fdc8e63c7 adding support for Image module 2020-11-12 21:20:48 +01:00
Ace
b471a18afd Code cleanup 2020-11-12 21:20:12 +01:00
Ace
1bd404af97 Code cleanup 2020-11-12 21:19:51 +01:00
Ace
ea51185173 pyowm improvements #137
- Bump pyowm from 2.10.0 to 3.1.1 (latest)
- updated Weather module to support new pyowm version
- removed ad-hoc logic for beaufort scale (supported by pyowm now)
- Added support for location ID and location string (see #137)
2020-11-12 10:22:34 +01:00
Ace
e866a04e0e Improved testing algorithm
Generalized code logic for testing. Added support for several test configs at once.
2020-11-12 10:14:57 +01:00
Ace
c358cf5b3b Improved code logic for better support with web-ui
Fixed some minor bugs too
2020-11-12 10:12:28 +01:00
Ace
baf89c0d80 Revert "Improved some code logic to better support new web-ui"
This reverts commit 5327d12f0e.
2020-11-12 10:10:18 +01:00
Ace
5327d12f0e Improved some code logic to better support new web-ui 2020-11-12 10:10:03 +01:00
Ace
2a2ad18a03 Fix bugs #138 #139 2020-11-11 11:08:31 +01:00
Ace
b1c06b3add Code cleanup, adapting modules for new web-ui 2020-11-10 22:48:04 +01:00
Ace
035ce65f06 Adapting modules for new web-ui (do not use yet) 2020-11-10 11:53:48 +01:00
Ace
29788f0313 Initial commit for release v2.0.0
A  lot of work-in-progress and far from complete.
Lots of improvements related to user-friendliness, fully new web-UI. Better infrastructure....
more coming soon
2020-11-09 17:51:15 +01:00
Ace
b6c2534644 fix for 9.7" epaper display
This commit should fix any previous issues with the 9.7" epaper displays not showing the image correctly
2020-10-09 11:25:11 +02:00
Robert Sirre
6282cf4488 Ensured parameter validation failure named failing parameter 2020-09-19 22:50:57 +02:00
Ace
9d401cf07a
possible bugfix
UnboundLocalError: local variable 'line_pos' referenced before assignment
2020-09-12 01:04:42 +02:00
Ace
accf8fbd59 Added support for 7.5" v3 ePaper displays 2020-08-31 15:23:02 +02:00
Vitali Samurov
3f727ecf08 Number of days in month added 2020-08-17 22:58:01 +03:00
Vitali Samurov
ef07e51371 Fix for 7 rows in Calendar, when the month starts from Sat 2020-08-17 21:54:53 +03:00
Ace
db83890238 improved circle and square sizes 2020-07-04 16:22:31 +02:00
Ace
f4e8c27768 Fixed path location 2020-07-04 16:21:33 +02:00
Ace
7b029f532e Added option for info-section
When info-section is set in the web-ui, a small section at the bottom of the display will show the time of last update.
2020-07-04 16:21:15 +02:00
Ace
9b14a0bec0 Added handling of third party modules
Third party modules need to be registered into inkycal before they can be used. For this, the function _add_module (and _remove_module) have been added.
These functions make the necessary changes to the init file in /inkycal and /inkycal/modules.
2020-06-22 15:52:42 +02:00
Ace
0720fd173b fix tests 2020-06-19 20:16:27 +02:00
Ace
8e09731c13 Use common config instead of hardcoded config
units, hour_format and language will be automatically set for each module
2020-06-19 19:40:50 +02:00
Ace
74622a2c21 minor improvement 2020-06-19 19:39:28 +02:00
Ace
dbdfb216c0 Added common settings for each module's config
It's now possible to get language, units and hours though each module's config.
2020-06-19 19:39:02 +02:00
Ace
60b474f275 Added support for sheduled calibration 2020-06-18 16:24:27 +02:00
Ace
2693eb64b9 Adding support for 9.7"" ePaper display 2020-06-18 16:21:53 +02:00
Ace
8e27116f3a Added drivers for 9.7" ePaper display 2020-06-18 16:21:26 +02:00
Ace
883f9d3842 fixed typo 2020-06-16 22:37:08 +02:00
Ace
29381d733c Finished draft of inkycal_image module
In testing, might contain bugs!
Split server settings from inkycal image.
Inkycal_server will be done soon
2020-06-16 22:36:57 +02:00
Ace
cb162a5b1e Fixed an issue with timezones for all days events
Fix an issue where all day events would not be shifted by the UTC offset
Credit to emilyboda
2020-06-14 22:58:27 +02:00
Ace
f8834c4c21 Improved layout setup
It is now possible to use one, two or three modules and use the height defined by the settings file
2020-06-13 16:14:49 +02:00
Ace
90ec1a177d fixed possible rotation issues
The image will only be rotated while rendering on the Display, i.e. when render  = True.
Images saved in /Inkycal/images will not be affected by this change to allow developers to see the image wihtout having to flip the images manually
2020-06-13 15:15:56 +02:00
Ace
a66e28ded7 Implemented fontisze changing 2020-06-13 15:13:53 +02:00
Ace
13e211f8c3 added extra info for own modules 2020-06-13 15:13:13 +02:00
Ace
c94a2ff122 removed non-required epaper commands while initalising 2020-06-12 23:18:59 +02:00
Ace
2dc70f590d Fixed offset issues on generated image 2020-06-12 23:15:36 +02:00
Ace
ca36269380 implemented display orientation option 2020-06-12 18:16:19 +02:00
Ace
f0ab9e4558 initial template for todoist api module
Work in progress, please do not use yet.
2020-06-12 18:13:14 +02:00
Ace
85dc6871a0 Bugfixes + speed improvements
Fixed issue with duplicate events
Switched from list comprehensions to generator expressions for better performance
Problems:
Date sorting not working as expected
2020-06-12 18:12:14 +02:00
Ace
c0e2431e76 Fixed incorrect display resolution 2020-06-12 18:07:54 +02:00
Ace
632214e0f0 Fixed some tests, added a few more 2020-06-10 15:12:44 +02:00
Ace
03a184775c Fix for issue #122 2020-06-07 15:57:38 +02:00
Ace
e01728bcd8 Fix for issue #123 2020-06-07 15:57:01 +02:00
Robert Sirre
065c04243d Implemented jsonc parsing
Note: jsmin installation need to be done manually via `pip3 install jsmin`
2020-06-04 23:57:31 +02:00
Ace
f8a0622e86 Fixed Error
Fixed: " AttributeError: 'Agenda' object has no attribute 'parser' "
2020-06-04 00:55:44 +02:00
Ace
37dbb1b127
fixed "NameError: name 'config' is not defined' 2020-06-03 15:48:30 +02:00
Ace
5fe72e2265 Minor improvements 2020-05-30 00:48:33 +02:00
Ace
3b3c42cec7 minor improvements 2020-05-30 00:48:12 +02:00
Ace
39e8da6388 Add support for display orientation 2020-05-30 00:47:32 +02:00
Ace
c47d06d019 fix typo 2020-05-30 00:47:14 +02:00
Ace
5b0fdde7dd Code cleanup 2020-05-30 00:46:52 +02:00
Ace
ebe284072d Use timezone for parsing events 2020-05-30 00:45:53 +02:00