Replies: 2 comments 1 reply
-
Just calling the script won't by itself actually suffice. How would the external script "know" how to render to the same ImageDraw object as the running kodi_panel script? You would have to arrange for some mechanism to transfer the image(s) generated from that program/script back to the Pillow object that kodi_panel ultimately renders. Once the flow of the program enters one of your callback functions (e.g., some 6 ways to call external command in python What exactly happens subsequently is the tricky part. (Also note that getting another program up and running definitely takes time.) As your example is a luma.example script, you could just leverage the code that is responsible for actually drawing the clock. That's effectively most of That code sits inside a The drawing functionality could certainly be wrapped inside a new callback function (defined in your startup script), getting the current time from a Kodi InfoLabel. |
Beta Was this translation helpful? Give feedback.
-
I confirm, it work, I also edited the title to mention anly analog clock In my fork, I have also tweaked the clock to make it bigger and add mark for each hours aa0e649 It will require a little more work to have great tunning, but I will do it after I received my lcd display, and post picture then. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is is possible to run external scripts in specific layout,
For example in my newly created screensaver layout, I would like to display an analog clock like this one from luma example:
https://github.com/rm-hull/luma.examples/blob/master/examples/clock.py
How could I implement that? (callback function that just call the script?)
Beta Was this translation helpful? Give feedback.
All reactions