changeset 88:3988aaa5ea82

change cactus button to one that works. yellow button plays music Ignore-this: 2ecc399e519d51fcff3eacbca10d612d
author drewp@bigasterisk.com
date Fri, 02 Aug 2013 08:04:20 -0700
parents dca89cefebf8
children 1c1fcb71e10a
files service/reasoning/rules.n3
diffstat 1 files changed, 16 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/service/reasoning/rules.n3	Fri Aug 02 08:04:01 2013 -0700
+++ b/service/reasoning/rules.n3	Fri Aug 02 08:04:20 2013 -0700
@@ -49,9 +49,24 @@
   <http://bigasterisk.com/host/dash/monitor> :powerState :off .
 } .
 
-{ <http://projects.bigasterisk.com/room/star/button/grn> :change :down . } =>
+{ <http://projects.bigasterisk.com/room/star/button/blu> :change :down . } =>
 {
   <http://bigasterisk.com/host/star/slideshow> :postAction <http://bigasterisk.com/host/star/slideshow/advance> .
+  <http://bigasterisk.com/host/star/slideshow> :postAction <http://star:9049/effects/beep2> .
+} .
+
+
+{ <http://projects.bigasterisk.com/room/star/button/yel> :change :down . } =>
+{
+  <http://bigasterisk.com/host/star/sound> :postAction <http://star:9049/sound?filename=/my/music/ubuntuone/Daft+Punk/Discovery/Harder+Better+Faster+Stronger.mp3> .
+} .
+
+{ <http://projects.bigasterisk.com/room/livingRoom/shuttlepro/dial> :change :up . } => {
+  <http://bigasterisk.com/host/slash/sound> :postAction <http://slash:9049/volume?offset=.05&max=.6> .
+} .
+
+{ <http://projects.bigasterisk.com/room/livingRoom/shuttlepro/dial> :change :down . } => {
+  <http://bigasterisk.com/host/slash/sound> :postAction <http://slash:9049/volume?offset=-.05&max=.6> .
 } .
 
 #{ :playstation :powerState ?s } => { <http://bigasterisk.com/host/bang/monitor> :powerState ?s } .