Comments (7)
I think I just ran into exactly this problem- the code was structured in such a way that- if psutil was already installed- it would never install the Fan SHIM library. I've fix it now, but for your setup you should just be able to sudo pip3 install fanshim
to get it up and running. Assuming you're having the problem I just discovered!
from fanshim-python.
Hello, did you manage to solve this? I am having the very same problem.
from fanshim-python.
I think I just ran into exactly this problem- the code was structured in such a way that- if psutil was already installed- it would never install the Fan SHIM library. I've fix it now, but for your setup you should just be able to
sudo pip3 install fanshim
to get it up and running. Assuming you're having the problem I just discovered!
I am gettting:
pi@raspberrypi:~/fanshim-python $ sudo pip3 install fanshim
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: fanshim in /usr/local/lib/python3.7/dist-packages/fanshim-0.0.2-py3.7.egg (0.0.2)
Requirement already satisfied: plasmalights in /usr/local/lib/python3.7/dist-packages/plasmalights-0.0.1-py3.7.egg (from fanshim) (0.0.1)
Requirement already satisfied: RPi.GPIO in /usr/lib/python3/dist-packages (from plasmalights->fanshim) (0.7.0)
And still I cannot seem to fin out the issue.
from fanshim-python.
@gh3rann did you find a solution to your problem? It might be that something else is causing the automatic.py
to fail, and you should probably run the example file directly to see if it outputs any errors.
from fanshim-python.
from fanshim-python.
@gh3rann thanks for letting me know- I'm sorry it didn't work out for you!
from fanshim-python.
Just as a heads up, I ran into the exact same issue. I think it just randomly happened after I ran an apt upgrade.
The way I was able to get it back up and running was to modify the service file entry, and comment out the "After" line:
sudo nano /etc/systemd/system/pimoroni-fanshim.service
Then here's my new entry:
[Unit]
Description=Fan Shim Service
#After=multi-user.target
[Service]
Type=simple
WorkingDirectory=/home/pi/FanShim/examples
ExecStart=/usr/bin/python3 /home/pi/FanShim/examples/automatic.py --on-threshold 65 --off-threshold 55 --low-temp 55 --high-temp 65 --delay 2 --brightness 255
Restart=on-failure
[Install]
WantedBy=multi-user.target
Once you change the file:
sudo systemctl daemon-reload
sudo systemctl restart pimoroni-fanshim.service
And that got the service back up and running. (So now I can actually set it up properly now that I know how to get it functioning!)
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.