-->
Page 1 of 1

NodeMCU as Doorbell + Pushbullet + Raspberry Pi

PostPosted: Sat Jul 23, 2016 5:21 pm
by vedranius
Hi all!
I'm trying to make a NodeMCU to connect with my wifi (done).

Then to connect to Pushbullet (not sure how to do it).
Then when someone presses the button ("rings the doorbell") send the notification via Pushbullet to my phone (no frickin idea how to do it).
Or/And also trigger Raspberry Pi as a some GPIO, because I'm running a Python script on RPi that is running in background and one someone presses the button connected to GPIO of RPi it'll send the Pushbullet notification and run livestream from the camera and take the screenshot and send it to Pushbullet.

Problem is that I'd like make a NodeMCU like a remotely trigger to a RPi via Wi-Fi.

Is that possible and can someone please help wit this? :)

Thanks! ;)

Re: NodeMCU as Doorbell + Pushbullet + Raspberry Pi

PostPosted: Sat Jul 23, 2016 7:19 pm
by PuceBaboon
Take a look at MQTT. It's a very small, lightweight program which runs on the RPi (or just about anything else) as a daemon and listens for messages from your ESP8266. You can use it in conjunction with Node Red to eaily put together logic flows in the Node Red graphical editor (ie:- "If ESP sends doorbell event, send message to Pushbullet and activate door camera").
One of the best places to look for practical information on this (including an installation script for the RPi) is http://tech.scargill.net. Search for Node-Red and MQTT. There's a ton of stuff there.

Re: NodeMCU as Doorbell + Pushbullet + Raspberry Pi

PostPosted: Sun Jul 24, 2016 2:52 am
by vedranius
Thank you very much for your reply! :)

PuceBaboon wrote: (ie:- "If ESP sends doorbell event, send message to Pushbullet and activate door camera").


The problem I'm having is that I'm not sure how to get NodeMCU communicate with RPi. Also, I'm programming my NodeMCU via Arduino IDE. Is that OK, or do I need to transfer to Lua (which I don't even know how to use :P ) ?

I've installed Node-Red on RPi, and I've got some simple thing to do, on GPIO 11 when is "1", send to file and output to GPIO 7, 0.

Tho, I'm really really n00by with all of these, so not so sure how MQTT works, the principle of connecting it with NodeMCU.
What code I need to run on NodeMCU to send some "signal" to RPi when button is pressed? And do I need to send some HTTP requests or what? :confused: :D

Thank you! :)

Re: NodeMCU as Doorbell + Pushbullet + Raspberry Pi

PostPosted: Sun Jul 24, 2016 4:02 am
by bbx10node