Mercurial > code > home > repos > homeauto
changeset 1553:496ba843eafd
merge rules.n3 again
Ignore-this: f2cfb9e027e888551ebb1cd569f75f3e
darcs-hash:7ace602b19e6db67ebfdc4de1c9909a1c12e6d37
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Thu, 13 Feb 2020 22:58:23 -0800 |
parents | 21b3113ec1e0 |
children | bb765a6bf09a |
files | service/reasoning/rules.n3 |
diffstat | 1 files changed, 22 insertions(+), 26 deletions(-) [+] |
line wrap: on
line diff
--- a/service/reasoning/rules.n3 Thu Feb 13 10:26:38 2020 -0800 +++ b/service/reasoning/rules.n3 Thu Feb 13 22:58:23 2020 -0800 @@ -34,28 +34,28 @@ { env: :localHour 22 } => { env: :localHour :awakeTime } . { env: :localHour 23 } => { env: :localHour :awakeTime } . -# #{ -# # # this won't update right, currently, since I don't let the exact -# # # idle time into the rules recalculator. This threshold should be -# # # applied upstream. -# # -# # dash:xidle :idleTimeMinutes ?idle . -# # # broken with new fuxi- needs review: ?idle math:lessThan 30 . -# #} => { -# # :drew :at :desk . -# # # the plan here is that as soon as we can show that I'm not at my -# # # desk (cell phone wifi, asleep, etc), power the screen off -# #} . -# # -# #@prefix shuttle: <http://bigasterisk.com/room/livingRoom/shuttlepro/> . -# #@prefix mpd: <http://bigasterisk.com/host/slash/mpd> . -# # -# #{ ?button :state :press . ?button :playsMusic ?song } => { mpd: :startMusic ?song } . -# ## the rest of this modeling is still a mess. Handled completely by special case in reasoning.py -# #{ shuttle:button12 :state :press } => { mpd: :playState :pause } . -# #{ shuttle:dial :change :clockwise } => { mpd: :audioState :volumeStepUp } . -# #{ shuttle:dial :change :counterclockwise } => { mpd: :audioState :volumeStepDown } . -# # +#{ +# # this won't update right, currently, since I don't let the exact +# # idle time into the rules recalculator. This threshold should be +# # applied upstream. +# +# dash:xidle :idleTimeMinutes ?idle . +# # broken with new fuxi- needs review: ?idle math:lessThan 30 . +#} => { +# :drew :at :desk . +# # the plan here is that as soon as we can show that I'm not at my +# # desk (cell phone wifi, asleep, etc), power the screen off +#} . +# +#@prefix shuttle: <http://bigasterisk.com/room/livingRoom/shuttlepro/> . +#@prefix mpd: <http://bigasterisk.com/host/slash/mpd> . +# +#{ ?button :state :press . ?button :playsMusic ?song } => { mpd: :startMusic ?song } . +## the rest of this modeling is still a mess. Handled completely by special case in reasoning.py +#{ shuttle:button12 :state :press } => { mpd: :playState :pause } . +#{ shuttle:dial :change :clockwise } => { mpd: :audioState :volumeStepUp } . +#{ shuttle:dial :change :counterclockwise } => { mpd: :audioState :volumeStepDown } . +# { sensor:motionStorage :seesRecently :motion . } => { @@ -201,7 +201,3 @@ :frontWindow :line3 "Open" . } . -# { :switch1 :buttonState :pressed . -# } => { -# :switch1 :demo :received . -# } .