Thank you! I upgraded to LibreElec 12.1 and my fan control script stopped working:
# ./fan_ctrl.py
Traceback (most recent call last):
File "/storage/scripts/./fan_ctrl.py", line 7, in <module>
import RPi.GPIO as GPIO
ModuleNotFoundError: No module named 'RPi'
I downloaded and installed your virtual-rpi-legacy-tools.zip package, changed the line in my script from:
sys.path.append('/storage/.kodi/addons/virtual.rpi-tools/lib')
to
sys.path.append('/storage/.kodi/addons/virtual.rpi-legacy-tools/lib')
And hey presto, all working again!
# ./fan_ctrl.py
Initiating... fanSpeed:100%
fanSpeed:95% / Temp:69.1degC
fanSpeed:90% / Temp:63.3degC
fanSpeed:80% / Temp:59.4degC
fanSpeed:70% / Temp:56.0degC
Brilliant! Thanks again!