Low commit activity in last 3 years
No release in over a year
An SPS client built for reponding to messages which match keywords and conditions.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.5, >= 0.5.0
~> 1.9, >= 1.9.6
~> 0.8, >= 0.8.0
 Project Readme

Introducing the SPStrigger_execute Gem

require 'spstrigger_execute'

url = 'http://www.jamesrobertson.eu/dynarex/sps-keywords.xml'
ste = SPSTriggerExecute.new url
a = ste.mae 'kit', 'motion detected

#=> [[:rse, ["//job:wakeup", "http://a0.jamesrobertson.eu/qbx/r/dandelion_a3/power-mgmt.rsf", "kit"]], [:rse, ["//job:log", "http://a0.jamesrobertson.eu/qbx/r/motion.rsf", "kit"]], [:sps, "kit/output/led: 5 on duration 2"], [:sps, "niko2: awake"], [:sps, "mia: notify hello: James"]]

The above example show what happens when an SPS topic and message is passed into it. Returned is a couple of jobs to run as well as a couple of SPS messages to publish.

Resources

spstriggerexecute gem sps trigger keywords