Giter VIP home page Giter VIP logo

dipex's Introduction

Dipex

Dipole Antenna Elixir Project! ๐Ÿ“ป

Purpose

  • Listen to a Flex Radio TCP stream
  • Parse VITA49
  • Based on antenna/frequency turn on/off relay switch via Raspberry Pi GPIO
  • Relay switch dictate dipole mode on antenna

This is for my Dad ๐Ÿ™

We are both HAM radio operators ๐ŸŽ‰

On Boot (init)

ENV vars

  1. FLEX_IP known IP address of the Flex Radio
  2. FLEX_RPI if the server is running on a RPI with GPIO
  • You do not need to define the FLEX_RPI var but you can set it to 0 or 1.
  • 1 being that GPIO is on the system and the wiringPi gpio CLI is available for use.
  • 0 means no, and not defining it means no as well.

Example use on a rpi:

FLEX_IP=10.0.0.192 FLEX_RPI=1 mix run --no-halt

GPIO

  • Unexports all pins
  • Exports mode out for BCM pin 17

TCP

  • Opens TCP :gen_tcp connection to flex
  • Send a recieve all msg to flex with :gen_tcp (need to CLRF msg string)
  • Recursive loop recv with :gen_tcp

Parsing

  • Parses recv msg to check for antenna and frequencies
  • Based on antenna/frequency turn on/off relay switch via Raspberry Pi GPIO

Forever!

API

If running on 10.0.0.230

curl 10.230:4000/api/?cmd=on
curl 10.230:4000/api/?cmd=off
curl 10.230:4000/api/?cmd=unexport
curl 10.230:4000/api/?cmd=export

dipex's People

Contributors

selfup avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.