Skip to content

somata/somata-kefir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

somata-kefir

Wrap Somata service events in a Kefir stream

Usage

somata = require 'somata-kefir'

client = new somata.Client
motion$ = client.on('maia:smartthings', 'motion')

lightOn = -> client.remote 'maia:hue', 'turn_on', 2
lightOff = -> client.remote 'maia:hue', 'turn_off', 2

motion$.filter((m) -> m.value=='active').onValue lightOn
motion$.filter((m) -> m.value=='inactive').onValue lightOff

About

Wrap Somata service events in a Kefir stream

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published