I have a RPi 4B and have installed OpenMediaVault from an image file (the one dated 2019).
Straight after installation I have installed the fan shim service as per these instructions.
I get no errors due to installation (that I could see), but when I check the service …
pegasus82@raspberrypi:~/fanshim-python/examples$ sudo systemctl status pimoroni-fanshim.service
● pimoroni-fanshim.service - Fan Shim Service
Loaded: loaded (/etc/systemd/system/pimoroni-fanshim.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2019-07-26 11:32:53 UTC; 23min ago
Process: 25330 ExecStart=/home/pegasus82/fanshim-python/examples/automatic.py --on-threshold 65 --off-threshold 55 --delay 2 (code=exited, status=1/FAILURE)
Main PID: 25330 (code=exited, status=1/FAILURE)Jul 26 11:32:52 raspberrypi systemd[1]: pimoroni-fanshim.service: Failed with result ‘exit-code’.
Jul 26 11:32:53 raspberrypi systemd[1]: pimoroni-fanshim.service: Service hold-off time over, scheduling restart.
Jul 26 11:32:53 raspberrypi systemd[1]: Stopped Fan Shim Service.
Jul 26 11:32:53 raspberrypi systemd[1]: pimoroni-fanshim.service: Start request repeated too quickly.
Jul 26 11:32:53 raspberrypi systemd[1]: Failed to start Fan Shim Service.
Jul 26 11:32:53 raspberrypi systemd[1]: pimoroni-fanshim.service: Unit entered failed state.
Jul 26 11:32:53 raspberrypi systemd[1]: pimoroni-fanshim.service: Failed with result ‘exit-code’.
Stopping and starting the service doesn’t make any difference.
If I try some of the Python examples …
pegasus82@raspberrypi:~/fanshim-python/examples$ python button.py Traceback (most recent call last): File "button.py", line 15, in <module> fanshim = FanShim() File "build/bdist.linux-armv7l/egg/fanshim/__init__.py", line 31, in __init__
RuntimeError: Not running on a RPi!
The image which I downloaded for OpenMediaVault says that it supports up to Raspberry Pi 3B+ so perhaps that has something to do with it.
Is there a way I can convince the fan shim service that I really am using a Pi4? Or any other solution?
I should also mention that the fan shim hardware seems to be installed OK. The fan will spin while the RPi boots, and (first time at least) the blue LED was lit. The manual button does not seem to do anything, however.
Thanks