Skip to content
Snippets Groups Projects
Commit 3d380c23 authored by 42loop's avatar 42loop
Browse files

fixed crontab issue,

modified style,
fixed pngview issue loosing tvservice on hdmi off
parent b1e5ea18
No related branches found
No related tags found
No related merge requests found
directories:
/home/pi/uploads for all uploads
/home/pi/thumbnails for generated thumbnails
/home/pi/video for 'the' video
/home/pi/image for 'the' image
launch with
./hbue.py --credentials 'user:password' --folder /home/pi/uploads/
expects crontab entries similar to this:
00 13 * * 1,3,4,5 /home/pi/hdmi_on.sh # hdmi_on
00 14 * * 1,3,4,5 /home/pi/hdmi_off.sh # hdmi_off
a:link {
color: black;
}
/* visited link */
a:visited {
color: black;
}
.weekday {
cursor: pointer;
font-style: bold;
......@@ -7,6 +16,9 @@
padding:10px;
height:20px;
width:42px;
border-style: solid;
border-radius: 5px;
}
.mbutton {
......@@ -25,9 +37,11 @@
.selectmedia {
cursor: pointer;
min-height: 20px;
border: 2px solid rgba(255, 0, 0, 0.3);
background: darkgray;
padding: 5px 5px;
border-style: solid;
border-radius: 5px;
}
......@@ -39,6 +53,8 @@
text-indent:-99999em;
width:80px; /* your image width */
vertical-align: middle;
border-style: solid;
border-radius: 5px;
}
......@@ -50,6 +66,9 @@
text-indent:-99999em;
width:80px; /* your image width */
vertical-align: middle;
border-style: solid;
border-radius: 5px;
}
.selected {
......@@ -60,6 +79,8 @@
text-indent:-99999em;
width:80px; /* your image width */
vertical-align: middle;
border-style: solid;
border-radius: 5px;
}
img {height:80px;display:inline-block;vertical-align: middle}
......
......@@ -238,16 +238,16 @@ class MyHandler(http.server.BaseHTTPRequestHandler):
print(param)
if param=="on":
print("hdmi on")
os.system("/usr/bin/tvservice -p")
os.system("/home/pi/hdmi_on.sh")
#pngview output is missing after hdmi off/on, restore previous
os.system("pkill -f pngview")
time.sleep(.2)
current=os.listdir("/home/pi/image/")[0]
os.system("/home/pi/raspidmx/pngview/pngview -l 10 "+"/home/pi/image/"+current+" &")
#os.system("pkill -f pngview")
#time.sleep(.2)
#current=os.listdir("/home/pi/image/")[0]
#os.system("/home/pi/raspidmx/pngview/pngview -l 10 "+"/home/pi/image/"+current+" &")
if param=="off":
print("hdmi off")
os.system("/usr/bin/tvservice -o")
os.system("/home/pi/hdmi_off.sh")
self.send_response(200)
self.send_header('Content-type','text/plain; charset=UTF-8')
......
#!/bin/sh
/usr/bin/pkill -f pngview
/usr/bin/tvservice -o
#!/bin/sh
/usr/bin/tvservice -p
/home/pi/raspidmx/pngview/pngview /home/pi/image/* &
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment