├── .gitignore ├── .npmignore ├── .travis.yml ├── LICENSE ├── README.md ├── config.js ├── index.js ├── package.json └── test.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .idea 3 | .nyc_output 4 | coverage -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | test.js 2 | .travis.yml 3 | .gitignore 4 | .nyc_output 5 | coverage 6 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '6' 4 | before_install: 5 | - sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa -y 6 | - sudo apt-get update -y 7 | - sudo apt-get install mosquitto -y 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) Sebastian Raff (https://hobbyquaker.github.io) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # lirc2mqtt 2 | 3 | [![mqtt-smarthome](https://img.shields.io/badge/mqtt-smarthome-blue.svg)](https://github.com/mqtt-smarthome/mqtt-smarthome) 4 | [![NPM version](https://badge.fury.io/js/lirc2mqtt.svg)](http://badge.fury.io/js/lirc2mqtt) 5 | [![Dependency Status](https://img.shields.io/gemnasium/hobbyquaker/lirc2mqtt.svg)](https://gemnasium.com/github.com/hobbyquaker/lirc2mqtt) 6 | [![Build Status](https://travis-ci.org/hobbyquaker/lirc2mqtt.svg?branch=master)](https://travis-ci.org/hobbyquaker/lirc2mqtt) 7 | [![Coverage Status](https://coveralls.io/repos/github/hobbyquaker/lirc2mqtt/badge.svg?branch=master)](https://coveralls.io/github/hobbyquaker/lirc2mqtt?branch=master) 8 | [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) 9 | [![License][mit-badge]][mit-url] 10 | 11 | This is an interface that connects [LIRC](www.lirc.org) to MQTT. 12 | 13 | 14 | ## Getting started 15 | 16 | * Prerequisites 17 | * [Node.js](www.nodejs.org) >= 6. 18 | * lircd started with --listen option. 19 | 20 | * Install 21 | `sudo npm install -g lirc2mqtt` 22 | 23 | 24 | * Start 25 | `lirc2mqtt --help` 26 | 27 | 28 | ## Topics and Payloads 29 | 30 | ### Receive 31 | 32 | `lirc/status//