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.4.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.4-py2.py3-none-any.whl (3.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: smsfan-1.1.4.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for smsfan-1.1.4.tar.gz
Algorithm Hash digest
SHA256 1121b39f307c6ae42dd6558e8a32d2c9ef9690527ada0482b04be2201efd25f0
MD5 fbf754b08a7d1295376e45f81bad9a92
BLAKE2b-256 0cff3c795cc7fa77cf0f36979e6ab0657e10812ae58e7628a241fb3c93912a9c

See more details on using hashes here.

File details

Details for the file smsfan-1.1.4-py2.py3-none-any.whl.

File metadata

  • Download URL: smsfan-1.1.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for smsfan-1.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5ace5d89ec923af95a6502aaedf2526c5232545ad8774d63e94acac69be089a1
MD5 3f82d7913eeaf81d5d8afb01a8e3dc63
BLAKE2b-256 2b6cf205328ebfa2363a85e76bf2f807d5f9c30200b23364ba259dfe88b23172

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