Thank you for your donation!


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


Problem: Use of Metadata file and LCD update engine
#3
The LCD Updater daemon uses "inotifywait -e close_write" to detect a change in the currentsong.txt file and then run the python script. The currentsong.txt file is updated by worker.php within 3 seconds of a change in the UI.

The python script does not need its own timing loop since thats being done externally by the LCD Updater engine. The engine only calls the script when there has been a change to currentsong.txt. The script simply needs to parse currentsong.txt and write to the screen.

Also, IIRC the LCD Update engine won't be the right solution if side-scrolling text is desired because the timing loops needed for side-scrolling conflict with the external loop in the LCD updater. In this case you will need to write a dedicated script with its own timing loop and side-scrolling loop(s). Something like that.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
RE: Use of Metadata file and LCD update engine - by Tim Curtis - 12-07-2022, 04:01 PM

Forum Jump: