http://app.essoduke.org/tinyMap/
https://github.com/essoduke/jQuery-tinyMap
2015年4月1日 星期三
2015年3月30日 星期一
GPS
https://github.com/Knio/pynmea2
import pynmea2
import serial, time
piw = serial.Serial('/dev/ttyAMA0', 9600, timeout=1)
piw.open()
while 1:
raw = piw.readline()
if raw.find("GPGGA")==1 :
msg = pynmea2.parse(raw)
lat = round((msg.latitude),6)
lon = round((msg.longitude),6)
print str(lat)+","+str(lon)
2015年1月6日 星期二
face detation
install simplecv
https://github.com/sightmachine/SimpleCV/blob/develop/doc/HOWTO-Install%20on%20RaspberryPi.rst
install UV4L
出現video 0
範例
https://github.com/leathersole/raspberry-pi-python-sample/blob/master/facesensor/facesensorNoView.py
https://github.com/sightmachine/SimpleCV/blob/develop/doc/HOWTO-Install%20on%20RaspberryPi.rst
install UV4L
出現video 0
範例
https://github.com/leathersole/raspberry-pi-python-sample/blob/master/facesensor/facesensorNoView.py
2015年1月5日 星期一
web server
sudo apt-get install apache2 php5 libapache2-mod-php5
sudo apt-get install mysql-server mysql-client php5-mysql
sudo apt-get install vsftpd
sudo nano /etc/vsftpd.conf
Change anonymous_enable=YES to anonymous_enable=NO,
Uncomment local_enable=YES
Uncomment write_enable=YES
then go to the bottom of the file and add force_dot_files=YES
sudo service vsftpd restart
sudo apt-get install mysql-server mysql-client php5-mysql
sudo apt-get install vsftpd
sudo nano /etc/vsftpd.conf
Change anonymous_enable=YES to anonymous_enable=NO,
Uncomment local_enable=YES
Uncomment write_enable=YES
then go to the bottom of the file and add force_dot_files=YES
sudo service vsftpd restart
訂閱:
文章 (Atom)