Control your home using only Javascript

francesco marassi
Apr 26, 2017 · 5 min read
NodeMCU, the base component of my Smart Home

Why? There are already plenty of solutions on the internet.


Progressive Web App

Iper-Cool web app

Node.js server

Nodes

Pushing the code on my first Sonoff
{
“_id” : ObjectId(“58e915b7e2ae848bee319642”),
“user” : “464636e0–0587–11e7–84a3-a38b03337b96”,
“type” : “switch”,
“name” : “LED 2”,
“image” : “/assets/star-lights.jpg”,
“users” : [],
“schedules” : [],
“registered” : true,
“uuid” : “ffdedc00–1q7b-11e7-a400–6109474f8f1e”,
“code” : “4838”, //used on first node setup
“state” : {
“open” : false
}
}

Everything is Open Source

Next Steps


francesco marassi

Written by

ruby and js developer. Creator of https://stori.social.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade