Giter Club home page Giter Club logo

wrestlers-adapter's Introduction

Wrestling Theme Music TCP Adapter

This program will:

  • Listen for rsyslog streams on a given TCP port
  • Attempt to parse out a MAC address and action from the stream
  • Build HTTP POST request to web service, forwarding on details

It runs as a system daemon. So, you can think of it like a proxy that translates ugly syslog messages into web service requests.

This blog post provides an explanation and video demonstration.

Process

The configured web service will receive POST requests in the format:

https://some.api/<action>/<mac-address>

For example:

https://my-wifi.com.au/join/12:d4:ab:bd:64:f9
https://my-wifi.com.au/leave/03:ff:cb:34:9a:00

Why?

This allows us to trigger things like:

  • Songs on the Sonos
  • Slack messages on entrance
  • Standup attendance / lateness logging
  • Slack bot to determine if someone is currently in the office

Mapping of MAC address to Human is left to the web service.

Usage

The binary can be run as:

$ wrestlers-adapter [listen_host=127.0.0.1] [listen_port=10514] [forward_host=127.0.0.1] [forward_port=80]

wrestlers-adapter's People

Contributors

buntine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  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.