Pushover Api send message and send picture

RaspberryPi üzerinde USB Webcam ile resim çekmek ve bu resmi Pushover Api kullarak göndermek. Bir hareket sensöründen sinyal alınarak RaspberryPi inputları kullanılarak hareket alıgılandığı anda cep telefonunuza push bildirimi gelebilir.

Take a picture with USB Webcam on RaspberryPi and send it using the official Pushover Api. You can receive a push notification from a motion sensor and a push notification to your mobile phone as soon as motion is detected using RaspberryPi inputs.

[{"id":"d20e1e96.2a17f","type":"tab","label":"pushover","disabled":false,"info":""},{"id":"4dc0fc69.afd8c4","type":"exec","z":"d20e1e96.2a17f","command":"","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"Raspberry WebCam","x":690.5534248352051,"y":178.2213592529297,"wires":[[],["54d1598a.1599d8"],[]]},{"id":"8897ea44.5680c8","type":"function","z":"d20e1e96.2a17f","name":"webcam picture save","func":"gs01=context.global.GV_TimeFullValue; \ncmd=\"fswebcam -r 640x480 --no-banner /home/pi/Pictures/webcam/\"+gs01+\".jpg\"\ntpc=\"RaspiWebcamFiles\"\nmsg = {topic:tpc, payload:cmd}\nreturn msg;","outputs":1,"noerr":0,"x":449.3034324645996,"y":194.2927532196045,"wires":[["3a856200.69a54e","4dc0fc69.afd8c4"]]},{"id":"3a856200.69a54e","type":"debug","z":"d20e1e96.2a17f","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":657.1531562805176,"y":220.5191707611084,"wires":[]},{"id":"41c496d.191b568","type":"inject","z":"d20e1e96.2a17f","name":"capture picture","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":214.8042221069336,"y":194.10527992248535,"wires":[["8897ea44.5680c8"]]},{"id":"c6ad87f0.a2b2c8","type":"debug","z":"d20e1e96.2a17f","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1041.5399703979492,"y":161.65600109100342,"wires":[]},{"id":"eb50d86e.621f48","type":"pushover api","z":"d20e1e96.2a17f","keys":"8ceccac6.d2a348","title":"node-red Picture Send","name":"api","x":1440.5111618041992,"y":199.1474199295044,"wires":[]},{"id":"f7e5640c.e4b4e8","type":"inject","z":"d20e1e96.2a17f","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":1282.7671356201172,"y":169.54233360290527,"wires":[["eb50d86e.621f48"]]},{"id":"77af6ad6.be0234","type":"function","z":"d20e1e96.2a17f","name":"pushover send picture","func":"m=msg.payload\n//msg.timestamp=1331249662\nmsg.image =\"/home/pi/Pictures/webcam/\"+m+\".jpg\"\nmsg.priority= 2\nmsg.retry= 30\nmsg.expire = 30\nreturn msg;","outputs":1,"noerr":0,"x":1067.0172653198242,"y":198.5423460006714,"wires":[["e7cb4ecf.1a35","eb50d86e.621f48","3f3f0229.384ebe"]]},{"id":"e7cb4ecf.1a35","type":"debug","z":"d20e1e96.2a17f","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"image","x":1458.0169372558594,"y":238.04235076904297,"wires":[]},{"id":"54d1598a.1599d8","type":"string","z":"d20e1e96.2a17f","name":"File Date","methods":[{"name":"between","params":[{"type":"str","value":"/home/pi/Pictures/webcam/"},{"type":"str","value":".jpg"}]}],"prop":"payload","propout":"payload","object":"msg","objectout":"msg","x":875.5173492431641,"y":176.82069778442383,"wires":[["c6ad87f0.a2b2c8","77af6ad6.be0234"]]},{"id":"3f3f0229.384ebe","type":"debug","z":"d20e1e96.2a17f","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1455.7544326782227,"y":274.71994972229004,"wires":[]},{"id":"a3c7cc5e.2cd9d","type":"function","z":"d20e1e96.2a17f","name":"pushover send note","func":"m=msg.payload\nmsg.priority= 0\nreturn msg;","outputs":1,"noerr":0,"x":1057.7544403076172,"y":404.7199411392212,"wires":[["d1eb1e7c.75498","c6ddd085.6c3a9"]]},{"id":"f468407d.39d37","type":"inject","z":"d20e1e96.2a17f","name":"","topic":"","payload":"message on","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":"","x":823.7544479370117,"y":369.7199544906616,"wires":[["a3c7cc5e.2cd9d"]]},{"id":"d8796796.70d7c8","type":"inject","z":"d20e1e96.2a17f","name":"","topic":"","payload":"message off","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":"","x":815.7544479370117,"y":438.7199544906616,"wires":[["a3c7cc5e.2cd9d"]]},{"id":"d1eb1e7c.75498","type":"pushover api","z":"d20e1e96.2a17f","keys":"8ceccac6.d2a348","title":"node-red Message Send","name":"api","x":1258.7544746398926,"y":384.719913482666,"wires":[]},{"id":"c6ddd085.6c3a9","type":"debug","z":"d20e1e96.2a17f","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1282.7545127868652,"y":422.71993255615234,"wires":[]},{"id":"75548b3f.784e64","type":"function","z":"d20e1e96.2a17f","name":"global set GV_TimeFullValue","func":"m = msg.payload;\nkks= \"TimeFullValue\"\nmsg = {topic:kks, payload:m}\ncontext.global.GV_TimeFullValue = msg.payload;\nreturn [msg];\n","outputs":1,"noerr":0,"x":712.5714111328125,"y":102.71996688842773,"wires":[[]]},{"id":"c1707484.277248","type":"moment","z":"d20e1e96.2a17f","name":"time","topic":"","input":"","inputType":"msg","inTz":"Europe/Istanbul","adjAmount":"0","adjType":"hours","adjDir":"add","format":"YYYY-MM-DDTHH.mm:ss","locale":"tr_TR","output":"","outputType":"msg","outTz":"Europe/Istanbul","x":412.5714111328125,"y":102.71996688842773,"wires":[["75548b3f.784e64"]]},{"id":"dd5fecd3.1932a","type":"inject","z":"d20e1e96.2a17f","name":"","topic":"","payload":"","payloadType":"date","repeat":"3","crontab":"","once":false,"onceDelay":0.1,"x":234.87134170532227,"y":102.71997833251953,"wires":[["c1707484.277248"]]},{"id":"73c2cbe3.71e974","type":"inject","z":"d20e1e96.2a17f","name":"","topic":"","payload":"message on test","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":"","x":1072.8774604797363,"y":308.5795545578003,"wires":[["d1eb1e7c.75498"]]},{"id":"67b0a45b.7d0b6c","type":"inject","z":"d20e1e96.2a17f","name":"","topic":"","payload":"message off test","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":"","x":1070.5917129516602,"y":350.4366617202759,"wires":[["d1eb1e7c.75498"]]},{"id":"89a969c6.8e30d8","type":"pushover","z":"d20e1e96.2a17f","name":"","device":"","title":"Not Api","priority":"-1","sound":"","url":"","url_title":"","html":false,"x":1102.87744140625,"y":602.8652954101562,"wires":[]},{"id":"55c42d39.1dbb54","type":"inject","z":"d20e1e96.2a17f","name":"","topic":"","payload":"message on not api","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":"","x":878.5917358398438,"y":561.4367065429688,"wires":[["89a969c6.8e30d8"]]},{"id":"91dca623.159918","type":"inject","z":"d20e1e96.2a17f","name":"","topic":"","payload":"message off not api","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":"","x":870.5917358398438,"y":630.4367065429688,"wires":[["89a969c6.8e30d8"]]},{"id":"8ceccac6.d2a348","type":"pushover-keys","z":"","name":"PushoverApi"}]

Flow Info

Created 6 years, 11 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • debug (x5)
  • exec (x1)
  • function (x4)
  • inject (x9)
Other
  • moment (x1)
  • pushover (x1)
  • pushover api (x2)
  • pushover-keys (x1)
  • string (x1)
  • tab (x1)

Tags

  • Pushover
  • webcam
  • push
  • api
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option