{"id":16817922,"url":"https://github.com/pyrou/udpteleinfoserver","last_synced_at":"2025-03-17T13:29:09.612Z","repository":{"id":26142125,"uuid":"29587193","full_name":"pyrou/UDPTeleinfoServer","owner":"pyrou","description":"UDP server that is listening for raw \"Teleinfo\" (EDF) datagrams","archived":false,"fork":false,"pushed_at":"2017-09-17T19:16:35.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T23:32:18.930Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyrou.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2015-01-21T11:49:44.000Z","updated_at":"2017-09-17T19:16:37.000Z","dependencies_parsed_at":"2022-07-24T19:46:17.057Z","dependency_job_id":null,"html_url":"https://github.com/pyrou/UDPTeleinfoServer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyrou%2FUDPTeleinfoServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyrou%2FUDPTeleinfoServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyrou%2FUDPTeleinfoServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyrou%2FUDPTeleinfoServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyrou","download_url":"https://codeload.github.com/pyrou/UDPTeleinfoServer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244040775,"owners_count":20388123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-13T10:48:45.238Z","updated_at":"2025-03-17T13:29:09.569Z","avatar_url":"https://github.com/pyrou.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UDPTeleinfoServer\n\n[![Code Climate](https://codeclimate.com/github/pyrou/UDPTeleinfoServer/badges/gpa.svg)](https://codeclimate.com/github/pyrou/UDPTeleinfoServer)\n\nUDP server that is listening for raw \"Teleinfo\" (EDF) datagrams\n\n## Usage\n\n`UDPTeleinfoServer.py` can be used standalone to decode and print out received \"Teleinfo\" datagrams\n\n```text\nUsage: python ./UDPTeleinfoServer.py [-p \u003cport\u003e] [-H \u003chost\u003e]\n\nOptions:\n  -p, --port     Specify on which port the server is listening\n  -H, --host     Specify on which host the server is listening\n  -w, --wait     Time in seconds to wait between reading two datagrams. During\n                 the wait time, datagrams received are dropped. The default\n                 value is 0\n```\n\n## Example\n\nOn the server, run following command :\n\n```bash\n# python ./UDPTeleinfoServer.py -p 8000 -w 5\n```\n\nServer is now listening incomming datagrams on port `8000`. \nHowever, it will only handle one request per 5 seconds.\n\nTo test the server, try this command on any machine on the same LAN\n\n```bash\necho -en \"MOTDETAT 000000 B\\r\\nADCO 200000294579 =\\r\\nOPTAR\\\nIF BASE 0\\r\\nISOUSC 30 9\\r\\nBASE 002565285 ,\\r\\nPTEC TH.. $\\\n\\r\\nIINST 002 Y\\r\\nIMAX 030 B\\r\\nPAPP 00420 '\\r\\n\\x03\" \\\n| socat - UDP-DATAGRAM:255.255.255.255:8000,broadcast\n```\n\nThe expected output on the server is :\n```json\n{\"IINST\": 2, \"OPTARIF\": \"BASE\", \"ADCO\": \"200000294579\", \"MOTDETAT\": \"000000\",\n \"PAPP\": 420, \"BASE\": 2565285, \"IMAX\": 30, \"timestamp\": 1421919714,\n\"PTEC\": \"TH..\", \"ISOUSC\": 30}\n```\n\nServer still accept further datagrams.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyrou%2Fudpteleinfoserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyrou%2Fudpteleinfoserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyrou%2Fudpteleinfoserver/lists"}