[MyIoT] A start with personal server for home automation

What is myIoT:
1. myIoT is a solution for home automation, it can be implemented on your Raspberry Pi. And it theoretically can enable you to control devices (include other embedded devices connected to the server) and acquire info of these devices.
2. It is currently based on python (sever part) and Android (Client)
3. It can process HTTPS and Socketio requests.

Github link: https://github.com/xswxm/MyIoT

It currently can handle HTTPS and Socketio requests, UDP could be patched to it later so we can do some fancy things like having audio or video conversations, just blow you image and it can control everything.

Screenshots:

Raspberry Pi:Raspbian安装XBMC(译)

之前有看过各种关于在Raspbian上安装XBMC的方法,有用添加密钥破解安装的,也有在Pi上编译的(我去,我绝对不敢干这事了,在Pi上编译大文件,简直就是浪费青春),但作者实测的效果不尽人意,要么就是没编译成功,就算安装上了也容易假死。。。。好吧,但是我还是没死心,抱着试一试的态度搜遍论坛,找到了这篇教程,安装好后感觉很好,可以说没死机过,轻微的小卡属于正常,之前安装Raspbmc和Openelec都是这样的,毕竟Pi的CPU性能有限。好吧,不废话了,下面就开始教程(翻译)。

原文:XBMC for Raspberry Pi

1 安装

sudo /etc/apt/sources.list.d/mene.list

deb http://archive.mene.za.net/raspbian wheezy contrib
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 5243CDED
sudo apt-get update
sudo apt-get install xbmc

2  配置

audio video input dialout plugdev tty

大部分情况下以上的用户组都是存在的,假如万一你的Pi上没input这个用户组,则可以使用下面命令来添加用户组:

addgroup --system input
sudo usemod -a -G tty pi  #注意一定要有–a,不然Pi就只存在于tty这个用户组了
sudo /etc/udev/rules.d/99-input.rules

SUBSYSTEM=="input", GROUP="input", MODE="0660"

KERNEL=="tty[0-9]*", GROUP="tty", MODE="0660"
sudo raspi-config
# 进入Advanced选项修改显存为128MB,切记一定要改大,不然默认的64MB显存直接卡爆。

3  运行

sudo nano /etc/default/xbmc
# 首先将“USER=xbmc”改为“USER=pi”,pi是你的用户名。
# 如果需要开机启动则将“ENABLED=0”改为“ENABLED=1”
sudo service xbmc start

sudo service xbmc stop