{ "info": { "author": "Grillbaer", "author_email": "holgflei+tsic@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Operating System :: Other OS", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Physics", "Topic :: Software Development :: Embedded Systems" ], "description": "# python-tsic\n\nReceive temperature readings from TSic sensor chips connected to Raspberry Pi GPIO. \n\nSupported:\n* TSic 206/306\n* TSic 506\n* TSic 706\n\nDon't forget the bypass capacitor as near as possible to the sensor's power supply pins to get stable behavior.\n\n## Dependencies\n\nThe package `tsic` requires Python 3 and the great library `pigpio` for GPIO access with precise timing. Note that Python 2 will not work.\n\n## Installation\n\nInstall from Python package index [PyPI](https://pypi.org/project/tsic/):\n```\npip3 install tsic\n```\n\n## Usage\n\nThe module `tsic` provides the following classes:\n* `TsicInputChannel` receive temperature measurements\n* `Measurement` a temperature measurement\n* `TsicType` TSic type definition with instances `TSIC206`, `TSIC306`, `TSIC506`, `TSIC716` (206 and 306 are currently equivalent)\n* `ZacWireInputChannel` receive byte packets over ZACWire protocol (low-level handler for `TsicInputChannel`)\n\n### Command Line Test Tool\n\nRun `tsic [--type {206,506,716,306}] [--loop]` to read temperatures from a GPIO pin (Broadcom numbering). See `tsic --help` for command line usage.\n\n```\npi@raspi3:~ $ sudo tsic 19 --type 306\nReceiving data from TSic 206/306...\nMeasurement 17.90\u00b0C at 2018-11-10 16:16:11.419573\n```\n\n### Examples \n\nFrom file `example.py`:\n```python\nimport time\nimport pigpio\n\nfrom tsic import TsicInputChannel, Measurement, TSIC306\n\n# TsicInputChannel and ZacWireInputChannel require pigpio\n# for GPIO access with precise timing:\npi = pigpio.pi()\n\ntsic = TsicInputChannel(pigpio_pi=pi, gpio=17, tsic_type=TSIC306)\n\nprint('\\nA. Single measurement:')\nprint(tsic.measure_once(timeout=1.0))\n\nprint('\\nB. All measurements for 1 second:')\ntsic.start(lambda measurement: print(measurement))\ntime.sleep(1)\ntsic.stop()\n\nprint('\\nC. One measurement per second for 3 seconds:')\n\n# start receiving in a context:\nwith tsic:\n for i in range(3):\n time.sleep(1)\n measurement = tsic.measurement\n if measurement == Measurement.UNDEF:\n print(measurement)\n else:\n print('{:d} {:.1f}\u00b0C'.format(i+1, measurement.degree_celsius))\n\npi.stop()\n```\n\n## Source Code\n\nHosted on [github.com/grillbaer/python-tsic](https://github.com/grillbaer/python-tsic)\n\nWith greetings from Bavaria,\nHolger\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/grillbaer/python-tsic", "keywords": "raspberrypi,raspberry,tsic,gpio,temperature,sensor", "license": "", "maintainer": "", "maintainer_email": "", "name": "tsic", "package_url": "https://pypi.org/project/tsic/", "platform": "", "project_url": "https://pypi.org/project/tsic/", "project_urls": { "Homepage": "https://github.com/grillbaer/python-tsic" }, "release_url": "https://pypi.org/project/tsic/2.0.1/", "requires_dist": [ "pigpio" ], "requires_python": "", "summary": "Receive temperature readings from TSic 206/306/506/716 sensor chips on Raspberry Pi", "version": "2.0.1" }, "last_serial": 5224898, "releases": { "2.0.0": [ { "comment_text": "", "digests": { "md5": "c7bfa4cfd5ebd1925a013e3a41e4e7c7", "sha256": "47c3cda0ed9206858d90bd8dd312df76250754cffbf4b746336eb1fb0573ad58" }, "downloads": -1, "filename": "tsic-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "c7bfa4cfd5ebd1925a013e3a41e4e7c7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10911, "upload_time": "2019-05-03T20:17:42", "url": "https://files.pythonhosted.org/packages/0f/61/48fdf5d979e987ead8b4f90751ae98b7d386e09e266d79c29e9b1eaf5f72/tsic-2.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8668c86a8ad7066daa2cd3e2c344c8df", "sha256": "8e6a34123e664559003355d6764aa48167539fc9f8eeccadc5db39118ee0d0c8" }, "downloads": -1, "filename": "tsic-2.0.0.tar.gz", "has_sig": false, "md5_digest": "8668c86a8ad7066daa2cd3e2c344c8df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6302, "upload_time": "2019-05-03T20:17:43", "url": "https://files.pythonhosted.org/packages/60/98/9b3726b9330b087adebc9cc2087e9c15538df72799df13a613bdeb822bd1/tsic-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "87d4ca4cfd7f83ad4f641d9e575487f9", "sha256": "0b12b52836af616bc87a0b3be06b885064dd60d9d767203c6de5c0a0358cb97c" }, "downloads": -1, "filename": "tsic-2.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "87d4ca4cfd7f83ad4f641d9e575487f9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10902, "upload_time": "2019-05-04T07:45:20", "url": "https://files.pythonhosted.org/packages/e4/07/97fef18d1fc19d1045baad62403e6ce0421e2d43ac9ec9ebf870917bb9a7/tsic-2.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cf359fc81f975ee2f76083b27bc35120", "sha256": "bef1e4ea60ee212a5dba119bdb023981e57e76b37ad94c7967a9f286edeaf498" }, "downloads": -1, "filename": "tsic-2.0.1.tar.gz", "has_sig": false, "md5_digest": "cf359fc81f975ee2f76083b27bc35120", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6314, "upload_time": "2019-05-04T07:45:21", "url": "https://files.pythonhosted.org/packages/1a/a3/9ae72cd9ba117a59ea9bd128d03aab9f8c0beb0fee0b38b1e088c4553cb2/tsic-2.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "87d4ca4cfd7f83ad4f641d9e575487f9", "sha256": "0b12b52836af616bc87a0b3be06b885064dd60d9d767203c6de5c0a0358cb97c" }, "downloads": -1, "filename": "tsic-2.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "87d4ca4cfd7f83ad4f641d9e575487f9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10902, "upload_time": "2019-05-04T07:45:20", "url": "https://files.pythonhosted.org/packages/e4/07/97fef18d1fc19d1045baad62403e6ce0421e2d43ac9ec9ebf870917bb9a7/tsic-2.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cf359fc81f975ee2f76083b27bc35120", "sha256": "bef1e4ea60ee212a5dba119bdb023981e57e76b37ad94c7967a9f286edeaf498" }, "downloads": -1, "filename": "tsic-2.0.1.tar.gz", "has_sig": false, "md5_digest": "cf359fc81f975ee2f76083b27bc35120", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6314, "upload_time": "2019-05-04T07:45:21", "url": "https://files.pythonhosted.org/packages/1a/a3/9ae72cd9ba117a59ea9bd128d03aab9f8c0beb0fee0b38b1e088c4553cb2/tsic-2.0.1.tar.gz" } ] }