Thank you for your donation!


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


Moode version from Python
#1
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
Reply
#2
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
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: