Combine UI and Slideshow
Marked wontfix and closed due to the ability to manage fim from within a main go app that flip flops between slideshow and config.
1f681060dd
Moved LUX sensor code to ticket as it is a secondary feature for the time being
721c5f9728
Move lux sensor logic to own file while main ui is reworked
a616ac6c56
Update vendoring for new ui
Move UI to Go
# CONFIGURATION FILE FOR SETUPCON
# Consult the console-setup(5) manual page.
ACTIVE_CONSOLES="/dev/tty[1-6]"
CHARMAP="UTF-8"
CODESET="Uni2"
FONTFACE="Terminus"
FONTSIZE="32x16"
VIDEOMODE=
# The following is an example how to use a braille font
# FONT='lat9w-08.psf.gz brl-8x8.psf'
Move UI to Go
apt install fonts-ubuntu-console
root@piframe:/home/ubuntu# cat /etc/default/console-setup
# CONFIGURATION FILE FOR SETUPCON
# Consult the console-setup(5) manual page.
ACTIVE_CONSOLES="/dev/tty[1-6]"
CHARMAP="UTF-8"
CODESET="Uni2"
#FONTFACE="UbuntuMono-R"
FONT="UbuntuMono-R-8x16.psf"
FONTSIZE="36x72"
VIDEOMODE=
# The following is an example how to use a braille font
# FONT='lat9w-08.psf.gz brl-8x8.psf'
update-initramfs -u
systemctl reboot
echo 2 > /sys/class/graphics/fbcon/rotate_all
mkdir /etc/systemd/system/getty@tty1.service.d/
/etc/systemd/system/getty@tty1.service.d/override.conf
[Service]
ExecStart=
ExecStart=-/tank/scratch/tview/test.local
StandardInput=tty
StandardOutput=tty
systemctl daemon-reload; systemctl restart getty@tty1.service
Move UI to Go
chvt 1
exec </dev/tty1 >/dev/tty1 2>/dev/tty1
ALBUM_PATH=`cat /etc/default/fim_album`
# options inspiration: https://www.raspberrypi.org/forums/viewtopic.php?t=196043
tput civis
Keyboard support for fim
Closing as won't fix as we really don't want anything more than ctrl-c handling at the keyboard (or similar) so we can get to a proper ui for management
FIM shouldn't be handling anything keyboard or keyboard adjacent directly
Move UI to Go
Use framebuffer + joystick/buttons
Need to figure out how to leverage framebuffer as a UI ; there appear to be go libs but they are not clear on how to work with the fb for text.
https://github.com/warthog618/gpio
https://github.com/warthog618/gpiod
https://www.adafruit.com/product/512
https://www.adafruit.com/product/504
https://www.adafruit.com/product/4697
Replace pimoroni fan shim
cpuTemp0=$(cat /sys/class/thermal/thermal_zone0/temp)
cpuTemp1=$(($cpuTemp0/1000))
cpuTemp2=$(($cpuTemp0/100))
cpuTempM=$(($cpuTemp2 % $cpuTemp1))
echo CPU temp"="$cpuTemp1"."$cpuTempM"'C"
echo GPU $(/opt/vc/bin/vcgencmd measure_temp)
M2.5 8mm stand offs