Build a webserver for home automation on RPi


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

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:
http://en.wikipedia.org/wiki/List_of_ho ... 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,
http://tupfstuff.blogspot.it/2013/04/th ... ry-pi.html
http://www.instructables.com/id/Raspber ... ion/#step1

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

Thank you very much,
Gianfranco
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 for embedded applications
Posts: 657
Joined: Thu Jan 26, 2012 1:07 pm
by tupf » Thu May 02, 2013 6:45 pm
Hi,

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

Good Luck,

Tupf
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

http://thomasloughlin.com/open-zwaveraspberry-pi/
http://conradvassallo.com/2012/03/14/li ... pen-zwave/
Posts: 26
Joined: Tue May 15, 2012 4:50 am
by kuby83 » Tue May 14, 2013 12:46 pm
Hello!

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: http://www.andrewdcox.com/blog/2013/05/11/running-an-nginx-php-and-mysql-webserver-on-the-raspberry-pi/
Hosting a live Website from the Pi: http://www.andrewdcox.com/blog/2013/05/14/accessing-the-raspberry-pi-from-the-public-internet/

Cheers!
----- Andrew Cox -----
www.andrewdcox.com
User avatar
Posts: 6
Joined: Fri Apr 12, 2013 11:23 pm
Location: USA