10-27-2022, 01:18 PM
(10-27-2022, 12:13 PM)Tim Curtis Wrote: Open System config and turn on the Metadata file then use the commands below to see whats active and whether it's playing. The Metadata file gets updated within 3 seconds of any changes in playback state.
Code:pi@moode:~ $ grep "file" /var/local/www/currentsong.txt | cut -d "=" -f 2
Airplay Active
pi@moode:~ $ grep "outrate" /var/local/www/currentsong.txt | cut -d "=" -f 2
16 bit, 44.1 kHz, Stereo, 1.411 Mbps
What viewport size does that screen report?
Use the command below to display the viewport size in a popup notification when Menu, Refresh.
Code:# Display viewport size in popup notification
moodeutl -q "update cfg_system set value='viewport' where param='pkgid_suffix'"
# Turn off the viewport popup
moodeutl -q "update cfg_system set value='' where param='pkgid_suffix'"
Thank you, Tim,
I will try out the grep later.
The viewport size is 1919x549, so I made some changes in moode.css
/* Ultrawide 1920 x 550 panel (viewport 1919x549) */
@media (min-height:549px) and (width:1919px) {
img.coverart {width:78vh;}
.playqueue .pll1 {font-size:2rem;}
.playqueue .pll2 {font-size:1.5rem;margin-left:calc(3em + 1vmin)!important}
#volcontrol, #countdown {height:8vw;width:8vw;padding-bottom:1px;}
}