smart home automation
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
spec
src
.editorconfig
.gitignore
.travis.yml
LICENSE
README.md
shard.yml
watch.phones

README.md

About

I am fan of crystal language and decide to do almost all specific work with my smart home automation on that language. My system based on MQTT protocol, also i use iobroker for database and some graphics, esp32 with Mongoose OS for endpoint devices. I do it just for my own, but you can freely copy and use my code in your projects. May be it will grown to something more than just bucket of scripts.

Features

This daemon detecting presence users at home, by active wi-fi connection to their phone
It's developed exclusive for Netis WF2780!
It also watch for changes in dhcpd logs file, and faster detect users by DHCPACK packets (i have installed dhcpd just for watching network and write logs)

Installation

edit your /etc/watch.phones, add actual macs and users, as tab separated lines
edit other hardcoded constants in src/config.cr
build your app

  • crystal build --release src/pm.cr

run in background

  • ./pm &

Usage

TODO: Write usage instructions here

Development

TODO: Write development instructions here

Contributing

  1. Fork it (https://github.com/your-github-user/smart/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors