{ "info": { "author": "Matt Heitzenroder", "author_email": "mheitzenroder@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3" ], "description": "# AOSONG Sensors\n\nPython package that provides support for AOSONG Sensor.\n\nThis package and it's modules have been organized to support additional AOSONG\nsensors. It currently only supports the [AM2315 Temperature and Humidity\nSensor](https://www.adafruit.com/datasheets/AM2315.pdf). Additional sensors are\nencouraged and welcomed. Please submit a Pull Request.\n\nThe original author of this library was\n[Sopwith](http://sopwith.ismellsmoke.net). This repository was originally forked\nfrom the code provided by the author on [their\nblog](http://sopwith.ismellsmoke.net/?p=104). The purpose of the repository is\nto provide a pythonic library that can be installed with `pip` and `setuptools`.\n\n## Requirements\n\n* Python 3\n* [Quick2wire Python API](https://github.com/quick2wire/quick2wire-python-api)\n\n## Installation\n\n### Recommended\n```shell\npip install --process-dependency-links aosong\n```\n\n### Manual\n`python setup.py install`\n\n## Usage\n\n```python\n>>> from aosong import am2315\n>>> sensor = am2315.Sensor()\n>>> sensor.temperature()\n19.1\n>>> sensor.celsius()\n19.1\n>>> sensor.fahrenheit()\n66.3\n>>> sensor.temperature(True)\n66.3\n>>> sensor.humidity()\n70.1\n>>> sensor.data()\n(70.0, 19.1, 66.3)\n>>>\n\n```\n\n### Sensor.data()\nSensor.data() returns a tuple containing three values.\n\n`(41.8, 23.5, 74.3)`\n\nThe first value is the current relative humidity\nThe second value is the current temperature in Celsius.\nThe third value is the current temperature in Fahrenheit.\n\n### Sensor.temperature()\n\nSensor.temperature() returns the current temperature in Celsius.\n\nIf you want the current temperature returned in Fahrenheit pass True as a parameter.\n\n`sensor.temperature(True)`\n\n## Test script:\n\nam2315.py is a unittest script you should run to ensure your sensor\nis wired correctly. If it is, you should see the below test results.\n\n`python setup.py test`\n\n## Support and Contribution\n\nPull requests and Issues are welcome!\n\nOtherwise, please feel free to report bugs, comments, enhancement requests to:\n[sopwith@ismellsmoke.net](mailto:sopwith@ismellsmoke.net)\n[http://sopwith.ismellsmoke.net](http://sopwith.ismellsmoke.net)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://sopwith.ismellsmoke.net/?p=104", "keywords": null, "license": "Apache-2.0", "maintainer": null, "maintainer_email": null, "name": "aosong", "package_url": "https://pypi.org/project/aosong/", "platform": "Linux", "project_url": "https://pypi.org/project/aosong/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://sopwith.ismellsmoke.net/?p=104" }, "release_url": "https://pypi.org/project/aosong/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "AOSONG Sensors.", "version": "0.0.2" }, "last_serial": 1237222, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "98a957680fd3ed729ba0a51b38b54ece", "sha256": "472d831dccaebfcc06f803925e7c010f0f7c5e47d7ba7533f87b8ae94c5e8fab" }, "downloads": -1, "filename": "aosong-0.0.1.linux-armv6l.tar.gz", "has_sig": false, "md5_digest": "98a957680fd3ed729ba0a51b38b54ece", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7111, "upload_time": "2014-09-24T01:23:43", "url": "https://files.pythonhosted.org/packages/ef/3e/3981913ad284f325404b00856fa58cd844ec72052c53b9f2078b17124e2c/aosong-0.0.1.linux-armv6l.tar.gz" }, { "comment_text": "", "digests": { "md5": "e8e00d2f21180a23f0b8d41e683d8bfd", "sha256": "be352b52d87f0fdc078014b9132d4e24177433a916233deb9e78e0b4b2956327" }, "downloads": -1, "filename": "aosong-0.0.1.macosx-10.9-x86_64.tar.gz", "has_sig": false, "md5_digest": "e8e00d2f21180a23f0b8d41e683d8bfd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7393, "upload_time": "2014-09-25T05:03:23", "url": "https://files.pythonhosted.org/packages/69/3b/bee634680ebc5b8303a7a919b1f75942bf87552b4cbbc5441614d47b64a6/aosong-0.0.1.macosx-10.9-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "9af74215cbfcfed8e046a4557824ee24", "sha256": "0a7308298dd6479a99ec11291396659246ba7e64d0ff6ba766570ae34e5053bf" }, "downloads": -1, "filename": "aosong-0.0.1-py3.4.egg", "has_sig": false, "md5_digest": "9af74215cbfcfed8e046a4557824ee24", "packagetype": "bdist_egg", "python_version": "3.4", "requires_python": null, "size": 8914, "upload_time": "2014-09-24T01:23:52", "url": "https://files.pythonhosted.org/packages/94/ef/a3401a6c1963faf59147da1867fb4a50e310d02bbac04b1600daaf30b1ce/aosong-0.0.1-py3.4.egg" }, { "comment_text": "", "digests": { "md5": "d1a76e0044472a782e72adb8e858a264", "sha256": "46574a3e593be82b732fb16808f269572d9677e23183d0b7b97c875656ca357d" }, "downloads": -1, "filename": "aosong-0.0.1.tar.gz", "has_sig": false, "md5_digest": "d1a76e0044472a782e72adb8e858a264", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4388, "upload_time": "2014-09-24T01:23:56", "url": "https://files.pythonhosted.org/packages/5a/66/8aeb19f81e91673d6e4a2981703cabb68d8a02023dbef95cabaa70745738/aosong-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "3e3499df433e000650b2f774950a08ca", "sha256": "f8c05e2983d0d03b5aa778c4726879c1ddc5c8d33e085f9358d2a04aabf0d3a3" }, "downloads": -1, "filename": "aosong-0.0.2.macosx-10.9-x86_64.tar.gz", "has_sig": false, "md5_digest": "3e3499df433e000650b2f774950a08ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7389, "upload_time": "2014-09-25T05:33:53", "url": "https://files.pythonhosted.org/packages/36/d2/4a5fe31a0f2c3dacd90c16e481ab223de0a0603b3e0939eee9156b37a588/aosong-0.0.2.macosx-10.9-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "3d69a0cc0b1dacf163becafb3e89be70", "sha256": "fb324d71b4709c1bb1ff4b5108062c38f2d82f7e812422341d6baa1e9a66392d" }, "downloads": -1, "filename": "aosong-0.0.2.tar.gz", "has_sig": false, "md5_digest": "3d69a0cc0b1dacf163becafb3e89be70", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4660, "upload_time": "2014-09-25T05:33:57", "url": "https://files.pythonhosted.org/packages/9e/b1/dfeb8407b02de9fa16c7bdf1494217299e5b7f7613d3dd35a194c7162757/aosong-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3e3499df433e000650b2f774950a08ca", "sha256": "f8c05e2983d0d03b5aa778c4726879c1ddc5c8d33e085f9358d2a04aabf0d3a3" }, "downloads": -1, "filename": "aosong-0.0.2.macosx-10.9-x86_64.tar.gz", "has_sig": false, "md5_digest": "3e3499df433e000650b2f774950a08ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7389, "upload_time": "2014-09-25T05:33:53", "url": "https://files.pythonhosted.org/packages/36/d2/4a5fe31a0f2c3dacd90c16e481ab223de0a0603b3e0939eee9156b37a588/aosong-0.0.2.macosx-10.9-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "3d69a0cc0b1dacf163becafb3e89be70", "sha256": "fb324d71b4709c1bb1ff4b5108062c38f2d82f7e812422341d6baa1e9a66392d" }, "downloads": -1, "filename": "aosong-0.0.2.tar.gz", "has_sig": false, "md5_digest": "3d69a0cc0b1dacf163becafb3e89be70", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4660, "upload_time": "2014-09-25T05:33:57", "url": "https://files.pythonhosted.org/packages/9e/b1/dfeb8407b02de9fa16c7bdf1494217299e5b7f7613d3dd35a194c7162757/aosong-0.0.2.tar.gz" } ] }