Page 1 of 1

Build a webserver for home automation on RPi

Posted: Thu May 02, 2013 9:58 am
by crystal13
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

Re: Build a webserver for home automation on RPi

Posted: Thu May 02, 2013 10:38 am
by gkreidl
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.

Re: Build a webserver for home automation on RPi

Posted: Thu May 02, 2013 6:45 pm
by tupf
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

Re: Build a webserver for home automation on RPi

Posted: Sun May 12, 2013 9:59 am
by fatcinco
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/

Re: Build a webserver for home automation on RPi

Posted: Tue May 14, 2013 12:46 pm
by kuby83
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!

Re: Build a webserver for home automation on RPi

Posted: Wed May 15, 2013 2:51 am
by AndrewDCox
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/ ... pberry-pi/
Hosting a live Website from the Pi: http://www.andrewdcox.com/blog/2013/05/ ... -internet/

Cheers!