senseair-s8


Namesenseair-s8 JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryPython library for interfacing with a Senseair S8 CO2 sensor.
upload_time2025-08-22 12:18:12
maintainerNone
docs_urlNone
authorNick Doornekamp
requires_python>=3.6
licenseMIT
keywords senseair co2 sensor python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Senseair S8 for Python

Python module for reading CO2 concentration from a Senseair S8 sensor connected to a Raspberry Pi

## Connecting the Senseair S8 to your Raspberry Pi

Hook up the Senseair S8 to your Raspberry Pi using the following schematic:

![Connection schematic](connection_schematic.PNG "Connection schematic")

Image source: http://co2meters.com/Documentation/AppNotes/AN168-S8-raspberry-pi-uart.pdf

## Module installation

```bash
pip install senseair-s8
```

## Usage

As a module:

```python
from senseair_s8 import SenseairS8

senseair_s8 = SenseairS8()
print(senseair_s8.co2())
```

From the command line:

```bash
python -m senseair_s8
```

## Troubleshooting

- This module expects the sensor to be connected to port `/dev/ttyS0`. It was only tested using that port, but you can override this settings when initialising the sensor:

```python
sensair_s8 = SenseairS8(port='/dev/ttyS0')
```

- Out of the box, `/dev/ttyS0` is disabled on a Raspberry Pi, resulting in a `permission denied`-error. You can enable it by:
    1. Run `sudo raspi-config`
    2. Select Interfacting options
    3. Select P6 Serial
    4. Select No for login console
    5. Select Yes for serial port hardware
    6. OK, Finish, Reboot - Yes


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "senseair-s8",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "senseair, co2, sensor, python",
    "author": "Nick Doornekamp",
    "author_email": "nddoornekamp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/87/29/5de194596b40ee9b64eb3040ca22a789a8068e1d0248a5467dee0a3a7a95/senseair_s8-0.1.0.tar.gz",
    "platform": null,
    "description": "# Senseair S8 for Python\n\nPython module for reading CO2 concentration from a Senseair S8 sensor connected to a Raspberry Pi\n\n## Connecting the Senseair S8 to your Raspberry Pi\n\nHook up the Senseair S8 to your Raspberry Pi using the following schematic:\n\n![Connection schematic](connection_schematic.PNG \"Connection schematic\")\n\nImage source: http://co2meters.com/Documentation/AppNotes/AN168-S8-raspberry-pi-uart.pdf\n\n## Module installation\n\n```bash\npip install senseair-s8\n```\n\n## Usage\n\nAs a module:\n\n```python\nfrom senseair_s8 import SenseairS8\n\nsenseair_s8 = SenseairS8()\nprint(senseair_s8.co2())\n```\n\nFrom the command line:\n\n```bash\npython -m senseair_s8\n```\n\n## Troubleshooting\n\n- This module expects the sensor to be connected to port `/dev/ttyS0`. It was only tested using that port, but you can override this settings when initialising the sensor:\n\n```python\nsensair_s8 = SenseairS8(port='/dev/ttyS0')\n```\n\n- Out of the box, `/dev/ttyS0` is disabled on a Raspberry Pi, resulting in a `permission denied`-error. You can enable it by:\n    1. Run `sudo raspi-config`\n    2. Select Interfacting options\n    3. Select P6 Serial\n    4. Select No for login console\n    5. Select Yes for serial port hardware\n    6. OK, Finish, Reboot - Yes\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python library for interfacing with a Senseair S8 CO2 sensor.",
    "version": "0.1.0",
    "project_urls": null,
    "split_keywords": [
        "senseair",
        " co2",
        " sensor",
        " python"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "771c1f9f56f44a4c557f49708ed21093638a5d306c38dc2e986a00624e625312",
                "md5": "1aff9d0a15a16e3341d7067bad9bbe98",
                "sha256": "8cb28ef77eefaffa47b233c6656749b8f1e19bb8fb1593162221bf9817334495"
            },
            "downloads": -1,
            "filename": "senseair_s8-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1aff9d0a15a16e3341d7067bad9bbe98",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3447,
            "upload_time": "2025-08-22T12:18:11",
            "upload_time_iso_8601": "2025-08-22T12:18:11.942701Z",
            "url": "https://files.pythonhosted.org/packages/77/1c/1f9f56f44a4c557f49708ed21093638a5d306c38dc2e986a00624e625312/senseair_s8-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "87295de194596b40ee9b64eb3040ca22a789a8068e1d0248a5467dee0a3a7a95",
                "md5": "9c9d2c3ea6b075e11ca0ec6e19f8d9c0",
                "sha256": "a019c04d64e82f71c39bc24ba57e3cda5fb5d80613ab10fc071e58931123300c"
            },
            "downloads": -1,
            "filename": "senseair_s8-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "9c9d2c3ea6b075e11ca0ec6e19f8d9c0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 2444,
            "upload_time": "2025-08-22T12:18:12",
            "upload_time_iso_8601": "2025-08-22T12:18:12.930861Z",
            "url": "https://files.pythonhosted.org/packages/87/29/5de194596b40ee9b64eb3040ca22a789a8068e1d0248a5467dee0a3a7a95/senseair_s8-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-22 12:18:12",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "senseair-s8"
}
        
Elapsed time: 0.41895s