{ "info": { "author": "civic", "author_email": "dev@civic-apps.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Communications", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Elitech RC4 / RC5 DataReader\n====================================\n\n\nDescription\n-----------\n\nThis software is a data collecting tool, written in python for Temperature data logger RC-4/RC-5 and Temperature and Humidity data logger RC-4HC.\n\n[Elitech RC-4](http://www.elitech.uk.com/temperature_logger/Elitech_UK__Mini_USB_Temperature_Data_logger_URC_4_149.html) / \n[RC-4HC](http://www.elitech.uk.com/temperature_logger/RC_4HC_Temperature_and_Humidity_Data_Logger_150.html) / \n[RC-5](http://www.e-elitech.com/jingChuang3/shouYe.do?operate=doProductDetail&chanpinId=156) \nis a reasonable data logger.\n\n**RC-5+(Note the plus \"+\" sign). ** is not supperted.\n\nEnables to use RC-4/RC-5 on Mac, Linux, Windows.\n\nThis is an unofficial tool. This tool was made by monitoring and guessing serial communication data. That is why this software is not perfect.\n\nRequirements\n------------\n\n- Python2.7, 3.4, 3.5, 3.6, 3.7\n- Serial Port Driver\n - (for RC-4 series) Silicon Labs CP210x USB-UART bridge VCP driver. \n - (for RC-5) CH340 Serial Driver [MacOSX](http://www.wch.cn/download/CH341SER_MAC_ZIP.html) (mac driver is unstable)\n - for sierra Signed Mac OS Driver \n \n- pySerial (data access library for serial port)\n\n\nSetup\n------------\n\n1. Install Serial Port Driver.\n - for RC-4 series: CP210x USB-UART bridge VCP driver. Download and install CP210x driver for your platform.\n \n - for RC-5: CH340 Serial Driver [MacOSX](http://www.wch.cn/download/CH341SER_MAC_ZIP.html)(mac driver is unstable)\n - for sierra Signed Mac OS Driver \n \n\n2. install dependencies.\n\n```\n$ python setup.py install\n```\n\nOR pip\n\n```\n$ pip install elitech-datareader\n```\n\n3. Linux: Add yourself to the dialout group. Restart required.\n```\nsudo usermod -a -G dialout $USER\n```\n\n\nExample(Script)\n--------------\n\n### Initialize device.\n\ninitialize. rec interval 10sec. set clock now.\n\n```\n$ elitech-datareader --command simple-set --interval=10 /dev/tty.SLAB_USBtoUART # RC-4 on macosx\n # /dev/tty.wchusbserialfd1430 # RC-5 on macosx\n```\n\n### Get data\n\nPress stop button for stop recording.\n\noutput to stdout.\n\n```\n$ elitech-datareader --command get /dev/tty.SLAB_USBtoUART\n6\n1\t2015-06-07 13:53:36\t25.0\n2\t2015-06-07 13:53:46\t25.1\n3\t2015-06-07 13:53:56\t25.1\n4\t2015-06-07 13:54:06\t25.1\n5\t2015-06-07 13:54:16\t25.1\n6\t2015-06-07 13:54:26\t25.1\n```\n\nElitech device gets the data in units called \"Page size\".\nPage size is determined by the device model. RC4 is 100 and RC5 is 500.\n\nYou can directly specify the page size, with an optional argument --page_size. (for debug)\n\n```\n$ elitech-datareader --command get --page_size=500 /dev/tty.SLAB_USBtoUART\n6\n1\t2015-06-07 13:53:36\t25.0\n2\t2015-06-07 13:53:46\t25.1\n3\t2015-06-07 13:53:56\t25.1\n4\t2015-06-07 13:54:06\t25.1\n5\t2015-06-07 13:54:16\t25.1\n6\t2015-06-07 13:54:26\t25.1\n```\n\n### Get latest data\n\n```\n$ elitech-datareader --command latest /dev/tty.SLAB_USBtoUART\n6\t2015-06-07 13:54:26\t25.1\n\n$ elitech-datareader --command latest --value_only /dev/tty.SLAB_USBtoUART\n25.2\n```\n\n\n### Get device information\n\nget device information.\n\n\n```\n$ elitech-datareader --command devinfo --encode=utf8 /dev/tty.SLAB_USBtoUART\nstation_no=3\nlast_online=2015-06-09 01:13:13\ntemp_unit=TemperatureUnit.C\nalarm=AlarmSetting.NONE\nwork_sts=WorkStatus.STOP\nlower_limit=-30.0\ntone_set=ToneSet.NONE\nrec_count=272\nupper_limit=60.0\ndelay=0.0\nstop_button=StopButton.ENABLE\ncurrent=2015-06-09 07:42:00\nstart_time=2015-06-07 13:53:36\nrec_interval=00:00:10\ntemp_calibration=-1.5\nuser_info=RC-4 Data Logger\ndev_num=9900112233\n```\n\n`user_info` is multibytes text. Use --encode option. (default UTF8)\n\nOn Elitech Software (Logger Data Management Software V2.0, Rc Logger), user info is encoded various charsets. (GBK, MS932).\n\n```\n$ elitech-datareader --command devinfo --encode=gbk /dev/tty.SLAB_USBtoUART # for mac os Rc Logger software\n```\nsee. \n\n\n### Parameter set\n\nset device parameter.\n\n```\n$ elitech-datareader --command set --interval=10 --upper_limit=60.0 --lower_limit=-30.0 \\\n--station_no=1 --stop_button=y --delay=0.0 --tone_set=y --alarm=x --temp_unit=C \\\n--temp_calibration=-1.5 --dev_num=1234567890 --encode=utf8 --user_info=\"UserInfo\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\" /dev/tty.SLAB_USBtoUART\n```\n\n`user_info` is multibytes text. Use --encode option. (default UTF8)\n\n### Debug raw communication\n\nSend raw request data. receive response data.\n\n```\n$ elitech-datareader --command raw --req=\"CC 00 06 00 D2\" -res_len=4 /dev/tty.SLAB_USBtoUART\n\nresponse length=4\n55 01 01 32\n```\n\n\n### Note (serial port)\n\nIf comunication unstable, then try `--ser_baudrate` and `--ser_timeout` option.\n\n```\n$ elitech-datareader --command devinfo --ser_baudrate 115200 --ser_timeout=10 /dev/tty.SLAB_USBtoUART\n```\n\nExample(Python module)\n-------\n\n### Get device infomation.\n\n```python\nimport elitech\n\ndevice = elitech.Device(\"/dev/tty.SLAB_USBtoUART\")\ndevinfo = device.get_devinfo()\nprint(devinfo.info)\n```\n\n### Get record data\n\n```python\nimport elitech\n\ndevice = elitech.Device(\"/dev/tty.SLAB_USBtoUART\")\nbody = device.get_data()\nfor elm in body:\n print elm\n \n```\n\n### Update param\n\n```python\ndevice = elitech.Device(\"/dev/tty.SLAB_USBtoUART\")\ndevinfo = device.get_devinfo() # get current parameters.\n\nparam_put = devinfo.to_param_put() #convart devinfo to parameter\nparam_put.rec_interval = datetime.time(0, 0, 10) # update parameter\nparam_put.stop_button = elitech.StopButton.ENABLE # update parameter\n\nparam_put_res = device.update(param_put) # update device\n\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/civic/elitech-datareader/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "elitech-datareader", "package_url": "https://pypi.org/project/elitech-datareader/", "platform": "any", "project_url": "https://pypi.org/project/elitech-datareader/", "project_urls": { "Homepage": "http://github.com/civic/elitech-datareader/" }, "release_url": "https://pypi.org/project/elitech-datareader/1.0.4/", "requires_dist": null, "requires_python": "", "summary": "Elitech rc4 data access tool and library.", "version": "1.0.4" }, "last_serial": 5815323, "releases": { "0.8.2": [ { "comment_text": "", "digests": { "md5": "e39bb271a20d37660e07acd463de721d", "sha256": "537d6c038b98045def4bf5da62473cee83d623cd71f0861dd64b2c8ed5b46543" }, "downloads": -1, "filename": "elitech-datareader-0.8.2.tar.gz", "has_sig": false, "md5_digest": "e39bb271a20d37660e07acd463de721d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10805, "upload_time": "2015-06-12T06:04:15", "url": "https://files.pythonhosted.org/packages/81/ed/6154df4c59e0fc4748070ac29ab413a810c3652b9f4c3ef340e37a219bd2/elitech-datareader-0.8.2.tar.gz" } ], "0.8.3": [ { "comment_text": "", "digests": { "md5": "21fa36aea388438a6d89e1a2a872d70b", "sha256": "a69e7f5d91afd179607fa5247f56660c0fb0e1f7ef9105a3d5b0401594eba213" }, "downloads": -1, "filename": "elitech-datareader-0.8.3.tar.gz", "has_sig": false, "md5_digest": "21fa36aea388438a6d89e1a2a872d70b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11285, "upload_time": "2015-06-15T15:55:56", "url": "https://files.pythonhosted.org/packages/0c/40/205250f881071732f897860a2ae8bebfd5830e2fd3f50ea4e91deb4fd4d9/elitech-datareader-0.8.3.tar.gz" } ], "0.9.0": [ { "comment_text": "", "digests": { "md5": "4253c13e414496f4d8d874d0468c0e5e", "sha256": "471a3751f5426a00eba32530c8a7b5623d33a056ec55a2e3e5cc6c3cf7b22094" }, "downloads": -1, "filename": "elitech-datareader-0.9.0.tar.gz", "has_sig": false, "md5_digest": "4253c13e414496f4d8d874d0468c0e5e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12219, "upload_time": "2015-09-06T22:38:35", "url": "https://files.pythonhosted.org/packages/45/50/780c30912c114dc1410db8bf483b5e5cf3aab5f007445bb967491cce5362/elitech-datareader-0.9.0.tar.gz" } ], "0.9.1": [ { "comment_text": "", "digests": { "md5": "f534598d3d48f74b84e47b76ebbb49a0", "sha256": "ced0a1dab56bb278e7a6a8c10a963769d54baad2f3d52240479526d1e748714a" }, "downloads": -1, "filename": "elitech-datareader-0.9.1.tar.gz", "has_sig": false, "md5_digest": "f534598d3d48f74b84e47b76ebbb49a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12352, "upload_time": "2015-11-24T14:02:30", "url": "https://files.pythonhosted.org/packages/eb/1c/7773007bcb7cd9fc9846bd384bd076c51fa42070a515bcf8734b8b9b56c0/elitech-datareader-0.9.1.tar.gz" } ], "0.9.3": [ { "comment_text": "", "digests": { "md5": "3445a3744d6f20cce24ffe58a1f86c36", "sha256": "1360844d7974a53d5d3133f9a13e189811c0d5a361d3493a02dda26050037734" }, "downloads": -1, "filename": "elitech-datareader-0.9.3.tar.gz", "has_sig": false, "md5_digest": "3445a3744d6f20cce24ffe58a1f86c36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15051, "upload_time": "2016-04-11T14:23:09", "url": "https://files.pythonhosted.org/packages/cb/6f/955aebbb132a8cf97d8728eb673a93efef88992690ba4d57dd9cd9102f36/elitech-datareader-0.9.3.tar.gz" } ], "0.9.4": [ { "comment_text": "", "digests": { "md5": "44d6be2ea7dfc54c322bf5509e8e3465", "sha256": "212ad3913cb46321b7748dcc74d9f69ccdeeb384dfbc8d0f4621f852db7d0811" }, "downloads": -1, "filename": "elitech-datareader-0.9.4.tar.gz", "has_sig": false, "md5_digest": "44d6be2ea7dfc54c322bf5509e8e3465", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15196, "upload_time": "2016-06-04T10:20:13", "url": "https://files.pythonhosted.org/packages/09/33/ad8ff34b2b7a7d11e7d4d1e64d5d43a8b9b478c4c421ee6d41f12d044751/elitech-datareader-0.9.4.tar.gz" } ], "0.9.5": [ { "comment_text": "", "digests": { "md5": "1d0d691d15e9c835874ac30266b80924", "sha256": "bd791b683cb4b33a8b22a80c68193613fe1e6ac5eca68e694dd394e62fa7ddb0" }, "downloads": -1, "filename": "elitech-datareader-0.9.5.tar.gz", "has_sig": false, "md5_digest": "1d0d691d15e9c835874ac30266b80924", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15816, "upload_time": "2017-02-11T06:46:37", "url": "https://files.pythonhosted.org/packages/3b/59/fcc61d68bb908dfeb9507e3381579d032df8a30b48b273378fb33e9f4062/elitech-datareader-0.9.5.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "53e4c5a124d0d925db3ea5d41bd4ec47", "sha256": "521561e2840d7c937607290e72bc415841dab0af0edb2b2cc7c1fee91940cdf1" }, "downloads": -1, "filename": "elitech_datareader-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "53e4c5a124d0d925db3ea5d41bd4ec47", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17683, "upload_time": "2018-10-18T02:33:50", "url": "https://files.pythonhosted.org/packages/fc/de/3a589ce903b274056915c44d2c221201dfe2a4a0188c887d24c2679a528b/elitech_datareader-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "de9393fac3449771ad0478a6cae39278", "sha256": "8cda9e25219dd1b782805a411d94b0e017595d5b916296ea0e326a4ce7182238" }, "downloads": -1, "filename": "elitech-datareader-1.0.2.tar.gz", "has_sig": false, "md5_digest": "de9393fac3449771ad0478a6cae39278", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17482, "upload_time": "2018-10-18T02:33:52", "url": "https://files.pythonhosted.org/packages/cf/2a/6b2715bb261c627e2bcb6e22840dbb14da3dc6d418e1114265655a4da096/elitech-datareader-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "a3e553190bd68d38d41ea7c483475576", "sha256": "90a983deaeb680b8b57b732053abc0bc33d5aeef2b9203c3738b1b31864f78a8" }, "downloads": -1, "filename": "elitech_datareader-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "a3e553190bd68d38d41ea7c483475576", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 17683, "upload_time": "2018-10-18T03:23:47", "url": "https://files.pythonhosted.org/packages/ff/18/6b32c8d2002b443863885fd802af8a30dfdeb69346052a6f7460a9bf36df/elitech_datareader-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "23e7cc57c9a9ee204ce22b58ddcffddd", "sha256": "54750102796fea388835efbdd4690a548f2961a01254952e6ce041abbb4ae2b7" }, "downloads": -1, "filename": "elitech-datareader-1.0.3.tar.gz", "has_sig": false, "md5_digest": "23e7cc57c9a9ee204ce22b58ddcffddd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17485, "upload_time": "2018-10-18T03:23:48", "url": "https://files.pythonhosted.org/packages/6b/4a/9b32adef983098d5cc82b7bd0e69eb3be140707019edbbedcfd6bc6dbf33/elitech-datareader-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "dd812ff6ac83fad9fc9992bdf190b3b2", "sha256": "132c8ba8241c71c3171f46fbc9d89492a3d635c0135be1bb3a22f89bdf46627f" }, "downloads": -1, "filename": "elitech-datareader-1.0.4.tar.gz", "has_sig": false, "md5_digest": "dd812ff6ac83fad9fc9992bdf190b3b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17264, "upload_time": "2019-09-11T14:33:19", "url": "https://files.pythonhosted.org/packages/61/04/a94f70c89b56ad9ef67ced86101b58c1f86049ef4883d9463ae7cda43cfe/elitech-datareader-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dd812ff6ac83fad9fc9992bdf190b3b2", "sha256": "132c8ba8241c71c3171f46fbc9d89492a3d635c0135be1bb3a22f89bdf46627f" }, "downloads": -1, "filename": "elitech-datareader-1.0.4.tar.gz", "has_sig": false, "md5_digest": "dd812ff6ac83fad9fc9992bdf190b3b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17264, "upload_time": "2019-09-11T14:33:19", "url": "https://files.pythonhosted.org/packages/61/04/a94f70c89b56ad9ef67ced86101b58c1f86049ef4883d9463ae7cda43cfe/elitech-datareader-1.0.4.tar.gz" } ] }