Skip to content

A basic LIRC adapter for my very specific setup of the Mozilla IOT Gateway

License

Notifications You must be signed in to change notification settings

SheaStevenson/moz-iot-lirc-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is a LIRC Adapter for the Mozilla IoT Gateway, made to work with my very specific hardware setup.

Unfortunately, it's not quite install and go - you'll have to do some work to get everything running on your own gateway, but I've tried to lead the way as much as possible.

Features

  • Automatically list each available remote config as a device that can be added to the Gateway.
  • Set up each command as a button.
  • And if you've got the time and patience, you can override this default functionality with an extension.

Prerequisites (AKA my specific setup)

Build & Testing Process

I haven't yet figured out how to properly package this as an addon, so here's what I do to install and test it.

  1. On the Raspberry Pi (SSHd into the Pi, Browsed to ~):
  • (Optional) rm -rf ~/.mozilla-iot/log
  • rm -rf ~/.mozilla-iot/addons/lirc-adapter/
  1. Switch to Dev machine (Browsed to project folder):
  • ./package.sh
  • scp -r . pi@gateway.local:~/.mozilla-iot/addons/lirc-adapter
  1. Switch back to Pi
  • sudo systemctl restart mozilla-iot-gateway.service
  1. Wait a reasonable amount of time for the gateway to restart
  2. View logs if necessary
  • (cd ~/.mozilla-iot/log && cat "$(ls -1rt | tail -n1)")

Thanks

  • Mozilla for the gateway and example addons.
    • The Wake On Lan Adapter was the most useful example for starting out
    • The Node Addon Code was a great reference for figuring out what the heck is property and how do I parameter it.
    • The Schema Let me know what my options were.
  • hobbyquaker for the NodeJS LIRC client which is one less thing I have to figure out myself.
  • prasanthj for saving my sanity when starting out with LIRC.

About

A basic LIRC adapter for my very specific setup of the Mozilla IOT Gateway

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published