Build a webserver for home automation on RPi

6 posts
by crystal13 » Thu May 02, 2013 9:58 am

I would like to build a webserver on my Raspberry Pi for to do home automation. I found on internet a list of home automation software: ... n_software

but I want to learn to built a personal webserver.

Can you suggest me where I can start, what is the best language that I can use (and learn)? Note that I would like a webserver that could be responsive for tablets and phones.

Few days ago I discovered these guide, ... ry-pi.html ... ion/#step1

but before to start, I'm interested to hear your opinions.

Thank you very much,
Posts: 67
Joined: Tue Jan 22, 2013 2:13 pm
by gkreidl » Thu May 02, 2013 10:38 am
I would use a Python web framework with builtin webserver. There are lots of them. My favourite is Karrigell (version 3 for Python 2.7!). It's very simple to use and setup and it comes with good documentation and lots of examples.
Minimal Kiosk Browser
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer
Posts: 1127
Joined: Thu Jan 26, 2012 1:07 pm
by tupf » Thu May 02, 2013 6:45 pm

if you work goal oriented, it does not matter which one you pick. python, perl or php all do the job.

Good Luck,

Posts: 14
Joined: Mon Sep 24, 2012 1:55 pm
by fatcinco » Sun May 12, 2013 9:59 am
Other examples to poke at for home automation - nginx with php openzwave clients, python and c server examples ... pen-zwave/
Posts: 26
Joined: Tue May 15, 2012 4:50 am
by kuby83 » Tue May 14, 2013 12:46 pm

I've been looking Karrigell and it seems easy and it's what I was looking for! Can you add buttons and displays? I'd like to do a web page very simple to start with, add some buttons to switch on some lights and some display for some room temperatures.

Thank you for all the information and tips, everything is useful!
Posts: 6
Joined: Tue Dec 04, 2012 5:07 pm
by AndrewDCox » Wed May 15, 2013 2:51 am
I'm also interested in this area! I've used Nginx and PHP to run my web server, and it was pretty easy to set up. It sounds like you've already decided on the Python engine, but if you ever decide to try something different, I've put together what I hope are two informative explanations of how to set up an Nginx, PHP, and MySQL server on the Pi:

Basic Installation:
Hosting a live Website from the Pi:

----- Andrew Cox -----
User avatar
Posts: 6
Joined: Fri Apr 12, 2013 11:23 pm
Location: USA