Thank you for your donation!


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


I2C LCD display? differences from old 3.8?
#7
Its just a file created by the stub script
/var/local/www/comandw/lcd_updater.py

You would put your own code that parses currentsong.txt and writes to your display in this script file
Code:
#!/usr/bin/python3
#
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright 2014 The moOde audio player project / Tim Curtis
#

#
# Stub script for lcd-updater.sh daemon
#

import subprocess

homeDir = subprocess.run(['ls', '/home/'], stdout=subprocess.PIPE).stdout.decode('utf-8').strip()
with open("/var/local/www/currentsong.txt") as file1:
   with open("/home/" + homeDir + "/lcd.txt", "w") as file2:
       for line in file1:
           file2.write(line)
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
RE: I2C LCD display? differences from old 3.8? - by Tim Curtis - 12-13-2024, 03:14 PM

Forum Jump: