{ "info": { "author": "Ardexa Pty Limited", "author_email": "support@ardexa.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "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" ], "description": "\n# Purpose\nThe purpose of this project is to collect from Kaco Inverters and send the data to your cloud using Ardexa. Data from Kaco solar inverters is read using an RS485 connection and a Linux device such as a Raspberry Pi, or an X86 intel powered computer. \n\n## How does it work\nThis application is written in Python, to query Kaco inverters connected via RS485. This application will query 1 or more connected inverters at regular intervals. Data will be written to log files on disk in a directory specified in the script. Usage and command line parameters are as follows:\n\n```\n# sudo kaco_ardexa log --help\nUsage: kaco_ardexa log [OPTIONS] SERIAL_DEVICE BUS_ADDRESSES OUTPUT_DIRECTORY\n\n Contact each inverter and log the latest readings\n```\n\nFor example\n```\nsudo kaco_ardexa log /dev/ttyS0 2,4-7 /opt/ardexa/kaco/logs\n```\n\n## RS485 to USB converter\nKaco inverters can use RS485 as a means to communicate data and settings\nRS485 is a signalling protocol that allows many devices to share the same physical pair of wires, in a master master/slave relationship\nSee -> http://www.usb-serial-adapter.org/ for further information\n\nWhen an RS485 to USB converter has been plugged in, on Linux systems the device will connect to something line /dev/ttyUSB0. To check:\n```\nsudo tail -f /var/log/syslog\n...then plug in the converter\n```\nYou should see a line like: `usb 1-1.4: ch341-uart converter now attached to ttyUSB0`\nThis means that the RS485 serial port can be accessed by the logical device `/dev/ttyUSB0`\nAlternatively, try: `dmesg | grep tty`\n\n## Inverter to RS485 (DB9) Physical Connection\nIf your computer has an RS485 port, then the inverter can be connected directly to this port.\nThe inverter is connected using 3 wires to the RS485 DB9 port on the computer. DO NOT connect the inverter RS485 to a RS232 port. They are not voltage compatible and damage will probably occur. For this to happen, you need a devices like these:\n- http://www.robotshop.com/en/db9-female-breakout-board.html\n- https://core-electronics.com.au/db9-female-breakout-board.html\n- https://www.amazon.com/Female-Breakout-Board-Screw-Terminals/dp/B00CMC1XFU\n\nEach and every RS485 port that uses DB9 has a different pinout. So you have to read the actual manual for the physical RS485 port you are using. \nFor example; if using the Advantech UNO 2362G, the following pins are used: Pin1 = D- , Pin 2 = D+ and Pin 5 = GND. All other pins are not connected, so do not connect any other pins. \nSo to wire it all up:\n- Make sure the Advantech is turned off\n- D+ Pin from the Kaco Inverter (should be Pin 2 on the RS485 inverter interface) to Pin 2 of the RS485 DB-9 (Female) on the Advantech UNO 2362G\n- GND Pin from the Kaco Inverter (should be Pin 5 on the RS485 inverter interface) to Pin 5 of the RS485 DB-9 (Female) on the Advantech UNO 2362G\n- D- Pin from the Kaco Inverter (should be Pin 7 on the RS485 inverter interface) to Pin 1 of the RS485 DB-9 (Female) on the Advantech UNO 2362G\n\nConfirm the physical serial port by running the command `dmesg | grep tty`. As stated previously, it should return something like `/dev/ttyS1` if using a serial com port, or something like `/dev/ttyUSB0` if using a 485/USB serial converter.\n\n## The Kaco Protocol\nKaco (http://kaco-newenergy.com/) supply supply retail and commercial grade Solar PV inverters. This python script is designed to collect data from Kaco Powador inverters. It collects from the Powador 30.0-39.0 series of inverters, using RS485 connected devices. It can be easily adapted to other Kaco inverter types. Contact us to help you with adapting this script to collect from other Kaco inverters.\nThe kaco protocol is detailed in this document -> https://www.photovoltaikforum.com/download/file.php?id=11571. Unfortunately it is in German, so we have translated it to English as best we can. You can find it in the 'docs' directory.\n\n## How to use the script\nOn a raspberry Pi, or other Linux machines (arm, intel, mips or whetever), make sure Python is installed (which it should be). Then install the pip package:\n```\nsudo apt-get update\nsudo apt-get install python-pip\nsudo pip install kaco-ardexa\n```\n\nNote that the applications should be run as root only since needs access to a device in the `/dev` directory. \n\n## Collecting to the Ardexa cloud\nCollecting to the Ardexa cloud is free for up to 3 Raspberry Pis (or equivalent). Ardexa provides free agents for ARM, Intel x86 and MIPS based processors. To collect the data to the Ardexa cloud do the following:\na. Create a `RUN` scenario to schedule the Ardexa Kaco script to run at regular intervals (say every 300 seconds/5 minutes).\nb. Then use a `CAPTURE` scenario to collect the csv (comma separated) data from the filename `/opt/ardexa/kaco/logs/`. This file contains a header entry (as the first line) that describes the CSV elements of the file.\n\n## Help\nContact Ardexa at support@ardexa.com, and we'll do our best efforts to help.\n\n\n\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/ardexa/kaco-inverters", "keywords": "kaco solar inverter ardexa", "license": "", "maintainer": "", "maintainer_email": "", "name": "kaco-ardexa", "package_url": "https://pypi.org/project/kaco-ardexa/", "platform": "", "project_url": "https://pypi.org/project/kaco-ardexa/", "project_urls": { "Bug Reports": "https://github.com/ardexa/kaco-inverters/issues", "Homepage": "https://github.com/ardexa/kaco-inverters", "Source": "https://github.com/ardexa/kaco-inverters/" }, "release_url": "https://pypi.org/project/kaco-ardexa/1.0.2/", "requires_dist": [ "future", "ardexaplugin", "Click", "pyserial" ], "requires_python": ">=2.7", "summary": "Collect from Kaco Inverters and send the data to your cloud using Ardexa", "version": "1.0.2" }, "last_serial": 4457428, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "8c67703ddd38681caaf8951492c64565", "sha256": "a50d46ce38d707651e1815b011af7b227df8c2ed63b37c37117ae8d387b48993" }, "downloads": -1, "filename": "kaco_ardexa-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8c67703ddd38681caaf8951492c64565", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7", "size": 7651, "upload_time": "2018-11-01T22:59:57", "url": "https://files.pythonhosted.org/packages/d9/0e/dac1b9a366442ed387cc6a24eae5b3086a29bb22a18d4e65278639d40294/kaco_ardexa-1.0.0-py2.py3-none-any.whl" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "b9775a45ef094f418983bac39b130022", "sha256": "bf1dc3667a61c25306a21b37f4810afa05a2913f5ac786a6a72569b27b12f63e" }, "downloads": -1, "filename": "kaco_ardexa-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b9775a45ef094f418983bac39b130022", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7", "size": 7515, "upload_time": "2018-11-06T13:24:35", "url": "https://files.pythonhosted.org/packages/12/26/12206ff35f23d1637389d80be76d1fb856e9c194ecfc2c67255c4eaf1aaa/kaco_ardexa-1.0.1-py2.py3-none-any.whl" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "85a1f2bf6b4e9a2f405747b995c63d54", "sha256": "58c700ccd974b2f5bb9cb47e0bab2e7ce9c49c0b8a150a1546ec98405490bc8e" }, "downloads": -1, "filename": "kaco_ardexa-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "85a1f2bf6b4e9a2f405747b995c63d54", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7", "size": 7517, "upload_time": "2018-11-06T13:43:27", "url": "https://files.pythonhosted.org/packages/6d/96/645af1b02150816839b1cf47c3715dedb070e84ad5276907afada8ad2ce3/kaco_ardexa-1.0.2-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "85a1f2bf6b4e9a2f405747b995c63d54", "sha256": "58c700ccd974b2f5bb9cb47e0bab2e7ce9c49c0b8a150a1546ec98405490bc8e" }, "downloads": -1, "filename": "kaco_ardexa-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "85a1f2bf6b4e9a2f405747b995c63d54", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7", "size": 7517, "upload_time": "2018-11-06T13:43:27", "url": "https://files.pythonhosted.org/packages/6d/96/645af1b02150816839b1cf47c3715dedb070e84ad5276907afada8ad2ce3/kaco_ardexa-1.0.2-py2.py3-none-any.whl" } ] }