12-11-2024, 10:53 PM
As long as i2c-40x2-lcd.py runs under python 3 you should be ok.
The LCD updater and its companion script can be used to update an LCD but you would need to figure out whats needed in the companion script. This script can't contain any while(true) loops since its being executed by an upstream system-level while (condition) process (inotifywait).
/var/www/daemon/lcd-updater.sh
The LCD updater and its companion script can be used to update an LCD but you would need to figure out whats needed in the companion script. This script can't contain any while(true) loops since its being executed by an upstream system-level while (condition) process (inotifywait).
/var/www/daemon/lcd-updater.sh
Code:
#!/bin/bash
#
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright 2014 The moOde audio player project / Tim Curtis
#
eval "/var/local/www/commandw/lcd_updater.py"
while true; do
inotifywait -e close_write /var/local/www/currentsong.txt
eval "/var/local/www/commandw/lcd_updater.py"
done > /dev/null 2>&1 &