serveur nodejs nfc vma405
Go to file
icon 23524b9491 maj ansible install + divers 2022-09-01 10:11:45 +04:00
serveurNfcNodeJsVma405 maj ansible install + divers 2022-09-01 10:11:45 +04:00
auto_startx_bashrc maj ansible install + divers 2022-09-01 10:11:45 +04:00
autostart maj ansible install + divers 2022-09-01 10:11:45 +04:00
branchement_ecran_pi.png maj ansible install + divers 2022-09-01 10:11:45 +04:00
install_1024x600_vma405_chromium.yml maj ansible install + divers 2022-09-01 10:11:45 +04:00
readme.md maj ansible install + divers 2022-09-01 10:11:45 +04:00
rfid_rc522.jpg maj ansible install + divers 2022-09-01 10:11:45 +04:00
serveurNfcNodeJsVma405.7z maj ansible install + divers 2022-09-01 10:11:45 +04:00
splash.png premier commit 2022-08-30 06:34:34 +04:00
splashscreen.service maj ansible install + divers 2022-09-01 10:11:45 +04:00
vma405.jpg maj ansible install + divers 2022-09-01 10:11:45 +04:00
vma405.js maj ansible install + divers 2022-09-01 10:11:45 +04:00

readme.md

VMA 405

côté usb39373533312927252321191715131197531côté sdcar
reseau403836343230282624222018161412108642
côté usb3937353331292725SCKMISOMOSI17151311GND753vcc
reseau4038363432302826NSSRST2018161412108642
RC522 / VMA405PI 3 B+Couleur cable
3.3v / VCC1rouge
RST22marron
GND9noir
IRQpas utilisé
MISO21jaune
MOSI19vert
SCK23bleu
SDA24violet

installation de node js (ansible)

install_1024x600_vma405_chromium.yml

splash screen (écran de boot = pub)

sudo cp splash.png /usr/share/plymouth/themes/pix/splash.png
sudo cp splash.png /usr/share/plymouth/themes/pix/splash.png
  • sudo nano /boot/config.txt
    disable splash=1

  • sudo nano /boot/cmdline.txt
    consoleblank=0 loglevel=1 quiet logo.nologo

-Pour afficher l'image
sudo apt install fbi

  • Créer un service
    sudo nano /etc/systemd/system/splashscreen.service
[Unit]
Description=Splash screen
DefaultDependencies=no
After=local-fs.target
[Service]
ExecStart=/usr/bin/fbi -d /dev/fb0 --noverbose -a /home/sysop/splash.png
StandardInput=tty
StandardOutput=tty
[Install]
WantedBy=sysinit.target
  • active le service
    sudo systemctl enable splashscreen.service sudo systemctl start splashscreen.service

/ext/xdg/openbox/autostart

#/etc/xdg/openbox/
DISPLAY=:0 xdotool getactivewindow key F5

# stop veille/économie dénergie
xset dpms 0 0 0 && xset s noblank  && xset s off

#Touches pour sortir du serveur X =>  CTRL-ATL-Backspace
setxkbmap -option terminate:ctrl_alt_bksp

sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/Default/Preferences
sed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences

# vidage du cache chromium
rm -fr /home/sysop/.cache/chromium
rm -fr /home/sysop/.config/chromium/Default/

# orientation de l'écran
xrandr --output DSI-1 --rotate right

# lance chromium avec un user agent spécifique hostname,password,periph,ip (provenant en partie de .chromium_env)
cd /home/sysop/serveurNfcNodeJs/
node serveur_nfc.js

/home/sysop/.bashrc (ajouter)

[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx -- -nocursor

L'automatisation de l'install par ansible est en cours !!!