driftkingtw / raspberry-pi-pwm-fan-control Goto Github PK
View Code? Open in Web Editor NEWRaspberry Pi PWM fan contorl (for Notcua PWM fans)
License: MIT License
Raspberry Pi PWM fan contorl (for Notcua PWM fans)
License: MIT License
In python2 integer divided by another integer results integer.
Fix:
step = float(FAN_HIGH - FAN_LOW)/float(MAX_TEMP - MIN_TEMP)
setFanSpeed(FAN_LOW + round( temp * step ))
not sure why, but running this script with python2 oder python3 shows me about 13%-21% CPU ussage in htop no matter what refreshrate i configure.
can someone confirm this bug?
Please consider adding a license.
If you are interested I have created a ansible role to deploy this script as systemd service on an Ubuntu 20.04. I can publish the role and you can refer to it in your documentation.
Hi there,
why is the constant FAN_MAX to be defined? It is not used in the code or do I miss something?
I have anther question regarding the MIN_TMEP and OFF_TEMP. What is the reason to define the OFF_TEMP constant? There is no case made if the temperature is between OFF_TEMP and MIN_TEMP which is 40 / 45 at default. Wouldnt it make sense to not use OO_TEMP and just stop the fan if the temp is below MIN_TEMP?
Thanks and best regards
Kai
Hi! I hope you're doing okay! I'm working on my Raspberry Pi project and I came across your repository. I have an Argon mini fan (link) and I just can figure out why read_fan_speed.py comes back 0 every time, even when I hear the fan spinning. Could you help me out find a way to make my Raspberry Pi 4 (running Dietpi) read and display this fan's speed?
As the title says, when testing the script, when I kill the script with Ctrl+C, the fan shuts off instead of getting set to high. Can you adjust this to instead use its own variable and make it so if the script is killed by any means it'll get set to this new variable?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.