[{"id":"39e8a6cd.e64e72","type":"ibmiot in","z":"4dcf87dd.20789","authentication":"boundService","apiKey":"","inputType":"evt","logicalInterface":"","ruleId":"","deviceId":"photon1","applicationId":"","deviceType":"photons","eventType":"+","commandType":"","format":"json","name":"IBM IoT Input","service":"registered","allDevices":"","allApplications":"","allDeviceTypes":"","allLogicalInterfaces":"","allEvents":true,"allCommands":"","allFormats":"","qos":0,"x":90,"y":120,"wires":[["4a45160d.167f7","f6e136f0.029e38"]]},{"id":"f6e136f0.029e38","type":"debug","z":"4dcf87dd.20789","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":310,"y":40,"wires":[]},{"id":"4a45160d.167f7","type":"function","z":"4dcf87dd.20789","name":"extract sensor data","func":"return {payload:msg.payload.dataproperty};","outputs":1,"noerr":0,"x":290,"y":120,"wires":[["1ab68611.29f56a"]]},{"id":"c830d720.12ff28","type":"debug","z":"4dcf87dd.20789","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":690,"y":140,"wires":[]},{"id":"e625f38f.4cf878","type":"twitter out","z":"4dcf87dd.20789","twitter":"","name":"Tweet","x":710,"y":240,"wires":[]},{"id":"1ab68611.29f56a","type":"switch","z":"4dcf87dd.20789","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"50","vt":"num"},{"t":"btwn","v":"51","vt":"num","v2":"100","v2t":"num"}],"checkall":"true","repair":false,"outputs":2,"x":270,"y":240,"wires":[["491838ae.81fa18"],["64cef27a.ef40c4"]]},{"id":"9e28a1d1.7e1548","type":"debug","z":"4dcf87dd.20789","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":710,"y":340,"wires":[]},{"id":"491838ae.81fa18","type":"template","z":"4dcf87dd.20789","name":"Form Twitter msg1","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Warning! Sensor Reading is LOW! Current reading is: {{payload}}","output":"str","x":470,"y":220,"wires":[["e625f38f.4cf878","c830d720.12ff28"]]},{"id":"64cef27a.ef40c4","type":"template","z":"4dcf87dd.20789","name":"Form Twitter msg2","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"Warning! Sensor Reading is HIGH! Current reading is: {{payload}}","output":"str","x":470,"y":280,"wires":[["9e28a1d1.7e1548","e625f38f.4cf878"]]}]