The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Local display with mulitple tabs
#1
Here is a feature proposal, I have implemented on my setup.

Using moode with an attached display, I find very useful to use the display to browse other services, like local dashboard (homeassistant, ...) or news/weather feed.

The local display current implementation uses chromium to display moode in a single tabs, it is quit easy to allow chromium to open others :

>>>> ~/.xinitrc
Code:
[...]
# Launch chromium browser
chromium-browser \
# remove the --app flag which not useful with --kiosk flag
--window-size="$SCREEN_RES" \
--window-position="0,0" \
--enable-features="OverlayScrollbar" \
--no-first-run \
--disable-infobars \
--disable-session-crashed-bubble \
--pull-to-refresh=2 \
--kiosk http://localhost/ \
# add urls to --kiosk flag. here 2 remotes websites and a local dashboard
"https://www.ventusky.com/?p=48.9;2.4;9" \
https://www.lemonde.fr/ \
http://radio.local/tar1090

The various web links could be set in the "Peripherals/General Settings" options.
To switch between tabs, several options are available (keyboard, IR, extensions, ...). I ended with a pushbutton on a GPIO of my raspi, and setting a mapping in "Peripherals/GPIO Control" starting the following script.

>>> ~/tabswitcher
Code:
#!/bin/bash
# chromuim/chrome tab switcher for keyboard less device.

# here we give focus to the "first" display attached (carefull while using HDMI and display port together)
# for specific setup look at X server man and commands like `w` to get the correct name.
export DISPLAY=:0.0

# reseting the timeout by killing previous instance of current script.
for pid in $(pgrep -f $0); do
   [ $pid != $$ ] && kill -s SIGINT $pid
done

# switch tab to the next one
xdotool key ctrl+Tab
xdotool key F5

# return to moode  (first tab) after 30 seconds
xdotool sleep 30 key ctrl+1 &

I think it would be a nice addition to any setup using a display as "living Room" device.

If I could be of any help on implementing this, let me know.


EDIT: removed "auto" formatting of the post
Reply


Messages In This Thread
Local display with mulitple tabs - by mab64973 - 07-03-2025, 03:44 PM

Forum Jump: