Comments (10)
Does systemctl status pimoroni-fanshim
give any useful output- Python errors, or other messages in the log?
from fanshim-python.
Here is the result of systemctl status pimoroni-fanshim
:
$ systemctl status pimoroni-fanshim
● pimoroni-fanshim.service - Fan Shim Service
Loaded: loaded (/etc/systemd/system/pimoroni-fanshim.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2019-12-09 19:18:41 CET; 30min ago
Main PID: 10716 (code=exited, status=1/FAILURE)Dec 09 19:18:41 myPiTwo.local systemd[1]: pimoroni-fanshim.service: Unit entered failed state.
Dec 09 19:18:41 myPiTwo.local systemd[1]: pimoroni-fanshim.service: Failed with result 'exit-code'.
Dec 09 19:18:41 myPiTwo.local systemd[1]: pimoroni-fanshim.service: Service hold-off time over, scheduling restart.
Dec 09 19:18:41 myPiTwo.local systemd[1]: Stopped Fan Shim Service.
Dec 09 19:18:41 myPiTwo.local systemd[1]: pimoroni-fanshim.service: Start request repeated too quickly.
Dec 09 19:18:41 myPiTwo.local systemd[1]: Failed to start Fan Shim Service.
Dec 09 19:18:41 myPiTwo.local systemd[1]: pimoroni-fanshim.service: Unit entered failed state.
Dec 09 19:18:41 myPiTwo.local systemd[1]: pimoroni-fanshim.service: Failed with result 'exit-code'.
from fanshim-python.
The only workaround I've found so far is to launch
python3 fanshim-python/examples/automatic.py &
Not very clean, especially if the Raspberry Pi reboots.
from fanshim-python.
Any answer?
from fanshim-python.
I had no idea what the problem was in this case, so I was at a loss to providing a fix. However it might be related to- #66
I've since added a fix for the executable path, so re-running install-service.sh
might help.
from fanshim-python.
Unfortunately, the fix from #66 didn't solve the issue.
$ git clone https://github.com/pimoroni/fanshim-python
$ cd fanshim-python
$ sudo ./install.sh
$ cd examples
$ sudo ./install-service.sh --on-threshold 50 --off-threshold 40 --delay 2
$ systemctl | grep pimoroni
● pimoroni-fanshim.service
loaded failed failed Fan Shim Service
from fanshim-python.
Same problem here, so i reinstalled it and now it works :)
from fanshim-python.
@rei-vilo did you ever get to the bottom of this?
from fanshim-python.
Thank you for asking.
A clean install (OS + Fanshim utility) solved the issue on the Raspberry Pi 4B.
from fanshim-python.
I had the same issue... turns out that you need to launch the install-service.sh from the examples folder.
If you launch it, for instance, from the base folder like so
sudo install ./examples/install-service.sh
then the $(pwd)
in install-service.sh
(lines 212 and 213)
WorkingDirectory=$(pwd)
ExecStart=$PYTHON $(pwd)/automatic.py --on-threshold $ON_THRESHOLD --off-threshold $OFF_THRESHOLD --low-temp $LOW_TEMP --high-temp $HIGH_TEMP --delay $DELAY --brightness $BRIGHTNESS $EXTRA_ARGS
takes the wrong working directory, and the service never finds the automatic.py
file...
from fanshim-python.
Related Issues (20)
- install.sh fails on ubuntu server 21.04 HOT 2
- Fan software not working HOT 2
- Fan operating continuously, can't control it (or the LED) with fanshim HOT 1
- Default GPIO Pins HOT 1
- commands work but fan doesn't start HOT 2
- import fanshim crash HOT 2
- Fan always on and not responding to button or automatic code HOT 3
- doesn't install/detect on some systems HOT 2
- #104 breaks on Alpine Linux HOT 1
- Fanshim installation fails on Alpine Linux aarch64 HOT 1
- Service installation hangs on Raspberry Pi OS Lite 64bit April 4th 2022 HOT 2
- Running install-service.sh on LibreELEC 5.10.95 produces syntax errors
- The fan does not work HOT 6
- Dual case GPIO 15 (UART RX)
- Requesting AUR package
- Not working on DietPI
- automatic.py makes the LED bright green between cycles HOT 1
- Fan does not go off if the PI is powered down HOT 3
- FanShim service run correct but fan is still running HOT 2
- Example readme missing low-temp high-temp arguments HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fanshim-python.