Skip to main content

A set of functions to control Sequent Microsystems Smart Fan card

Project description

sfan

sfan

This is the python library to control the Smart Fan Card for Raspberry Pi.

Install

sudo pip install SMsfan

or

sudo pip3 install SMsfan

Update

sudo pip install SMsfan -U

or

sudo pip3 install SMsfan -U

Now you can import the sfan library and use its functions. To test, read processor temperature from the Smart Fan with stack level 0:

~$ python
Python 2.7.9 (default, Sep 17 2016, 20:26:04)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sfan
>>> sfan.getProcTemp(0)
31
>>>

Functions

setPower(stack, power)

Set the Smart Fan power

stack - stack level, set with jumper [0/1]

power - Fan power [0..100]

getPower(stack)

Return the fan power [0..100]

stack - stack level, set with jumper [0/1]

setSafetyTemp(stack, temp):

Set the Smart Fan safety temperature. If fan processor temperature exceeds this value fan will run 100%

stack - stack level, set with jumper [0/1]

tenp - Safety temperature in degree Celsius [30..80]

getSafetyTemp(stack)

Return the fan safety temperature in degree Celsius [30..80]

stack - stack level, set with jumper [0/1]

getProcTemp(stack)

Return the fan processor temperature in degree Celsius

stack - stack level, set with jumper [0/1]

setLedBlink(stack, blink):

Turn the Smart Fan led blink on or off

stack - stack level, set with jumper [0/1]

blink - Led blinking enable [0/1]

getLedBlink(stack)

Return the fan led blinking [0/1]

stack - stack level, set with jumper [0/1]

setStopInt(stack, seconds)

Set the stop interval in seconds. The fan will run 100% specified seconds then stop.

stack - stack level, set with jumper [0/1]

seconds - how long fan will run [1..65000]

getStopInt(stack)

Return remaining time until fan will stop

stack - stack level, set with jumper [0/1]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smsfan-1.1.3.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SMsfan-1.1.3-py2.py3-none-any.whl (3.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file smsfan-1.1.3.tar.gz.

File metadata

  • Download URL: smsfan-1.1.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.6

File hashes

Hashes for smsfan-1.1.3.tar.gz
Algorithm Hash digest
SHA256 f038f4eef443e526a39cecafa9016eb4eb7584f83baac91e80f8a4a25f483940
MD5 f361aa3e548af7b61e03ddec76e9af73
BLAKE2b-256 86d2dd9ead4c56157a1b3e3d67787d61e9b7165b4f832dbbd41481ef2adaf380

See more details on using hashes here.

File details

Details for the file SMsfan-1.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: SMsfan-1.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.6

File hashes

Hashes for SMsfan-1.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 504c2fc298de05b125aff2f25fcd66ad306835f5985a36a7d91292ff4162f042
MD5 da796e3d2eeae8e90fbb6582c0cb82cd
BLAKE2b-256 8d9da41d39d4b11cf4ba02c577777871428af8cae06bf362e67172a75ef48737

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page