kemonine
kemonine pushed to master at PiFrame/piframe-go 2020-08-28 22:35:19 +00:00
32900187fb Add UI to drone
kemonine deleted tag 20200828-1 from PiFrame/piframe-go 2020-08-28 22:34:49 +00:00
kemonine pushed tag 20200828-1 to PiFrame/piframe-go 2020-08-28 22:33:15 +00:00
kemonine pushed to master at PiFrame/piframe-go 2020-08-28 22:33:08 +00:00
faf8ac0b5e Initial rough cut UI
kemonine closed issue PiFrame/piframe#45 2020-08-28 22:28:18 +00:00
Combine UI and Slideshow
kemonine commented on issue PiFrame/piframe#45 2020-08-28 22:28:18 +00:00
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.

kemonine pushed to master at PiFrame/piframe-go 2020-08-28 22:24:18 +00:00
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
Compare 3 commits »
kemonine opened issue PiFrame/piframe#45 2020-08-28 19:31:29 +00:00
Combine UI and Slideshow
kemonine commented on issue PiFrame/piframe#42 2020-08-28 19:13:26 +00:00
Move UI to Go

/boot/firmware/cmdline.txt fbcon=rotate:2

kemonine commented on issue PiFrame/piframe#42 2020-08-28 19:03:47 +00:00
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'
kemonine commented on issue PiFrame/piframe#42 2020-08-28 18:43:13 +00:00
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
kemonine opened issue PiFrame/piframe#44 2020-08-28 18:22:55 +00:00
RTC
kemonine pushed to master at PiFrame/piframe-go 2020-08-28 16:51:25 +00:00
213d9475ba Update the UI README
682dfcfa96 Add inotify to drone builds
Compare 2 commits »
kemonine commented on issue PiFrame/piframe#42 2020-08-28 16:43:48 +00:00
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
kemonine closed issue PiFrame/piframe#43 2020-08-28 16:43:34 +00:00
Keyboard support for fim
kemonine commented on issue PiFrame/piframe#43 2020-08-28 16:43:24 +00:00
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

kemonine commented on issue PiFrame/piframe#42 2020-08-28 16:41:58 +00:00
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
kemonine commented on issue PiFrame/piframe#42 2020-08-28 16:41:50 +00:00
Move UI to Go
kemonine commented on issue PiFrame/piframe#39 2020-08-28 06:41:30 +00:00
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
kemonine opened issue PiFrame/piframe#43 2020-08-28 06:41:17 +00:00
Keyboard support for fim