{"id":16747134,"url":"https://github.com/selfup/dipex","last_synced_at":"2025-03-16T02:23:32.508Z","repository":{"id":71266485,"uuid":"158872380","full_name":"selfup/dipex","owner":"selfup","description":"Parses VITA49 from a FLEX radio TCP stream to change a dipole/tophat antenna.","archived":false,"fork":false,"pushed_at":"2019-04-14T22:07:47.000Z","size":153,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T15:12:12.494Z","etag":null,"topics":["antenna","elixir","flex","gpio","ham-radio","phoenix","radio","raspberry-pi-gpio","relay-switch","tcp"],"latest_commit_sha":null,"homepage":"https://selfup.github.io/dipex","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/selfup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-11-23T19:48:28.000Z","updated_at":"2019-04-14T22:07:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c408170-2032-4f8c-87ba-d9c2abe32d73","html_url":"https://github.com/selfup/dipex","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/selfup%2Fdipex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfup%2Fdipex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfup%2Fdipex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selfup%2Fdipex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/selfup","download_url":"https://codeload.github.com/selfup/dipex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814979,"owners_count":20352077,"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":["antenna","elixir","flex","gpio","ham-radio","phoenix","radio","raspberry-pi-gpio","relay-switch","tcp"],"created_at":"2024-10-13T02:09:12.981Z","updated_at":"2025-03-16T02:23:32.080Z","avatar_url":"https://github.com/selfup.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dipex\n\nDipole Antenna Elixir Project! :radio:\n\n## Purpose\n\n- Listen to a Flex Radio TCP stream\n- Parse VITA49\n- Based on antenna/frequency turn on/off relay switch via Raspberry Pi GPIO\n- Relay switch dictate dipole mode on antenna\n\nThis is for my Dad :pray:\n\nWe are both HAM radio operators :tada:\n\n## On Boot (init)\n\n#### ENV vars\n\n1. `FLEX_IP` known IP address of the Flex Radio\n1. `FLEX_RPI` if the server is running on a RPI with GPIO\n\n- You do not need to define the FLEX_RPI var but you can set it to 0 or 1.\n- 1 being that GPIO is on the system and the wiringPi `gpio` CLI is available for use.\n- 0 means no, and not defining it means no as well.\n\nExample use on a rpi:\n\n`FLEX_IP=10.0.0.192 FLEX_RPI=1 mix run --no-halt`\n\n#### GPIO\n\n- Unexports all pins\n- Exports mode out for BCM pin 17\n\n#### TCP\n\n- Opens TCP `:gen_tcp` connection to flex\n- Send a recieve all msg to flex with `:gen_tcp` (need to CLRF msg string)\n- Recursive loop recv with `:gen_tcp`\n\n#### Parsing\n\n- Parses recv msg to check for antenna and frequencies\n- Based on antenna/frequency turn on/off relay switch via Raspberry Pi GPIO\n\nForever!\n\n## API\n\nIf running on `10.0.0.230`\n\n```elixir\ncurl 10.230:4000/api/?cmd=on\ncurl 10.230:4000/api/?cmd=off\ncurl 10.230:4000/api/?cmd=unexport\ncurl 10.230:4000/api/?cmd=export\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselfup%2Fdipex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselfup%2Fdipex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselfup%2Fdipex/lists"}