Jump to content

Parasol Air: Difference between revisions

From Parasol
No edit summary
No edit summary
Tag: visualeditor
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
''Projekt befindet sich in der Testphase. ''
=Dashboards=


= AirBoards =
==== Inhalt planen und verändern ====
AirBoard1 - 10.110.202.1 (Vorderhaus 1. OG)<br />
Chrome Sign Builder Installieren und starten
AirBoard2 - 10.110.202.2 (-)<br />
AirBoard3 - 10.110.202.3 (-)<br />
AirBoard4 - 10.110.202.4 (-)<br />
<br />
<div style="font-family: Consolas, monaco, monospace;">
air-chromeboard11 - MAC: c4:54:44:df:3c:0f - IP: [http://10.110.202.11:8080 10.110.202.11] - Standort: Vorderhaus 2. OG<br />
air-chromeboard12 - MAC: c4:54:44:f3:9a:fa - IP: [http://10.110.202.12:8080 10.110.202.12] - Standort: HOF ANM EG<br />
air-chromeboard13 - MAC: 2c:60:0c:9b:cf:4f - IP: [http://10.110.202.13:8080 10.110.202.13] - Standort: Vorderhaus 1. OG<br />
air-chromeboard14 - MAC: 2c:60:0c:9b:ce:81 - IP: [http://10.110.202.14:8080 10.110.202.14] - Standort: HOF ANM 1. OG<br />
LAN air-chromeboard15 - MAC: 2c:60:0c:9b:cf:50 - IP: 10.110.202.15 - Standort: Küche<br />
WIFI air-chromeboard15 - MAC: 30.10.b3:53:94:b6 - IP: [http://10.30.252.255:8080 10.30.252.255] - Standort: Küche<br />


LAN-airberlin - MAC: 2c:60:0c:b7:92:de - IP: 192.168.200.159 - Standort: Torstr. 164
https://chrome.google.com/webstore/detail/chrome-sign-builder/odjaaghiehpobimgdjjfofmablbaleem/related
</div>


<br /><br />
Bereits installiert? Dann findest du die App unter chrome://apps[[File:CleanShot 2023-02-09 at 12.22.17@2x.png|frameless|900x900px]]
Google Account:
Mit dem Chrome Sign Builder lassen sich die Inhalte planen und als JSON exportieren.
parasol.dashboard@gmail.com flamingoburger
== AirBoard Konfiguration ==


https://myapi3.parasol-island.com/app_air-dashboard/app/
===== Parasols default JSON =====
<syntaxhighlight lang="json">
{
  "schedule": {
    "Value": [
      {
        "items": [],
        "name": "Parasol Dashboard",
        "defaultUrl": "https://os.parasol-island.com/os_airboards/app/dist/"
      }
    ]
  }
}
</syntaxhighlight>


sudo apt-get update
Die JSON (.txt) Datei kann anschließend von einem SuperAdmin in der Google Admin Konsole ersetzt werden.
sudo apt-get dist-upgrade
sudo apt-get install matchbox chromium x11-xserver-utils ttf-mscorefonts-installer xwit sqlite3 libnss3
sudo reboot
<br />


sudo nano /boot/config.txt
https://admin.google.com/ac/chrome/apps/kiosk?ac_ouid=03ph8a2z3ixx2mz&appId=odjaaghiehpobimgdjjfofmablbaleem
<pre>
display_rotate=1
framebuffer_width=1200
framebuffer_height=1920
</pre>


[[File:CleanShot 2023-02-09 at 12.30.20@2x.png|frameless|900x900px]]


sudo nano /etc/rc.local
<pre>
#!/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
== Raspberry Pi ==
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi


if [ -f /boot/xinitrc ]; then
=== Remove (hide) mouse cursor ===
        ln -fs /boot/xinitrc /home/pi/.xinitrc;
<syntaxhighlight lang="bash">
        su - pi -c 'startx' &
#!/bin/bash
fi
# hide mouse in wayland raspbian


exit 0
sudo apt install -y interception-tools interception-tools-compat
</pre>
sudo apt install -y cmake
cd ~
git clone https://gitlab.com/interception/linux/p ... deaway.git
cd hideaway
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
sudo cp /home/user/hideaway/build/hideaway /usr/bin
sudo chmod +x /usr/bin/hideaway


 
cd ~
sudo nano /boot/xinitrc
wget https://raw.githubusercontent.com/ugota ... onfig.yaml
<pre>
sudo cp /home/$USER/config.yaml /etc/interception/udevmon.d/config.yaml
#!/bin/sh
sudo systemctl restart udevmon
while true; do
</syntaxhighlight>
 
        # Clean up previously running apps, gracefully at first then harshly
        killall -TERM chromium 2>/dev/null;
        killall -TERM matchbox-window-manager 2>/dev/null;
        sleep 2;
        killall -9 chromium 2>/dev/null;
        killall -9 matchbox-window-manager 2>/dev/null;
 
        # Clean out existing profile information
        rm -rf /home/pi/.cache;
        rm -rf /home/pi/.config;
        rm -rf /home/pi/.pki;
 
        # Generate the bare minimum to keep Chromium happy!
        mkdir -p /home/pi/.config/chromium/Default
        sqlite3 /home/pi/.config/chromium/Default/Web\ Data "CREATE TABLE meta(key LONGVARCHAR NOT NULL UNIQUE PRIMARY KEY, value LONGVARCHAR); INSERT INTO meta VALUES('version','46'); CREATE$
 
        # Disable DPMS / Screen blanking
        xset -dpms
        xset s off
 
        # Reset the framebuffer's colour-depth
        fbset -depth $( cat /sys/module/*fb*/parameters/fbdepth );
 
        # Hide the cursor (move it to the bottom-right, comment out if you want mouse interaction)
        xwit -root -warp $( cat /sys/module/*fb*/parameters/fbwidth ) $( cat /sys/module/*fb*/parameters/fbheight )
 
        # Start the window manager (remove "-use_cursor no" if you actually want mouse interaction)
        matchbox-window-manager -use_titlebar no -use_cursor no &
 
        # Wait for Server
        while true; do
                ping -c1 myapi3.parasol-island.com > /dev/null && break;
        done
 
        # Start the browser (See http://peter.sh/experiments/chromium-command-line-switches/)
        chromium  --app=https://myapi3.parasol-island.com/prototypes/app_air-dashboard
 
done;
</pre>
 
sudo reboot
 
== AirBoard Konfiguration (alt) ==
*Betriebssystem
RASPBIAN (Debian Wheezy; Release date:2014-01-07)
<br/>
 
*Monitor drehen
sudo nano /boot/config.txt
''config.txt''
<span style="color:green;">+ display_rotate=3</span>
<br/>
 
*Software installieren
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install chromium-browser unclutter x11vnc
<br/>
 
*Startscript erstellen
touch ~/startup.sh
chmod +x ~/startup.sh
nano ~/startup.sh
''startup.sh''
#!/bin/sh
unclutter &
sleep 30
chromium-browser \
--kiosk \
--ignore-certificate-errors \
--disable-restore-session-state \
--incognito \
http://myapi3.parasolisland.local/app_air_timetable/timetable.php &
x11vnc -forever
<br>
 
*Startscript einbinden / Screensaver ausschalten
sudo nano /etc/xdg/lxsession/LXDE/autostart
''autostart''
<span style="color:red;">- @xscreensaver -no-splash</span>
<span style="color:green;">+ #@xscreensaver -no-splash
+ @/bin/bash /home/pi/startup.sh</span>
<br>
 
*black-Screen ausschalten
sudo nano /etc/lightdm/lightdm.conf
''lightdm.conf''
[SeatDefaults]
<span style="color:green;">+ xserver-command=X -s 0 dpms</span>
<nowiki>#</nowiki>xserver-command=X
<br>
 
* Zeitzone setzen
nano ~/.profile
''.profile''
<span style="color:green;">+ TZ='Europe/Busingen'; export TZ</span>
<br>
 
sudo reboot
 
=== Chromebox Setup ===
# Wipe Data on Chromebook (https://support.google.com/chrome/a/answer/1360642)
# After wipe is completed, you will be at the welcome screen. (Input your network information, but DO NOT LOGIN to the Chromebook)
# At the login screen, press CTRL+ALT+K and enable Kiosk mode.
# Login into the Chromebook
# Open a new tab in Chrome, and enter chrome://extensions in the address bar (also known as the omnibox). Click enter.
# Check the box next to Developer
# Add kiosk application, and enter the ID of the Kiosk App you'd like to enable.
# Highlight the Kiosk App and select "auto launch"
# Press Enter or click Done.
# Reboot and when asked, enable app for Kiosk mode
# Now the app will auto launch each time you reboot.
# To Turn off Kiosk Mode, begin by rebooting the Chromebook. While the device is starting up, press the keyboard shortcut Ctrl+Alt+S to interrupt the process and return to the login screen.

Latest revision as of 12:41, 8 July 2024

Dashboards

[edit]

Inhalt planen und verändern

[edit]

Chrome Sign Builder Installieren und starten

https://chrome.google.com/webstore/detail/chrome-sign-builder/odjaaghiehpobimgdjjfofmablbaleem/related

Bereits installiert? Dann findest du die App unter chrome://appsError creating thumbnail: File missing Mit dem Chrome Sign Builder lassen sich die Inhalte planen und als JSON exportieren.

Parasols default JSON
[edit]

<syntaxhighlight lang="json"> {

 "schedule": {
   "Value": [
     {
       "items": [],
       "name": "Parasol Dashboard",
       "defaultUrl": "https://os.parasol-island.com/os_airboards/app/dist/"
     }
   ]
 }

} </syntaxhighlight>

Die JSON (.txt) Datei kann anschließend von einem SuperAdmin in der Google Admin Konsole ersetzt werden.

https://admin.google.com/ac/chrome/apps/kiosk?ac_ouid=03ph8a2z3ixx2mz&appId=odjaaghiehpobimgdjjfofmablbaleem

Error creating thumbnail: File missing


Raspberry Pi

[edit]

Remove (hide) mouse cursor

[edit]

<syntaxhighlight lang="bash">

  1. !/bin/bash
  2. hide mouse in wayland raspbian

sudo apt install -y interception-tools interception-tools-compat sudo apt install -y cmake cd ~ git clone https://gitlab.com/interception/linux/p ... deaway.git cd hideaway cmake -B build -DCMAKE_BUILD_TYPE=Release cmake --build build sudo cp /home/user/hideaway/build/hideaway /usr/bin sudo chmod +x /usr/bin/hideaway

cd ~ wget https://raw.githubusercontent.com/ugota ... onfig.yaml sudo cp /home/$USER/config.yaml /etc/interception/udevmon.d/config.yaml sudo systemctl restart udevmon </syntaxhighlight>