SMsfan


NameSMsfan JSON
Version 1.1.3 PyPI version JSON
download
home_pagehttps://www.sequentmicrosystems.com
SummaryA set of functions to control Sequent Microsystems Smart Fan card
upload_time2024-09-29 17:19:51
maintainerNone
docs_urlNone
authorSequent Microsystems
requires_pythonNone
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![sfan](../images/sequent.jpg)](https://www.sequentmicrosystems.com)

# sfan

This is the python library to control the [Smart Fan Card for Raspberry Pi](https://sequentmicrosystems.com/products/smart-fan-hat-for-raspberry-pi).

## Install

```bash
sudo pip install SMsfan
```

or

```bash
sudo pip3 install SMsfan
```

## Update

```bash
sudo pip install SMsfan -U
```

or

```bash
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:

```bash
~$ 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]

            

Raw data

            {
    "_id": null,
    "home_page": "https://www.sequentmicrosystems.com",
    "name": "SMsfan",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Sequent Microsystems",
    "author_email": "olcitu@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/86/d2/dd9ead4c56157a1b3e3d67787d61e9b7165b4f832dbbd41481ef2adaf380/smsfan-1.1.3.tar.gz",
    "platform": null,
    "description": "[![sfan](../images/sequent.jpg)](https://www.sequentmicrosystems.com)\n\n# sfan\n\nThis is the python library to control the [Smart Fan Card for Raspberry Pi](https://sequentmicrosystems.com/products/smart-fan-hat-for-raspberry-pi).\n\n## Install\n\n```bash\nsudo pip install SMsfan\n```\n\nor\n\n```bash\nsudo pip3 install SMsfan\n```\n\n## Update\n\n```bash\nsudo pip install SMsfan -U\n```\n\nor\n\n```bash\nsudo pip3 install SMsfan -U\n```\n\nNow you can import the sfan library and use its functions. To test, read processor temperature from the Smart Fan with stack level 0:\n\n```bash\n~$ python\nPython 2.7.9 (default, Sep 17 2016, 20:26:04)\n[GCC 4.9.2] on linux2\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n>>> import sfan\n>>> sfan.getProcTemp(0)\n31\n>>>\n```\n\n\n## Functions\n\n### setPower(stack, power)\n\nSet the Smart Fan power\n\n**stack** - stack level, set with jumper [0/1]\n\n**power** - Fan power  [0..100]\n\n\n### getPower(stack)\n\nReturn the fan power [0..100]\n\n**stack** - stack level, set with jumper [0/1]\n\n\n### setSafetyTemp(stack, temp):\n\nSet the Smart Fan safety temperature. If fan processor temperature exceeds this value fan will run 100%\n\n**stack** - stack level, set with jumper [0/1]\n\n**tenp** - Safety temperature in degree Celsius  [30..80]\n\n\n### getSafetyTemp(stack)\n\nReturn the fan safety temperature in degree Celsius [30..80]\n\n**stack** - stack level, set with jumper [0/1]\n\n\n### getProcTemp(stack)\n\nReturn the fan processor temperature in degree Celsius\n\n**stack** - stack level, set with jumper [0/1]\n\n\n### setLedBlink(stack, blink):\n\nTurn the Smart Fan led blink on or off  \n\n**stack** - stack level, set with jumper [0/1]\n\n**blink** - Led blinking enable [0/1]\n\n\n### getLedBlink(stack)\n\nReturn the fan led blinking [0/1]\n\n**stack** - stack level, set with jumper [0/1]\n\n\n### setStopInt(stack, seconds)\n\nSet the stop interval in seconds. The fan will run 100% specified seconds then stop.\n\n**stack** - stack level, set with jumper [0/1]\n\n**seconds** - how long fan will run [1..65000]\n\n\n### getStopInt(stack)\n\nReturn remaining time until fan will stop\n\n**stack** - stack level, set with jumper [0/1]\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A set of functions to control Sequent Microsystems Smart Fan card",
    "version": "1.1.3",
    "project_urls": {
        "Homepage": "https://www.sequentmicrosystems.com"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8d9da41d39d4b11cf4ba02c577777871428af8cae06bf362e67172a75ef48737",
                "md5": "da796e3d2eeae8e90fbb6582c0cb82cd",
                "sha256": "504c2fc298de05b125aff2f25fcd66ad306835f5985a36a7d91292ff4162f042"
            },
            "downloads": -1,
            "filename": "SMsfan-1.1.3-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "da796e3d2eeae8e90fbb6582c0cb82cd",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 3920,
            "upload_time": "2024-09-29T17:19:49",
            "upload_time_iso_8601": "2024-09-29T17:19:49.380909Z",
            "url": "https://files.pythonhosted.org/packages/8d/9d/a41d39d4b11cf4ba02c577777871428af8cae06bf362e67172a75ef48737/SMsfan-1.1.3-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "86d2dd9ead4c56157a1b3e3d67787d61e9b7165b4f832dbbd41481ef2adaf380",
                "md5": "f361aa3e548af7b61e03ddec76e9af73",
                "sha256": "f038f4eef443e526a39cecafa9016eb4eb7584f83baac91e80f8a4a25f483940"
            },
            "downloads": -1,
            "filename": "smsfan-1.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "f361aa3e548af7b61e03ddec76e9af73",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3795,
            "upload_time": "2024-09-29T17:19:51",
            "upload_time_iso_8601": "2024-09-29T17:19:51.038869Z",
            "url": "https://files.pythonhosted.org/packages/86/d2/dd9ead4c56157a1b3e3d67787d61e9b7165b4f832dbbd41481ef2adaf380/smsfan-1.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-29 17:19:51",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "smsfan"
}
        
Elapsed time: 0.42414s