µCast #17: Control Hardware Remotely With Socket.IO

preview_player
Показать описание
Watch me use NodeJS, Socket.IO, the rpi-gpio package and Heroku to remotely control hardware connected to my Raspberry Pi.

Source code for this episode can be found here:

For the complete set of show notes and links head over to:

Рекомендации по теме
Комментарии
Автор

even in 2021 I found this totally relevant, really interesting and usefull!! Thanks

Rob-idzf
Автор

You just made my week knowing I can communicate with my raspberry using socket.io and heroku! Awesome video!!

kensugai
Автор

Thanks a lot for making this video. Concise with no fluff. Cheers.

marklowe
Автор

1:22 Where did your initial command prompt window come from? It looks like it's something additional from Node? There's very little information on Google regarding "node-gyp command prompt"

GeorgeLenoHolmesJr
Автор

I love this work this mix between software and hardware. Thank you, man!

moherna
Автор

Love socket.io and heroku on some days. Great video. Keep them coming.

GabeFromUtah
Автор

Thank you for sharing this, very useful. Didnt know this channel before, good content.

xx-cgrv
Автор

Well done mate, been looking for some hint as this one for a It looks a little complicated but let's see, and lets try to make it happen ;)

valdasmusvicas
Автор

Hello- thanks so much for the tutorial! I am very new to most things Raspberry Pi, Node.js and websockets- I'm am having issues with creating the folder directory for express... The express server command @ 1:32 seems to come back as an invalid command for me... Am I missing something else that has to be installed first? Express is another npm package, right?

aminafoxdye
Автор

How would I go about doing the exact same thing but instead of turning on an LED I want to input a number in a text field and click submit for it then to send that input to a single 7 segment display attached to the RPi?

rajkopodinic
Автор

thanks man, this is great . you are the best

gilbojohn
Автор

you can use
npm install socket.io --save

It will automatically add it to your package.json

partisan-bobryk
Автор

Hey, I think this was great! I'm going to do something like this with a motion sensor gpio, but I've only had experience in using python to work with gpio pins on my pi. I havent used node.js before. Does the node r-pi gpio mudule work exactly like the python version? - Thanks so much for the tutorial, Any chance you'll make another like this with pi and socket.io examples?

drewpeer
Автор

Hi im trying to follow along with this and am running in to trouble, @6:50 you show an example that doesn't work for me, your example shows "client connected" once, whereas mine constantly is spamming. even if i remove this console.log message, the IO state change does not register. is this video outdated now and not valid?

crashbash
Автор

Hi! Great vid! Question though. Was the delay because of Heroku, using the free version and god knows where the server is located? Or was it something else. I'm looking for ways to dim and change color of a RGB LED strip. It needs to be snappy. :)

tdragon
Автор

grate video thank you for making it. i wanted to as how you would set up the socket io and express after installing them on the pi for the website?

samsont
Автор

This amazing! Can you do 2021 updated version? maybe with node server and python client! Thanks again.

ashkanradnia
Автор

Great work... for noobs like me it is hard to grab the start of this tutorial as few things are changed a bit. but overall everything is to the point. I want to send videos from the server to Rpi client and display them on startup. My Rpi end is sorted now I want to drop a video on a server then access this video on Rpi. I think socket.io will be a good approach for this work if anyone has done work related to this kindly guide me as I am new to Rpi and server-client thing. thanks again

abdulwasey
Автор

Hi thanks well explained but I am trying to do same thing with gsm SIM808 board how to do that ?
Thanks in advance

akshaykonde
Автор

This was my first attempt at working with JavaScript (was thinking I was going to use Python and web sockets). Your instructions and examples helped me to write a program that passed temperature information back and forth between a Pi and browser window and control the temperature setting with a slider. I'll link to my code/edits below, but I just wanted to say thanks for the great video!

isaacmattingley