Comments (8)
Hi there Martin,
thank you very much for reporting this issue. This will require a hot-fix and I'll get started right away. Thank you also for writing up what went wrong and for the traceback. It helps a lot with debugging!
from inkycal.
@Zer0great I've got a fix ready for this and would like you test it before I attempt to merge it.
Please run the following commands, line by line in a Terminal:
cd ~/Inkycal
source venv/bin/activate
git pull
git checkout hotfix/#357
python inky_run.py
That should fix the issue and it does work on my end. However, as you are using a parallel display and I currently don't have access to one, I'm relying on your help to test this out.
from inkycal.
Hello @aceisace ,
I am trying the hotfix just now. I did reinstall if Inkycal before, to start with clean slate.
It is better, the first errors are not present.
- Running it straight away gives the error with display driver (this was point 3 in original post)
sudo: /home/berry/Inkycal/inkycal/inkycal/display/drivers/parallel_drivers/epd: command not found
as there is one /inkycal too many in the path
full run log:
05-07-2024 09:21:07 | inkycal.main | INFO: Inkycal v2.0.4 booting up...
05-07-2024 09:21:07 | inkycal.main | INFO: Checking if a settings file is present...
05-07-2024 09:21:07 | inkycal.main | INFO: Looking for settings.json file in /boot folder...
05-07-2024 09:21:07 | inkycal.custom.openweathermap_wrapper | INFO: OWM wrapper initialized for API version 2.5, language cs and timezone Europe/Prague.
05-07-2024 09:21:07 | inkycal.main | INFO: name : Weather size : 1404x300 px
05-07-2024 09:21:07 | inkycal.main | INFO: name : Calendar size : 1404x950 px
05-07-2024 09:21:07 | inkycal.main | INFO: name : Slideshow size : 1404x622 px
05-07-2024 09:21:07 | inkycal.main | INFO: Inkycal initialised successfully!
05-07-2024 09:21:07 | inkycal.main | INFO: Inkycal version: v2.0.4
05-07-2024 09:21:07 | inkycal.main | INFO: Selected E-paper display: 10_in_3
05-07-2024 09:21:07 | inkycal.main | INFO: Starting new cycle...
05-07-2024 09:21:07 | inkycal.main | INFO: Timestamp: 09:21:07 05.07.2024
05-07-2024 09:21:07 | inkycal.custom.openweathermap_wrapper | INFO: OpenWeatherMap response did not contain a wind gust speed. Using base wind: 6.69 m/s.
05-07-2024 09:21:12 | inkycal.modules.ical_parser | INFO: loaded iCalendars from URLs
slideshow - current image name: DSC03619B.jpg
05-07-2024 09:21:12 | inkycal.modules.inky_image | INFO: loading image from local path
05-07-2024 09:21:13 | inkycal.modules.inky_image | INFO: loaded Image
05-07-2024 09:21:14 | inkycal.modules.inky_image | INFO: resized image from 5860 to 1404
05-07-2024 09:21:14 | inkycal.modules.inky_image | INFO: resized image from 935 to 622
05-07-2024 09:21:14 | inkycal.modules.inky_image | INFO: mapped image to specified palette
05-07-2024 09:21:14 | inkycal.modules.inky_image | INFO: cleared previous image
05-07-2024 09:21:14 | inkycal.main | INFO: All images generated successfully!
05-07-2024 09:21:16 | inkycal.main | INFO: Attempting to render image on display...
05-07-2024 09:21:16 | inkycal.modules.inky_image | INFO: merged given images into one
Initialising..Updating display......sudo /home/berry/Inkycal/inkycal/inkycal/display/drivers/parallel_drivers/epd -2.0 0 /home/berry/Inkycal/inkycal/../image_foldercanvas.bmp
sudo: /home/berry/Inkycal/inkycal/inkycal/display/drivers/parallel_drivers/epd: command not found
Done
Sending E-Paper to deep sleep...Done
05-07-2024 09:21:16 | inkycal.main | INFO:
No errors since 1 display updates
05-07-2024 09:21:16 | inkycal.main | INFO: program started just now
39 minutes left until next refresh
- So I try to duplicate the folder so the path is correct:
/home/berry/Inkycal/inkycal/display/
to
/home/berry/Inkycal/inkycal/inkycal/display/
This seemingly runs Inkycal with no problem, the display blinks few times, but remains blank. I think the problem is there is no file "image_foldercanvas.bmp" present in Inkycal folder and subfolders.
I have:
/home/berry/Inkycal/image_folder/canvas.bmp
/home/berry/Inkycal/image_folder/canvas.png
/home/berry/Inkycal/image_folder/canvas_colour.png
/home/berry/Inkycal/image_foldercanvas_colour.png
/home/berry/Inkycal/image_foldercanvas.png
But no image_foldercanvas.bmp
run log
(venv) berry@inkycal:~/Inkycal $ python inky_run.py
05-07-2024 09:27:37 | inkycal.main | INFO: Inkycal v2.0.4 booting up...
05-07-2024 09:27:37 | inkycal.main | INFO: Checking if a settings file is present...
05-07-2024 09:27:37 | inkycal.main | INFO: Looking for settings.json file in /boot folder...
05-07-2024 09:27:37 | inkycal.custom.openweathermap_wrapper | INFO: OWM wrapper initialized for API version 2.5, language cs and timezone Europe/Prague.
05-07-2024 09:27:37 | inkycal.main | INFO: name : Weather size : 1404x300 px
05-07-2024 09:27:37 | inkycal.main | INFO: name : Calendar size : 1404x950 px
05-07-2024 09:27:37 | inkycal.main | INFO: name : Slideshow size : 1404x622 px
05-07-2024 09:27:37 | inkycal.main | INFO: Inkycal initialised successfully!
05-07-2024 09:27:37 | inkycal.main | INFO: Inkycal version: v2.0.4
05-07-2024 09:27:37 | inkycal.main | INFO: Selected E-paper display: 10_in_3
05-07-2024 09:27:37 | inkycal.main | INFO: Starting new cycle...
05-07-2024 09:27:37 | inkycal.main | INFO: Timestamp: 09:27:37 05.07.2024
05-07-2024 09:27:38 | inkycal.custom.openweathermap_wrapper | INFO: OpenWeatherMap response did not contain a wind gust speed. Using base wind: 6.69 m/s.
05-07-2024 09:27:43 | inkycal.modules.ical_parser | INFO: loaded iCalendars from URLs
slideshow - current image name: DSC03619B.jpg
05-07-2024 09:27:44 | inkycal.modules.inky_image | INFO: loading image from local path
05-07-2024 09:27:44 | inkycal.modules.inky_image | INFO: loaded Image
05-07-2024 09:27:45 | inkycal.modules.inky_image | INFO: resized image from 5860 to 1404
05-07-2024 09:27:45 | inkycal.modules.inky_image | INFO: resized image from 935 to 622
05-07-2024 09:27:45 | inkycal.modules.inky_image | INFO: mapped image to specified palette
05-07-2024 09:27:45 | inkycal.modules.inky_image | INFO: cleared previous image
05-07-2024 09:27:45 | inkycal.main | INFO: All images generated successfully!
05-07-2024 09:27:47 | inkycal.main | INFO: Attempting to render image on display...
05-07-2024 09:27:47 | inkycal.modules.inky_image | INFO: merged given images into one
Initialising..Updating display......sudo /home/berry/Inkycal/inkycal/inkycal/display/drivers/parallel_drivers/epd -2.0 0 /home/berry/Inkycal/inkycal/../image_foldercanvas.bmp
/***********************************/
bcm2835 init success !!!
/***********************************/
VCOM value:2000
Display mode:0
Panel(W,H) = (1872,1404)
Memory Address = 119F00
FW Version = SWv_0.1.
LUT Version = M841_TFA5210
VCOM = -2.00V
A2 Mode:6
Set image Rotate 0
mirror image x:none, y:none
Loading image from file
Set image Rotate 0
mirror image x:none, y:none
Done
Sending E-Paper to deep sleep...Done
05-07-2024 09:28:16 | inkycal.main | INFO:
No errors since 2 display updates
05-07-2024 09:28:16 | inkycal.main | INFO: program started 39 seconds ago
32 minutes left until next refresh
- So last thing I tried was running manually the command to display the file "canvas.bmp", this successfully displayed today's image. So it does gets rendered, but the paths are wrong.
sudo /home/berry/Inkycal/inkycal/inkycal/display/drivers/parallel_drivers/epd -2.0 0 /home/berry/Inkycal/image_folder/canvas.bmp
All in all I see two relatively simple problems now:
-wrong path to the display driver somewhere
is $HOME/Inkycal/inkycal/inkycal/display/drivers/parallel_drivers/epd
should be $HOME/Inkycal/inkycal/display/drivers/parallel_drivers/epd
-wrong final file name and path being generated or used in script or missing some step to copy or rename the file.
Inkycal is expecting the file to be $HOME/Inkycal/inkycal/../image_foldercanvas.bmp
- such file does not exist
When in reality the file is in $HOME/Inkycal/image_folder/canvas.bmp
- this can be used to get the desired display output
Thank you
Regards
Martin
from inkycal.
Thanks for testing and for the detailed report @Zer0great . I've just pushed the change that should fix this too.
I was trying to remove hardcoded variables in the settings.py
file, it seems some things were not working correctly for the parallel displays.
Please run the following and let me know if it works now:
cd ~/Inkycal
source venv/bin/activate
git pull
# I'm assuming you're still on the hotfix/#357 branch
python inky_run.py
from inkycal.
We are getting there, @aceisace , looks like just one final step remains :-)
This time no problem with display driver location, the script is running it from correct location.
Initialising..Updating display......sudo /home/berry/Inkycal/inkycal/display/drivers/parallel_drivers/epd -2.0 0 /home/berry/Inkycal/inkycal/../image_foldercanvas.bmp
However there is still problem with the BMP file location.
The script is searching for file
/home/berry/Inkycal/inkycal/../image_foldercanvas.bmp
but such file does not exist, so it produces just blank display.
I think the correct path is
$HOME/Inkycal/image_folder/canvas.bmp
as this file exists and I can verify by its time stamp, it is generated during Inkycal run.
Manually running this command renders the picture on display correctly for me:
sudo /home/berry/Inkycal/inkycal/display/drivers/parallel_drivers/epd -2.0 0 /home/berry/Inkycal/inkycal/../image_folder/canvas.bmp
Regards
Martin
from inkycal.
Thanks for testing, just pushed that fix too:
cd ~/Inkycal
source venv/bin/activate
git pull
# Still assuming you're on the hotfix/#357 branch
python inky_run.py
from inkycal.
Tried it just now and looks like all problems are fixed and Inkycal runs again, as it should.
Did not notice any other/new problems after the hotfix.
Thank you
Martin
from inkycal.
Glad to hear that and happy to help! Thank you very much for your quick and detailed testing too Martin!
I'll have this merged into main so it will be official very soon
from inkycal.
Related Issues (20)
- [FEATURE]: Webshot module - implement rotation HOT 1
- Translations are not 100% HOT 3
- [BUG]: multi-day-events don't span across several days HOT 1
- [BUG]: Web-ui does not add more than one module HOT 1
- [Question]: Inkycal and high CPU-usage HOT 3
- [BUG]: ImportError: libopenjp2.so (Related to Bookworm or Python3.11 ?) HOT 9
- [BUG]: Agenda -> dynamic date-width
- [Bug]: Weather windspeed not respecting set value HOT 3
- [FEATURE]: xy-position for each module HOT 1
- [INQUIRY]: Dependency marked as 'yanked' HOT 1
- [FEATURE]: image module -> allow max width in percent
- [FEATURE]: Add dithering option in webshot module
- [FEATURE]: ReCaptcha invalid response handling
- [FEATURE]: fixed updates-times
- [FEATURE]: Shell-usage
- [FEATURE]: Add support for 13.3" (960×680px) display
- [Question]: Backward-compatibility with Buster HOT 6
- [FEATURE]: Weather-module - add max. temperature for today
- [BUG]: Waveshare 13,3" driver issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inkycal.