🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

github.com/JaCzekanski/wifi-presence

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/JaCzekanski/wifi-presence

v0.0.0-20191005140906-073709762c8b
Source
Go
Version published
Created
Source

Wifi Presence

Detect if Wifi device is present by listening for Mikrotik logs.

State is synchronized with MQTT broker using Home Assistant compatible auto-discovery protocol.

Build and usage

  • Add MAC addresses and names of devices you want to track in main.go var devices
  • Modify MQTT_ADDRESS if necessary
  • Configure router to output wireless logs to your machine (Raspberry PI in my case):
  • Go to System->Logging

  • Create new Action with type Remote and address pointing to your machine (port 9002)

  • Create new Rule with topics Info,Wireless and select previously created Action

  • Build script go build .
  • Run it ./wifi-presence

Script doesn't read initial state from router - devices will be reported after being connected/disconnected from network.

Running as daemon is not supported - either run in using tmux/screen or create Systemd script which would handle it for you

Author

Jakub Czekański

FAQs

Package last updated on 05 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts