{"repo":"albertnis/mqcontrol","free":true,"listed":false,"github":"https://github.com/albertnis/mqcontrol","clone":"git clone https://github.com/albertnis/mqcontrol.git","description":"Cross-platform utility to execute commands remotely using MQTT","language":"Go","stars":13,"topics":["smart-home","home-automation","automation","iot","mqtt","remote-execution"],"license":null,"category":"workflow-automation","readme_excerpt":"mqcontrol mqcontrol is a lightweight and cross-platform utility which subscribes to an MQTT topic and executes a predefined command on your computer whenever a message appears. It's an easy way to make your PC part of your home automation or IoT system! Installation See the releases page and download a binary for your operating system and architecture. Or install it with Go: To complete local installation, add mqcontrol to PATH and/or run it at startup. Docker mqcontrol is available on Docker Hub: albertnis/mqcontrol. The images are cross-platform and available in a variety of flavours. See the Docker Hub overview for more information. Usage Configuration is via command-line arguments. Examples - Make a topic to hibernate your PC - Dim laptop screen when the lights are turned off - Close gzdoom when the office door is opened Notes - The command argument does not include any shell processing. If you're having problems getting commands to run or want them to run in a shell, specify the shell in the command. For example: - An error in the executed command will cause the entire program to terminate. Stderr and an exit code from the executed command will be available. Run the code locally Get then run with Go: Run with Go in cloned repo: With Docker (BuildKit): With docker-compose (BuildKit): Run it at startup On Windows using Task Scheduler 1. Open Task Scheduler and select Action - Create Task from the menu bar. 1. On the \"General\" tab, select \"Run whether the user is logged in ","default_branch":null,"files":null,"tree":[],"storefront":"/r/albertnis","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/albertnis/mqcontrol/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}