diff --git a/sh/rc.local b/sh/rc.local new file mode 100644 index 0000000..ac49a08 --- /dev/null +++ b/sh/rc.local @@ -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 diff --git a/ui2/backend/index.js b/ui2/backend/index.js index d92b7b9..7c0a45e 100644 --- a/ui2/backend/index.js +++ b/ui2/backend/index.js @@ -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" }; diff --git a/ui2/frontend/src/components/MaintainPage/MaintainPage.js b/ui2/frontend/src/components/MaintainPage/MaintainPage.js index 14f7142..a101797 100644 --- a/ui2/frontend/src/components/MaintainPage/MaintainPage.js +++ b/ui2/frontend/src/components/MaintainPage/MaintainPage.js @@ -14,7 +14,7 @@ const styles = (theme) => ({ flexGrow: 1, }, box: { - height: "100vh", + height: "90vh", display: "flex", // flexDirection: "column", justifyContent: "center",