{ "info": { "author": "HARDWARIO s.r.o.", "author_email": "ask@hardwario.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.6", "Topic :: Scientific/Engineering :: Human Machine Interfaces" ], "description": "# Cooper Control Tool\n\n[![Travis](https://img.shields.io/travis/hardwario/cpgw/master.svg)](https://travis-ci.org/hardwario/cpgw)\n[![Release](https://img.shields.io/github/release/hardwario/cpgw.svg)](https://github.com/hardwario/cpgw/releases)\n[![License](https://img.shields.io/github/license/hardwario/cpgw.svg)](https://github.com/hardwario/cpgw/blob/master/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/cpgw.svg)](https://pypi.org/project/cpgw/)\n\n\nThis is the Gateway tool for cooper dongle\n\n## Installing\n\nYou can install **cpgw** directly from PyPI:\n\n\n```sh\nsudo pip3 install -U cpgw\n```\n\n> Note: You may need to use `sudo` before the command - it depends on the operating system used...\n\n## Config\n\nInsert this snippet to the file /etc/cooper/cpgw.yml:\n```\ndevice: /dev/ttyUSB0\nzmq:\n publisher:\n host: 127.0.0.1\n port: 5680\n dispatcher:\n host: 127.0.0.1\n port: 5681\n```\n\n## Usage\n\n### As cli tool\n\n```sh\ncpgw -c /etc/cooper/cpgw.yml\n```\n\n### Systemd\n\nInsert this snippet to the file /lib/systemd/system/cpgw.service:\n```\n[Unit]\nDescription=COOPER cpgw\nAfter=network.target\n\n[Service]\nType=simple\nUser=pi\nExecStart=/usr/local/bin/cpgw -c /etc/cooper/cpgw.yml\nRestart=always\nRestartSec=5\nStartLimitIntervalSec=0\n\n[Install]\nWantedBy=multi-user.target\n```\n\nStart the service:\n\n systemctl start cpgw.service\n\nEnable the service start on boot:\n\n systemctl enable cpgw.service\n\nView the service log:\n\n journalctl -u cpgw.service -f\n\n\n### PM2\n```sh\npm2 start `which python3` --name \"cpgw\" -- `which cpgw` -c /etc/cooper/cpgw.yml\n```\n\n### As library\n\n```python\nfrom cpgw.gateway import Gateway\n\ndef on_recv(payload):\n print(payload)\n\ngw = Gateway(\"/dev/ttyUSB0\")\ngw.on_recv = on_recv\ngw.run()\n\n```\n\n## License\n\nThis project is licensed under the [**MIT License**](https://opensource.org/licenses/MIT/) - see the [**LICENSE**](LICENSE) file for details.", "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/hardwario/cpgw", "keywords": "cooper,cli,tool", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "cpgw", "package_url": "https://pypi.org/project/cpgw/", "platform": "", "project_url": "https://pypi.org/project/cpgw/", "project_urls": { "Homepage": "https://github.com/hardwario/cpgw" }, "release_url": "https://pypi.org/project/cpgw/1.6.0/", "requires_dist": null, "requires_python": "", "summary": "Cooper Gateway", "version": "1.6.0" }, "last_serial": 5209092, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "759401a28a18ae1cbe761a0cf3cdbcf2", "sha256": "ca9b237bf664765437930d13d26c7ee804bba71cfd93852e4097fbd048bd1581" }, "downloads": -1, "filename": "cpgw-1.1.0.tar.gz", "has_sig": false, "md5_digest": "759401a28a18ae1cbe761a0cf3cdbcf2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3124, "upload_time": "2018-09-11T08:10:15", "url": "https://files.pythonhosted.org/packages/79/bf/837df4bc671b556d5f7ad908aacbf224fd11da54e20280f5defb18759868/cpgw-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "9c171a4d77c65672c5ffee534732770f", "sha256": "08b2f970fdd8678a9e1c8f0f85588472772202f4355a07a92b3c89216ecc19d6" }, "downloads": -1, "filename": "cpgw-1.2.0.tar.gz", "has_sig": false, "md5_digest": "9c171a4d77c65672c5ffee534732770f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3492, "upload_time": "2018-09-28T08:03:32", "url": "https://files.pythonhosted.org/packages/bc/61/ffd5a26fb2a583b021cac966cca3b220701530e75d88e331ad0b61004fb3/cpgw-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "299b57c86eee5a22566e9774c27b66d5", "sha256": "3099ac81376d112950d986fa4d0c924f4422e4cf4f72bd93f6b249adf573fe58" }, "downloads": -1, "filename": "cpgw-1.2.1.tar.gz", "has_sig": false, "md5_digest": "299b57c86eee5a22566e9774c27b66d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3499, "upload_time": "2018-09-28T09:15:16", "url": "https://files.pythonhosted.org/packages/95/4e/a9cd35531dc51b1b9645cf2430954bf166d8653c990bfc36097558060f9d/cpgw-1.2.1.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "4aeec74cf0b1b3ce2e3cf3b5f3e768b3", "sha256": "17f7bbb7bce33a6a5268aaa68f0dc2330a0e71bff955307f0c205e6d848c9d0a" }, "downloads": -1, "filename": "cpgw-1.3.0.tar.gz", "has_sig": false, "md5_digest": "4aeec74cf0b1b3ce2e3cf3b5f3e768b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3892, "upload_time": "2018-09-28T10:24:36", "url": "https://files.pythonhosted.org/packages/83/b5/f4e22cd7467ed1e79bc3dc31f7581c8cf18868cc303e188631101ba1c4cd/cpgw-1.3.0.tar.gz" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "14502f5257982564cbd07dd0aaafe479", "sha256": "f036ed2eb01ced9e6016564b46fb26d5b970d171bb3eb3952193d0171f0c5a1d" }, "downloads": -1, "filename": "cpgw-1.4.0.tar.gz", "has_sig": false, "md5_digest": "14502f5257982564cbd07dd0aaafe479", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4002, "upload_time": "2018-10-08T12:53:41", "url": "https://files.pythonhosted.org/packages/1f/0c/b00f73533b2f60263f85f9e599b62fca8a7cd1ffdf6f00ad05c6dd0e1781/cpgw-1.4.0.tar.gz" } ], "1.4.1": [ { "comment_text": "", "digests": { "md5": "8ea4102803221cd0e4d5be7a646eacd9", "sha256": "e6c14832ab77f49e44ac0123b240416aeb18be3d394982c1b89f1e2bf928d1de" }, "downloads": -1, "filename": "cpgw-1.4.1.tar.gz", "has_sig": false, "md5_digest": "8ea4102803221cd0e4d5be7a646eacd9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5558, "upload_time": "2018-11-20T16:53:46", "url": "https://files.pythonhosted.org/packages/01/c7/a4caafeb041f8644a540d7b27d74a099a963d0d7a18b3206a5282f501875/cpgw-1.4.1.tar.gz" } ], "1.5.0": [ { "comment_text": "", "digests": { "md5": "2456009edf2724f632ef80fd38ad0bb4", "sha256": "7b7919852f6a2375031219616d2700497c9b1fc726b9262626bad7ad3e336372" }, "downloads": -1, "filename": "cpgw-1.5.0.tar.gz", "has_sig": false, "md5_digest": "2456009edf2724f632ef80fd38ad0bb4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6006, "upload_time": "2018-11-21T05:44:10", "url": "https://files.pythonhosted.org/packages/c8/7b/f5560b3551bd508ddfe838ad6017f89a8dbbf2cddfb056a9578a816c116f/cpgw-1.5.0.tar.gz" } ], "1.5.1": [ { "comment_text": "", "digests": { "md5": "6197a94caaab79cc1409f3fa041508ab", "sha256": "6f9818d9afc0e22e2dbf44786b2c39232629eb8962bdc8966836edbced7917c9" }, "downloads": -1, "filename": "cpgw-1.5.1.tar.gz", "has_sig": false, "md5_digest": "6197a94caaab79cc1409f3fa041508ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6058, "upload_time": "2019-01-29T12:22:23", "url": "https://files.pythonhosted.org/packages/5c/e2/1931487d7b94c3532faaa74b00ab92d551f082fd597be9970b9e2ed2a98b/cpgw-1.5.1.tar.gz" } ], "1.5.2": [ { "comment_text": "", "digests": { "md5": "9371277ac6051a3de96e849c39ad0926", "sha256": "7b561a6481fc1c129ce998cf991e0e255355156d4ab851e6809358f0adc468dd" }, "downloads": -1, "filename": "cpgw-1.5.2.tar.gz", "has_sig": false, "md5_digest": "9371277ac6051a3de96e849c39ad0926", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6059, "upload_time": "2019-04-17T16:48:52", "url": "https://files.pythonhosted.org/packages/a3/96/4c5c5a577160584826eb6edb1bb4e217106d5d5e155ce79115a83cc110a3/cpgw-1.5.2.tar.gz" } ], "1.6.0": [ { "comment_text": "", "digests": { "md5": "77a870f6db1fa9f91ec2bfec4d5fd1f8", "sha256": "e18346adfef603e88d0a095f9aa660fd108a6d46f316271c0df0e30173c92cce" }, "downloads": -1, "filename": "cpgw-1.6.0.tar.gz", "has_sig": false, "md5_digest": "77a870f6db1fa9f91ec2bfec4d5fd1f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6311, "upload_time": "2019-04-30T16:14:12", "url": "https://files.pythonhosted.org/packages/17/33/cbe451effb4e1b32e6f97b5ff1571175486f7458c57ca2197baa7938e2aa/cpgw-1.6.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "77a870f6db1fa9f91ec2bfec4d5fd1f8", "sha256": "e18346adfef603e88d0a095f9aa660fd108a6d46f316271c0df0e30173c92cce" }, "downloads": -1, "filename": "cpgw-1.6.0.tar.gz", "has_sig": false, "md5_digest": "77a870f6db1fa9f91ec2bfec4d5fd1f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6311, "upload_time": "2019-04-30T16:14:12", "url": "https://files.pythonhosted.org/packages/17/33/cbe451effb4e1b32e6f97b5ff1571175486f7458c57ca2197baa7938e2aa/cpgw-1.6.0.tar.gz" } ] }