Skip to content

Commit

Permalink
solve issue 20200517001
Browse files Browse the repository at this point in the history
  • Loading branch information
guesswho461 committed Jun 9, 2020
1 parent fa4b147 commit c807de7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
24 changes: 24 additions & 0 deletions sh/rc.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi

DISPLAY=:0.0 xset s off
DISPLAY=:0.0 xset -dpms
DISPLAY=:0.0 xset s noblank

exit 0
4 changes: 2 additions & 2 deletions ui2/backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ app.get(
secret: process.env.CAKE_ACCESS_TOKEN_SECRET,
}),
(req, res) => {
const root = "C:\\codes\\cakeVending\\ui2\\frontend\\public\\video";
// const root = "/home/pi/ad";
// const root = "C:\\codes\\cakeVending\\ui2\\frontend\\public\\video";
const root = "/home/pi/ui2/frontend/build/video";
let ret = fs.readdirSync(root).map(function (file, index, array) {
// return { src: root + "/" + file, type: "video/mp4" };
// return { src: ".\\video\\" + file, type: "video/mp4" };
Expand Down
2 changes: 1 addition & 1 deletion ui2/frontend/src/components/MaintainPage/MaintainPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const styles = (theme) => ({
flexGrow: 1,
},
box: {
height: "100vh",
height: "90vh",
display: "flex",
// flexDirection: "column",
justifyContent: "center",
Expand Down

0 comments on commit c807de7

Please sign in to comment.