avatarThomas Smith

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

1665

Abstract

<p id="941f">Here’s a little video introducing my Raspberry Pi home automation server:</p> <figure id="e7b2"> <div> <div> <img class="ratio" src="http://placehold.it/16x9"> <iframe class="" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FRUUhDi8tBTU%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DRUUhDi8tBTU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FRUUhDi8tBTU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" allowfullscreen="" frameborder="0" height="480" width="854"> </div> </div> </figure></iframe></div></div></figure><p id="4350">Another great thing about the Raspberry Pi is that you can easily get it onto wifi. Just add an external adapter like the cheapo ones from Rosewill and you’re set. You can put your server anywhere in the house–in a cabinet, under your desk, in the garage, etc. Here’s my wifi setup:</p> <figure id="ac73"> <div> <div> <img class="ratio" src="http://placehold.it/16x9"> <iframe class="" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fydw7AI2CF4k%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dydw7AI2CF4k&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fydw7AI2CF4k%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" allowfullscreen="" frameborder="0" height="480" width="854"> </div> </div> </figur # Options e></iframe></div></div></figure><p id="04e9">So once you have your Raspberry Pi home automation server set up (and perhaps embedded in a project), how do you actually communicate it or upload new code? You can be fancy and get it to run an FTP server, but I find it’s often easier just to use Putty to send stuff over SSH:</p> <figure id="5a39"> <div> <div> <img class="ratio" src="http://placehold.it/16x9"> <iframe class="" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FczdVvgQr2MQ%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DczdVvgQr2MQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FczdVvgQr2MQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" allowfullscreen="" frameborder="0" height="480" width="854"> </div> </div> </figure></iframe></div></div></figure><p id="3661">So what does my server actually do? Well for starters, it uses CHRON to run my Bidgely scraping script once per minute, pulling in my realtime electrical usage. It also scrapes data from the endpoints of a ton of other APIs. You can even have it control things like Phillips Hue over your home network, using Python. I’ll share more on how I’m using my Pi in future posts.</p><blockquote id="e0d3"><p><b><i>Sign up for <a href="https://diylifetech.substack.com/"></a></i><a href="https://diylifetech.substack.com/">The DIY Life Tech <i>newsletter</i></a><i> to get the best tech for home, travel, work and life right in your inbox.</i></b></p></blockquote></article></body>

Raspberry Pi As a Home Automation Server

Using the PI as a basic, low-cost server for your smart home

Photo by Louis Reed on Unsplash

Previously, I’ve talked about using an old Powerspec PC as my home automation server. An outdated PC works fine as a server in some cases, but really, running a little spaceheater-ish P4 around the clock? That’s so 2006. It would be kind of silly to blog all about power efficient lightbulbs and realtime energy monitoring while having a 10 year old PC burning 400 watts all the time. And who wants to run all their home automation stuff on Windows, anyway?

Sign up for The DIY Life Tech newsletter to get the best tech for home, travel, work and life right in your inbox.

Over the last year, I’ve moved almost all my home automation code and programs over to a new platform: the Raspberry Pi. The PI makes a ton of sense as an HA server. It’s tiny, cheap, extremely power efficient, and can run a full Linux operating system with a graphical interface. You can tie it into low-level sensors (sort of), but at the same time, it can run Python scripts faster than the old Powerspec.

Here’s a little video introducing my Raspberry Pi home automation server:

Another great thing about the Raspberry Pi is that you can easily get it onto wifi. Just add an external adapter like the cheapo ones from Rosewill and you’re set. You can put your server anywhere in the house–in a cabinet, under your desk, in the garage, etc. Here’s my wifi setup:

So once you have your Raspberry Pi home automation server set up (and perhaps embedded in a project), how do you actually communicate it or upload new code? You can be fancy and get it to run an FTP server, but I find it’s often easier just to use Putty to send stuff over SSH:

So what does my server actually do? Well for starters, it uses CHRON to run my Bidgely scraping script once per minute, pulling in my realtime electrical usage. It also scrapes data from the endpoints of a ton of other APIs. You can even have it control things like Phillips Hue over your home network, using Python. I’ll share more on how I’m using my Pi in future posts.

Sign up for The DIY Life Tech newsletter to get the best tech for home, travel, work and life right in your inbox.

Raspberry Pi
Makers
Smart Home
Videos
Gadgets
Recommended from ReadMedium