{ "info": { "author": "Alexey McSakoff", "author_email": "mcsakoff@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Operating System :: POSIX", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Communications", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Hardware", "Topic :: System :: Hardware :: Hardware Drivers" ], "description": "==========\nPyDigiTemp\n==========\n\nPython implementation of 1-Wire protocol.\n\nOriginally written to replace `digitemp `_ utility in my pet project\nand get direct access to 1-wire devices. It was created for reading DS1820 temperature sensor connected\nto RS232 serial port through DS9097 adapter.\n\nDocumentation used\n==================\n\n * `Using an UART to Implement a 1-Wire Bus Master `_\n * `Book of iButton\u00ae Standards `_ (PDF)\n * `DS18S20 High-Precision 1-Wire Digital Thermometer `_ (PDF)\n\nSupported Hardware\n==================\n\nMaster\n------\n\n * `DS9097 `_ - COM port adapter which performs RS-232C level conversion.\n * Custom 1-wire serial port interface (see below).\n\nSlave\n-----\n\n * `DS1820 / DS18S20 / DS1920 `_ - High-Precision Temperature Sensor.\n * `DS18B20 `_ - Programmable Resolution Temperature Sensor.\n * `DS1822 `_ - Econo Temperature Sensor.\n\nUsage\n=====\n\nFind ROM codes for all connected devices::\n\n from digitemp.master import UART_Adapter\n from digitemp.device import AddressableDevice\n\n print(AddressableDevice(UART_Adapter('/dev/ttyS0')).get_connected_ROMs())\n # ['108739A80208006F', '10A75CA80208001A']\n\nGet temperature::\n\n from digitemp.master import UART_Adapter\n from digitemp.device import DS1820\n\n bus = UART_Adapter('/dev/ttyS0') # DS9097 connected to COM1\n\n # only one 1-wire device on the bus:\n sensor = DS1820(bus)\n\n # specify device's ROM code if more than one 1-wire device on the bus:\n sensor = DS1820(bus, rom='10D67E5B02080037')\n\n # display sensor's information\n sensor.info()\n\n # get temperature\n print(sensor.get_temperature())\n # 25.48\n\nSet resolution for DS18B20 and DS1822)::\n\n from digitemp.device import DS18B20\n sensor = DS18B20(bus)\n\n sensor.set_resolution(DS18B20.RES_9_BIT)\n\n`digitemp.device` module provides following classes:\n\n * `DS18S20` - for DS1820, DS18S20 and DS1920 High-Precision Temperature Sensors (family code: `0x10`);\n * `DS18B20` - for DS18B20 Programmable Resolution Temperature Sensors (family code: `0x28`);\n * `DS1822` - for DS1822 Econo Temperature Sensor (family code: `0x22`)\n * `DS1820`, `DS1920` - are aliases for `DS18S20`\n\nSchematics\n==========\n\nIMPORTANT DISCLAIMER: All circuits presented here are collected from different sources on the Internet and thus are\nprovided on an entirely \"as-is and no guarantees\" basis. We do not provide a warranty of any kind and cannot be held\nresponsible in any manner.\n\n1-wire serial port interface\n----------------------------\n\nSee `Serial Port Temperature Sensors - Hardware Interface `_\nfor details.\n\n1-wire USB/UART adapter\n-----------------------\n\nThese are tested:\n\n * [ds18b20-uart.svg](docs/ds18b20-uart.svg)\n * [ds18b20-uart-par.svg](docs/ds18b20-uart-par.svg)\n * [ds18b20-uart-dioda.svg](docs/ds18b20-uart-dioda.svg)\n * [ds18b20-uart-diodapar.svg](docs/ds18b20-uart-diodapar.svg)\n\nNot all schematics work in all cases, depending on adapter and cable length.\n\nThese are not tested yet:\n\n * [ds18b20-uart-mosfet.svg](docs/ds18b20-uart-mosfet.svg)\n * [ds18b20-uart-npn.svg](docs/ds18b20-uart-npn.svg)\n\nLicense\n=======\n\nPython license. In short, you can use this product in commercial and non-commercial applications,\nmodify it, redistribute it. A notification to the author when you use and/or modify it is welcome.\n\nSee the LICENSE file for the actual text of the license.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/neenar/pydigitemp", "keywords": "1-wire,UART,RS232", "license": "Python", "maintainer": null, "maintainer_email": null, "name": "pydigitemp", "package_url": "https://pypi.org/project/pydigitemp/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pydigitemp/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/neenar/pydigitemp" }, "release_url": "https://pypi.org/project/pydigitemp/1.3/", "requires_dist": null, "requires_python": null, "summary": "Python implementation of 1-Wire protocol", "version": "1.3" }, "last_serial": 2476630, "releases": { "1.1.post1": [ { "comment_text": "", "digests": { "md5": "d0e526f755e0bee35e78488c3750c88b", "sha256": "6f68001c2ee927a41ed2ca0eb4bbe8eeca0b66f519f8b7192ef78cf56b3c6f91" }, "downloads": -1, "filename": "pydigitemp-1.1.post1.tar.gz", "has_sig": false, "md5_digest": "d0e526f755e0bee35e78488c3750c88b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10932, "upload_time": "2015-04-03T11:43:02", "url": "https://files.pythonhosted.org/packages/e5/81/34bf1655194640da142c1078a2885a02b48b42618aedbdd1becfe3bb1f78/pydigitemp-1.1.post1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "a3e185c20bc306d3154cb09da29e9b49", "sha256": "07b30b38cf2ea1c59450f679f2a85099abca76774865da1752d9bd4b213cf671" }, "downloads": -1, "filename": "pydigitemp-1.2.tar.gz", "has_sig": false, "md5_digest": "a3e185c20bc306d3154cb09da29e9b49", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9671, "upload_time": "2016-04-14T09:26:17", "url": "https://files.pythonhosted.org/packages/6d/f5/748ae82d7a507529b4ed4c50ecad0315a595edb33d9097c45ce5009d20f9/pydigitemp-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "2f18c1611ef037f1927af387973f6267", "sha256": "290986d3e6f64c706c338de68cdc2657408c53a322535ba4fc8b57a05c8cdf52" }, "downloads": -1, "filename": "pydigitemp-1.3.tar.gz", "has_sig": false, "md5_digest": "2f18c1611ef037f1927af387973f6267", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10226, "upload_time": "2016-11-22T15:57:59", "url": "https://files.pythonhosted.org/packages/09/17/c2d6b307887c9a8006487f7e228ed118e337fe41382868b5ec70f6f6f3b8/pydigitemp-1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2f18c1611ef037f1927af387973f6267", "sha256": "290986d3e6f64c706c338de68cdc2657408c53a322535ba4fc8b57a05c8cdf52" }, "downloads": -1, "filename": "pydigitemp-1.3.tar.gz", "has_sig": false, "md5_digest": "2f18c1611ef037f1927af387973f6267", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10226, "upload_time": "2016-11-22T15:57:59", "url": "https://files.pythonhosted.org/packages/09/17/c2d6b307887c9a8006487f7e228ed118e337fe41382868b5ec70f6f6f3b8/pydigitemp-1.3.tar.gz" } ] }