Moode Forum
Moode version from Python - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: Moode version from Python (/showthread.php?tid=68)



Moode version from Python - mancio61 - 04-14-2018

Hi, I'm writing the python code to populate my I2C 16x2 display (not still wired, at now I'm writing on the terminal...)
How can I get Moode version (and eventually other info) to show during system startup?

thanks!
Andrea


RE: Moode version from Python - Tim Curtis - 04-14-2018

Hi Andrea,

Use the following cmds:


Code:
System parameters and values
sqlite3 /var/local/www/db/moode-sqlite3.db "select param,value from cfg_system"

moOde version
Long form
awk '/Release: /{print $2 " " $3;}' /var/www/footer.php | sed 's/,//'
Short form
awk '/Release: /{print $2;}' /var/www/footer.php | sed 's/,//'

-Tim