Skip to content

Instantly share code, notes, and snippets.

@barais
Last active January 11, 2016 15:51
Show Gist options
  • Select an option

  • Save barais/4b941ecc8abfa3f7eb4d to your computer and use it in GitHub Desktop.

Select an option

Save barais/4b941ecc8abfa3f7eb4d to your computer and use it in GitHub Desktop.
add web3, web2, web1, edison2, edison3, edison1, edison4, edison5 : JavascriptNode
add edisonGroup : RemoteWSGroup
attach edison1, edison2, edison3, edison4, edison5, web1, web2, web3 edisonGroup
set edisonGroup.answerPull/edison2="false"
set edisonGroup.answerPull/edison3="false"
set edisonGroup.answerPull/edison4="false"
set edisonGroup.answerPull/edison5="false"
set edisonGroup.answerPull/web1="false"
set edisonGroup.answerPull/web2="false"
set edisonGroup.answerPull/web3="false"
add edison2.lcd_0, edison3.lcd_0, edison1.lcd, edison4.lcd_0, edison5.lcd_0 : eu.heads.HeadsLCDDisplayComp
add edison2.led_0, edison3.led_0, edison1.led, edison4.led_0, edison5.led_0 : eu.heads.HeadsDigitalWriteComp
add edison2.noise_0, edison2.temp_0, edison2.light_0, edison3.noise_0, edison3.temp_0, edison3.light_0, edison1.noise, edison1.temp, edison1.light, edison4.noise_0, edison4.temp_0, edison4.light_0, edison5.noise_0, edison5.temp_0, edison5.light_0 : eu.heads.HeadsAnalogSensorComp
add chan4, chan3, chan2, chan1, chan, chan_0, chan_1, chan_2, chan_3, chan_4, chan_5, chan_6, chan_7, chan_8, chan_9, chan_9_0, chan_8_0, chan_5_0, chan_6_0, chan_7_0, chan_9_0_0, chan_8_0_0, chan_5_0_0, chan_7_0_0, chan_6_0_0 : RemoteWSChan
bind edison1.lcd.getValue chan4
bind edison1.led.getValue chan3
bind edison1.noise.out chan2
bind edison1.light.out chan1
bind edison1.temp.out chan
bind edison2.lcd_0.getValue chan_4
bind edison2.led_0.getValue chan_3
bind edison2.noise_0.out chan_0
bind edison2.temp_0.out chan_1
bind edison2.light_0.out chan_2
bind edison3.lcd_0.getValue chan_9
bind edison3.led_0.getValue chan_8
bind edison3.noise_0.out chan_5
bind edison3.temp_0.out chan_6
bind edison3.light_0.out chan_7
bind edison4.lcd_0.getValue chan_9_0
bind edison4.led_0.getValue chan_8_0
bind edison4.noise_0.out chan_5_0
bind edison4.temp_0.out chan_6_0
bind edison4.light_0.out chan_7_0
bind edison5.lcd_0.getValue chan_9_0_0
bind edison5.led_0.getValue chan_8_0_0
bind edison5.noise_0.out chan_5_0_0
bind edison5.light_0.out chan_7_0_0
bind edison5.temp_0.out chan_6_0_0
set edison2.lcd_0.test = 'false'
set edison2.led_0.pin = '7'
set edison2.led_0.test = 'false'
set edison2.noise_0.period = '500'
set edison2.noise_0.test = 'false'
set edison2.temp_0.pin = '1'
set edison2.temp_0.period = '500'
set edison2.temp_0.test = 'false'
set edison2.light_0.pin = '2'
set edison2.light_0.period = '500'
set edison2.light_0.test = 'false'
set edison3.lcd_0.test = 'false'
set edison3.led_0.pin = '7'
set edison3.led_0.test = 'false'
set edison3.noise_0.period = '500'
set edison3.noise_0.test = 'false'
set edison3.temp_0.pin = '1'
set edison3.temp_0.period = '500'
set edison3.temp_0.test = 'false'
set edison3.light_0.pin = '2'
set edison3.light_0.period = '500'
set edison3.light_0.test = 'false'
set edison1.lcd.test = 'false'
set edison1.led.pin = '7'
set edison1.led.test = 'false'
set edison1.noise.period = '500'
set edison1.noise.test = 'false'
set edison1.temp.pin = '1'
set edison1.temp.period = '500'
set edison1.temp.test = 'false'
set edison1.light.pin = '2'
set edison1.light.period = '500'
set edison1.light.test = 'false'
set edison4.lcd_0.test = 'false'
set edison4.led_0.pin = '7'
set edison4.led_0.test = 'false'
set edison4.noise_0.period = '500'
set edison4.noise_0.test = 'false'
set edison4.temp_0.pin = '1'
set edison4.temp_0.period = '500'
set edison4.temp_0.test = 'false'
set edison4.light_0.pin = '2'
set edison4.light_0.period = '500'
set edison4.light_0.test = 'false'
set edison5.lcd_0.test = 'false'
set edison5.led_0.pin = '7'
set edison5.led_0.test = 'false'
set edison5.noise_0.period = '500'
set edison5.noise_0.test = 'false'
set edison5.temp_0.pin = '1'
set edison5.temp_0.period = '500'
set edison5.temp_0.test = 'false'
set edison5.light_0.pin = '2'
set edison5.light_0.period = '500'
set edison5.light_0.test = 'false'
set chan4.host = 'ws.kevoree.org'
set chan4.uuid = 'edison1LCD'
set chan3.host = 'ws.kevoree.org'
set chan3.uuid = 'edison1Led'
set chan2.host = 'ws.kevoree.org'
set chan2.uuid = 'edison1Noise'
set chan1.host = 'ws.kevoree.org'
set chan1.uuid = 'edison1Light'
set chan.host = 'ws.kevoree.org'
set chan.uuid = 'edison1Temp'
set chan_0.host = 'ws.kevoree.org'
set chan_0.uuid = 'edison2Noise'
set chan_1.host = 'ws.kevoree.org'
set chan_1.uuid = 'edison2Temp'
set chan_2.host = 'ws.kevoree.org'
set chan_2.uuid = 'edison2Light'
set chan_3.host = 'ws.kevoree.org'
set chan_3.uuid = 'edison2Led'
set chan_4.host = 'ws.kevoree.org'
set chan_4.uuid = 'edison2LCD'
set chan_5.host = 'ws.kevoree.org'
set chan_5.uuid = 'edison3Noise'
set chan_6.host = 'ws.kevoree.org'
set chan_6.uuid = 'edison3Temp'
set chan_7.host = 'ws.kevoree.org'
set chan_7.uuid = 'edison3Light'
set chan_8.host = 'ws.kevoree.org'
set chan_8.uuid = 'edison3Led'
set chan_9.host = 'ws.kevoree.org'
set chan_9.uuid = 'edison3LCD'
set chan_9_0.host = 'ws.kevoree.org'
set chan_9_0.uuid = 'edison4LCD'
set chan_8_0.host = 'ws.kevoree.org'
set chan_8_0.uuid = 'edison4Led'
set chan_5_0.host = 'ws.kevoree.org'
set chan_5_0.uuid = 'edison4Noise'
set chan_6_0.host = 'ws.kevoree.org'
set chan_6_0.uuid = 'edison4Temp'
set chan_7_0.host = 'ws.kevoree.org'
set chan_7_0.uuid = 'edison4Light'
set chan_9_0_0.host = 'ws.kevoree.org'
set chan_9_0_0.uuid = 'edison5LCD'
set chan_8_0_0.host = 'ws.kevoree.org'
set chan_8_0_0.uuid = 'edison5Led'
set chan_5_0_0.host = 'ws.kevoree.org'
set chan_5_0_0.uuid = 'edison5Noise'
set chan_7_0_0.host = 'ws.kevoree.org'
set chan_7_0_0.uuid = 'edison5Light'
set chan_6_0_0.host = 'ws.kevoree.org'
set chan_6_0_0.uuid = 'edison5Temp'
set edisonGroup.path = '/edisons'
set edisonGroup.host = 'ws.kevoree.org'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment