No commit activity in last 3 years
No release in over 3 years
humble_rpi-plugin-rsf
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.2.2, ~> 0.2
>= 0.4.3, ~> 0.4
 Project Readme

Running an RSF job using the Humble-RPi-plugin-RSF gem

The following code demontrates running a Ruby Scripting Format (RSF) job from within the Humble-RPi-plugin-RSF gem:

require 'humble_rpi-plugin-rsf'

s =<<EOF
<?dynarex schema="keywords[title, tags]/keyword(topic, msg, conditions, job,hashtags)"?>
title: SPS Keywords
tags: sps keywords trigger jobs
--+
t: system
m: (.*)
j: //job:system http://a0.jamesrobertson.eu/qbx/r/sps.rsf

m: ^(hello .*)
j:  //job:speak http://a0.jamesrobertson.eu/qbx/r/espeak.rsf $1
EOF

dx = Dynarex.new
dx.import s

r = HumbleRPiPluginRsf.new settings: {lookup: dx}
r.on_do_message 'hello James'

Resources

humblerpipluginrsf gem rsf spstriggerexecute