{"id":20374850,"url":"https://github.com/gisce/iec870ree_moxa","last_synced_at":"2026-06-01T03:31:57.864Z","repository":{"id":45295889,"uuid":"140827646","full_name":"gisce/iec870ree_moxa","owner":"gisce","description":"Physical layer for using a Moxa devices with reeprotocol library","archived":false,"fork":false,"pushed_at":"2024-05-07T09:02:50.000Z","size":38,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-12-09T15:22:32.948Z","etag":null,"topics":["870-5-102","contadores","electric","hacktoberfest","iec","meters","moxa","python","ree"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gisce.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-13T09:34:33.000Z","updated_at":"2024-05-07T09:02:53.000Z","dependencies_parsed_at":"2024-11-15T05:16:30.364Z","dependency_job_id":null,"html_url":"https://github.com/gisce/iec870ree_moxa","commit_stats":{"total_commits":28,"total_committers":4,"mean_commits":7.0,"dds":0.5714285714285714,"last_synced_commit":"30e9c72a753ef49d14a9acd61a49b069d69d4c08"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/gisce/iec870ree_moxa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fiec870ree_moxa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fiec870ree_moxa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fiec870ree_moxa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fiec870ree_moxa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gisce","download_url":"https://codeload.github.com/gisce/iec870ree_moxa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gisce%2Fiec870ree_moxa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33759178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["870-5-102","contadores","electric","hacktoberfest","iec","meters","moxa","python","ree"],"created_at":"2024-11-15T01:27:19.858Z","updated_at":"2026-06-01T03:31:57.848Z","avatar_url":"https://github.com/gisce.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Moxa Physical layer\n===================\n\nPhysical layer for using a `Moxa devices \u003chttps://www.moxa.com/product/SDS_SerialDevice%20Servers.htm\u003e`_\nfor `IEC870REE library \u003chttps://github.com/gisce/iec870ree\u003e`_\n\n\nUsing:\n\n.. code-block:: python\n\n    from iec870ree_moxa import Moxa\n    from iec870ree.ip import Ip\n    from iec870ree.protocol import LinkLayer, AppLayer\n    import iec870ree.protocol\n    import datetime\n\n    ip_layer = iec870ree.ip.Ip(('127.0.0.1', 40001))\n    physical_layer = Moxa('PHONENUMBER', ip_layer)\n    link_layer = iec870ree.protocol.LinkLayer(10345, 1)\n    link_layer.initialize(physical_layer)\n    app_layer = iec870ree.protocol.AppLayer()\n    app_layer.initialize(link_layer)\n    physical_layer.connect()\n    link_layer.link_state_request()\n    link_layer.remote_link_reposition()\n    logging.info(\"before authentication\")\n    resp = app_layer.authenticate(1)\n    logging.info(\"CLIENTE authenticate response {}\".format(resp))\n    logging.info(\"before read\")\n\n    start_date = datetime.datetime(2018, 4, 1, 0, 0)\n    end_date = datetime.datetime(2018, 4, 2, 1, 0)\n\n    for resp in app_layer.read_integrated_totals(start_date, end_date):\n        logging.info(\"read response {}\".format(resp))\n    physical_layer.disconnect()\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgisce%2Fiec870ree_moxa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgisce%2Fiec870ree_moxa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgisce%2Fiec870ree_moxa/lists"}