trying to get plugin to run a bash script #554
Unanswered
RudyRipDraw
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like the countdown plugin to run a bash script at the end. I added these to lines to countdown.py source code but it is not working.
Can anybody help me figure out how to get my shell script "doit.sh" to run within InkyPI countdown plugin?
thanks
from plugins.base_plugin.base_plugin import BasePlugin
from PIL import Image
from datetime import datetime, timezone
import logging
import pytz
import subprocess
::
image = self.render_image(dimensions, "countdown.html", "countdown.css", template_params)
subprocess.run(["/bin/bash", "/home/rudy/doit.sh",shell=True])
return image
Beta Was this translation helpful? Give feedback.
All reactions