2015-04-19 19:58:06 +00:00
|
|
|
# myweather
|
2015-05-08 07:59:33 +00:00
|
|
|
My Weather for Raspberry Pi with BMP180 / BMP085 / DS18B20<br/>
|
2015-05-08 07:52:09 +00:00
|
|
|
<img src="http://blog.unixweb.de/wp-content/uploads/2015/05/bmp180.jpg">
|
2015-05-08 07:51:08 +00:00
|
|
|
<img src="http://blog.unixweb.de/wp-content/uploads/2015/05/BMP085.jpg"><br/>
|
2015-05-08 07:59:33 +00:00
|
|
|
<img src="http://blog.unixweb.de/wp-content/uploads/2015/05/ds18b20-pinout.jpg">
|
2015-05-08 08:03:38 +00:00
|
|
|
<img src="http://blog.unixweb.de/wp-content/uploads/2015/05/DS18B20-e1431072161767.png"><br/>
|
2017-01-06 10:54:32 +00:00
|
|
|
|
2017-01-06 10:57:59 +00:00
|
|
|
Installation for Adafruit Python-Modules needed:<br/>
|
2017-01-06 10:56:23 +00:00
|
|
|
<br/>
|
|
|
|
sudo apt-get update<br/>
|
|
|
|
sudo apt-get install git build-essential python-dev python-smbus<br/>
|
|
|
|
git clone https://github.com/adafruit/Adafruit_Python_BM.git<br/>
|
|
|
|
cd Adafruit_Python_BMP<br/>
|
|
|
|
sudo python setup.py install<br/>
|
|
|
|
<br/>
|
2017-01-06 10:57:59 +00:00
|
|
|
sudo apt-get install python-mysqldb<br/>
|
2017-01-06 10:56:23 +00:00
|
|
|
<br/>
|
2017-01-06 11:08:07 +00:00
|
|
|
<br/>
|
|
|
|
Insert the required database parameter in "scheduler.py" for WordPress Plugin <br/>
|
|
|
|
databaseUsername="XXXXX"<br/>
|
|
|
|
databasePassword="XXXXX"<br/>
|
|
|
|
databaseName="XXXXX" #do not change unless you named the Wordpress database with some other name<br/>
|
|
|
|
databaseHost="www.xxx.de"<br/>
|
|
|
|
Install the WordPress Plugin <br/>
|
|
|
|
<br/>
|
|
|
|
Start "./scheduler.py" manually and check if there any errors.<br/>
|
|
|
|
<br/>
|
|
|
|
vi /etc/cron.d/weather <br/>
|
|
|
|
*/15 * * * * pi /home/pi/myweather/scheduler.py > /dev/null<br/>
|
|
|
|
<br/>
|
|
|
|
Demo: http://blog.joachimhummel.de/category/wetter<br/>
|