No commit activity in last 3 years
No release in over 3 years
A PIR motion sensing plugin for the MyFirmata gem. Publishes a message to the SPS broker at a set inteval whenever motion is detected.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.10.6, ~> 0.10
 Project Readme

Detecting motion using the MyFirmata gem

require 'myfirmata'
require 'myfirmata-plugin-pir'
  
mf = MyFirmata.new device_name: 'jessie', sps_address: 'sps',\
  plugins: {Pir: {pin: 2} }
mf.start

The above code uses a PIR sensor connected to an Arduino on pin 2 to detect motion and publish the event to the SPS broker at least every minute.

Resources

myfirmata plugin pir motion gem