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
#2
Please convert the colored text in your post to plain text so it's readable. If you want to highlight something use Bold, Italics or Underline
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Better as well to use code boxes to set off file contents, log entries, commands, etc.
Reply
#4
(07-03-2025, 05:29 PM)Tim Curtis Wrote: Please convert the colored text in your post to plain text so it's readable. If you want to highlight something use Bold, Italics or Underline

edit is done, something got in the way between VisualCode and the forum input field
Reply
#5
Can you post some pics?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#6
Not sure what it brings, anyhow the forum engine does not support inserting pics without external process.

Each press of the button brings the next browser tab in a carrousel fashion, there is no label or whatsoever indicating tabs presence, the display is fully dedicated to Moode UI.
Reply
#7
It's easy to add images. Just scroll down to the Attachments section and click Choose file, then Add Attachement.

Sure, if the Tabs don't show then no need to post any screen shots.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#8
(07-09-2025, 12:44 PM)Tim Curtis Wrote: It's easy to add images. Just scroll down to the Attachments section and click Choose file, then Add Attachement.

Sure, if the Tabs don't show then no need to post any screen shots.

here are two tabs without any UI tweak

   

   
Reply


Forum Jump: