Explorar el Código

Merge branch 'master' of https://tree.clementinecomputing.com/clementinecomputing/popufare

clementinecomputing hace 6 años
padre
commit
3a945e13e6

+ 56 - 242
busunit/DIUv2/html/css/diustyles.css

@@ -99,37 +99,6 @@ p:focus {
 
 /***********/
 
-/* 
-   A horrible hack but there's no way to turn
-   off text highlighting in a text area.
-   Instead, make the highlight color the same as the
-   background and font color.
-   I still see artifacts but they're much subtler then
-   the default text highlighting.
-*/
-/*
-::selection {
-  background-color: rgb(255,255,255,1);
-  color: #444444;
-}
-::-moz-selection {
-  background-color: rgb(255,255,255,1);
-  color: #444444;
-}
-::-o-selection {
-  background-color: rgb(255,255,255,1);
-  color: #444444;
-}
-::-ms-selection {
-  background-color: rgb(255,255,255,1);
-  color: #444444;
-}
-::-webkit-selection {
-  background-color: rgb(255,255,255,1);
-  color: #444444;
-}
-*/
-
 .bkeyFull {
   width: 96vw;
   height:96vh;
@@ -137,78 +106,24 @@ p:focus {
 
 /* small size */
 
+/*
 @media only screen and (max-width: 640px) {
-  body {
-    letter-spacing: 0.125em;
-  }
-
+  body { letter-spacing: 0.125em; }
   .row { height: 80px; }
   .col { width: 80px; }
-
-  .bdisp {
-    font-size: 20px;
-    margin-top: 15px;
-    margin-right: 15px;
-  }
-
-  .bstatus {
-    font-size: 20px;
-    border: solid 2px #888888;
-    box-shadow: 3px 3px 0px #aaaaaa;
-  }
-
-  .bstatus {
-    font-size: 20px;
-    border: solid 2px #888888;
-    box-shadow: 3px 3px 0px #aaaaaa;
-  }
-
-  .bdrop {
-    font-size: 19px;
-    border: solid 2px #888888;
-    box-shadow: 3px 3px 0px #aaaaaa;
-  }
-
-  .bdropinp {
-    font-size: 22px;
-    border: solid 2px #888888;
-    box-shadow: 3px 3px 0px #aaaaaa;
-  }
-
-  .bkey {
-    width: 75px;
-    height:75px;
-  }
-
-  .bkeyNarrow {
-    width: 75px;
-    height:75px;
-  }
-
-
-  .bkeyw {
-    width: 150px;
-    height:58px;
-  }
-
-  .bkeym {
-    width: 100px;
-    height:58px;
-  }
-
-  .bkeyHuge {
-    width: 300px;
-    height:300px;
-  }
-
-
-  .bfieldinp {
-    width: 150px;
-    height: 58px;
-  }
-
-
+  .bdisp { font-size: 20px; margin-top: 15px; margin-right: 15px; } 
+  .bstatus { font-size: 20px; border: solid 2px #888888; box-shadow: 3px 3px 0px #aaaaaa; }
+  .bstatus { font-size: 20px; border: solid 2px #888888; box-shadow: 3px 3px 0px #aaaaaa; }
+  .bdrop { font-size: 19px; border: solid 2px #888888; box-shadow: 3px 3px 0px #aaaaaa; }
+  .bdropinp { font-size: 22px; border: solid 2px #888888; box-shadow: 3px 3px 0px #aaaaaa; }
+  .bkey { width: 75px; height:75px; }
+  .bkeyNarrow { width: 75px; height:75px; }
+  .bkeyw { width: 150px; height:58px; }
+  .bkeym { width: 100px; height:58px; }
+  .bkeyHuge { width: 300px; height:300px; }
+  .bfieldinp { width: 150px; height: 58px; }
 }
+*/
 
 /* LARGE SIZE */
 
@@ -216,85 +131,47 @@ p:focus {
 .row5 { height: 15vh; }
 
 
-@media only screen and (min-width: 640px) {
-  body {
-    letter-spacing: 0.25em;
-  }
+/* @media only screen and (min-width: 640px) { */
+  body { letter-spacing: 0.25em; }
 
   .row { height: 160px; }
   .col { width: 160px; }
 
+
+  /*
+  .row { height: 20vh; }
+  .col { width: 20vw; }
+  */
+
   .bdisp {
     font-size: 7vh;
     margin-top: 5vh;
     margin-right: 1vw;
   }
 
-  .bstatus {
-    font-size: 40px;
-    border: solid 4px #888888;
-    box-shadow: 6px 6px 0px #aaaaaa;
-  }
-
-  .bstatus {
-    font-size: 40px;
-    border: solid 4px #888888;
-    box-shadow: 6px 6px 0px #aaaaaa;
-  }
-
-  .bdrop {
-    font-size: 7vh;
-    border: solid 4px #888888;
-    box-shadow: 6px 6px 0px #aaaaaa;
-  }
-
-  .bdropinp {
-    font-size: 7vh;
-    border: solid 4px #888888;
-    box-shadow: 6px 6px 0px #aaaaaa;
-  }
-
-  .bkey {
-    width: 20vh;
-    height:20vh;
-  }
-
-  .bkeyFull {
-    width: 96vw;
-    height:96vh;
-  }
-
-  .bkeyNarrow {
-    width: 10vw;
-    height:40vh;
-  }
-
-
-  .bkeyw {
-    width: 25vw;
-    height:17vh;
-  }
-
-  .bkeym {
-    width: 20vw;
-    height:17vh;
-  }
-
-  .bkeyHuge {
-    width: 80vw;
-    height:80vh;
-  }
+  /*
+  .bstatus { font-size: 40px; border: solid 4px #888888; box-shadow: 6px 6px 0px #aaaaaa; }
+  .bstatus { font-size: 40px; border: solid 4px #888888; box-shadow: 6px 6px 0px #aaaaaa; }
+  .bdrop { font-size: 7vh; border: solid 4px #888888; box-shadow: 6px 6px 0px #aaaaaa; }
+  .bdropinp { font-size: 7vh; border: solid 4px #888888; box-shadow: 6px 6px 0px #aaaaaa; }
+  */
 
-  .bfieldinp {
-    width: 20vw;
-    height: 20vh;
-  }
+  .bstatus  { font-size: 7vh; border: solid .3vw #888888; box-shadow: .5vw .5vw 0px #aaaaaa; }
+  .bstatus  { font-size: 7vh; border: solid .3vw #888888; box-shadow: .5vw .5vw 0px #aaaaaa; }
+  .bdrop    { font-size: 7vh; border: solid .3vw #888888; box-shadow: .5vw .5vw 0px #aaaaaa; }
+  .bdropinp { font-size: 7vh; border: solid .3vw #888888; box-shadow: .5vw .5vw 0px #aaaaaa; }
 
-}
+  .bkey       { width: 20vh; height: 20vh; }
+  .bkeyFull   { width: 96vw; height: 96vh; }
+  .bkeyNarrow { width: 10vw; height: 40vh; }
+  .bkeyw      { width: 25vw; height: 17vh; }
+  .bkeym      { width: 20vw; height: 17vh; }
+  .bkeyHuge   { width: 80vw; height: 80vh; }
+  .bfieldinp  { width: 20vw; height: 20vh; }
 
-.bdisp:focus {
-  outline:0;
+/*
 }
+*/
 
 .bdisp {
   font-weight: bold;
@@ -304,34 +181,26 @@ p:focus {
   background: none;
   border: none;
 }
-
+.bdisp:focus { outline:0; }
 
 .bmsg {
   font-weight: bold;
   color: #444444;
   background: #ADD8E6;
 }
-
-.bmsg:focus {
-  outline:0;
-}
+.bmsg:focus { outline:0; }
 
 .bstatus {
   font-weight: bold;
   color: #444444;
 }
-
-.bstatus:focus {
-  outline:0;
-}
-
+.bstatus:focus { outline:0; }
 
 .bdrop {
   font-weight: bold;
   color: #444444;
   background: none;
 }
-
 .bdrop:focus {
   outline:0;
 }
@@ -347,29 +216,16 @@ p:focus {
   transition: margin-left 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
 }
 
-.bdropinp.ltyellow {
-  background: #ffffe0;
-}
-
-.bdropinp.mny {
-  color: #446444;
-}
-
-.bdropinp.logout {
-  color: #aa4444;
-}
-
-.bdropinp.highlight {
-  background: #aaaaff;
-}
-
+.bdropinp.ltyellow  { background: #ffffe0; }
+.bdropinp.mny       { color: #446444; }
+.bdropinp.logout    { color: #aa4444; }
+.bdropinp.highlight { background: #aaaaff; }
 
-.bdropinp:focus {
-  outline:0;
-}
+.bdropinp:focus     { outline:0; }
 
 .bdropinp:active {
-  margin-left:9px;
+  /* margin-left:9px; */
+  margin-left:1vw;
   background: #aaaaaa;
 
   -webkit-transition: margin-left 0.05s ease, box-shadow 0.05s ease, background 0.05s ease;
@@ -383,53 +239,20 @@ p:focus {
 
 /***********/
 
-.bkey:focus {
-  outline:0;
-}
-
-.bkeym:focus {
-  outline:0;
-}
-
-/*****/
-
-.bkeyw:focus {
-  outline:0;
-}
-
-/*****/
-
-.bkeyHuge:focus {
-  outline:0;
-}
-
-/*****/
-
-.bfieldinp:focus {
-  outline:0;
-}
-
-/*****/
+.bkey:focus       { outline:0; }
+.bkeym:focus      { outline:0; }
+.bkeyw:focus      { outline:0; }
+.bkeyHuge:focus   { outline:0; }
+.bfieldinp:focus  { outline:0; }
 
 .btnprv {
   position: absolute;
-  /*
-  left: 83%;
-  top: 5%;
-  */
-
   left: 85vw;
   top: 5vh;
 }
 
 .btnnxt {
   position: absolute;
-
-  /*
-  left: 83%;
-  top: 35%;
-  */
-
   left: 85vw;
   top: 30vh;
 }
@@ -448,8 +271,6 @@ p:focus {
   margin-left: -5vw;
 }
 
-/*****/
-
 .rowmain0 {
   position: absolute;
   top: 50%;
@@ -460,17 +281,10 @@ p:focus {
   top: 70%;
 }
 
-/** **/
-
 .invisiblock {
   background-color: rgba(0,0,0,0);
-  /*
-  width: 100px;
-  height: 100px;
-  */
   border: none !important;
   font-size: 0;
-
   position: fixed;
   z-index: 2;
   outline:0;

+ 80 - 0
busunit/rootfs/boot/config.txt

@@ -0,0 +1,80 @@
+# For more options and information see
+# http://rpf.io/configtxt
+# Some settings may impact device functionality. See link above for details
+
+# uncomment if you get no picture on HDMI for a default "safe" mode
+#hdmi_safe=1
+
+# uncomment this if your display has a black border of unused pixels visible
+# and your display can output without overscan
+#disable_overscan=1
+
+# uncomment the following to adjust overscan. Use positive numbers if console
+# goes off screen, and negative if there is too much border
+#overscan_left=16
+#overscan_right=16
+#overscan_top=16
+#overscan_bottom=16
+
+# uncomment to force a console size. By default it will be display's size minus
+# overscan.
+framebuffer_width=1280
+framebuffer_height=720
+
+# uncomment if hdmi display is not detected and composite is being output
+#hdmi_force_hotplug=1
+
+# uncomment to force a specific HDMI mode (this will force VGA)
+#hdmi_group=1
+#hdmi_mode=1
+
+# uncomment to force a HDMI mode rather than DVI. This can make audio work in
+# DMT (computer monitor) modes
+#hdmi_drive=2
+
+# uncomment to increase signal to HDMI, if you have interference, blanking, or
+# no display
+#config_hdmi_boost=4
+
+# uncomment for composite PAL
+#sdtv_mode=2
+
+#uncomment to overclock the arm. 700 MHz is the default.
+#arm_freq=800
+
+# Uncomment some or all of these to enable the optional hardware interfaces
+#dtparam=i2c_arm=on
+#dtparam=i2s=on
+#dtparam=spi=on
+
+# Uncomment this to enable infrared communication.
+#dtoverlay=gpio-ir,gpio_pin=17
+#dtoverlay=gpio-ir-tx,gpio_pin=18
+
+# Additional overlays and parameters are documented /boot/overlays/README
+
+# Enable audio (loads snd_bcm2835)
+dtparam=audio=on
+
+#enable_uart=1
+#dtoverlay=pi3-disable-bt
+#dtoverlay=pi3-miniuart-bt
+#dtoverlay=pi3-disable-bt
+#dtoverlay=pi3-disable-wifi
+
+[pi4]
+# Enable DRM VC4 V3D driver on top of the dispmanx display stack
+dtoverlay=vc4-fkms-v3d
+max_framebuffers=2
+
+[all]
+#dtoverlay=vc4-fkms-v3d
+#enable_uart=1
+#dtoverlay=pi3-disable-bt
+#dtoverlay=pi3-disable-wifi
+#enable_uart=1
+#dtoverlay=pi3-disable-bt
+#dtoverlay=pi3-disable-wifi
+enable_uart=1
+dtoverlay=pi3-disable-bt
+dtoverlay=pi3-disable-wifi

+ 2 - 0
busunit/scripts/rc.local

@@ -25,6 +25,8 @@ sleep 2
 /home/bus/bin/get_net_ids.sh 2>&1 >> /tmp/init.log
 sleep 2
 
+ip link set eth0 down
+
 /home/bus/bin/connection_tether.sh 2>&1 >> /tmp/tether.log &
 sleep 2
 /home/bus/bin/update_loop.sh 2>&1 >> /tmp/run.log &

busunit/scripts/kiosk.service → busunit/rootfs/etc/systemd/system/kiosk.service