Update README.md

Installation Instruction added
This commit is contained in:
Joachim Hummel 2017-01-06 12:08:07 +01:00 committed by GitHub
parent 4ee1f53275
commit 3d34fa312f

View File

@ -15,3 +15,17 @@ sudo python setup.py install<br/>
<br/> <br/>
sudo apt-get install python-mysqldb<br/> sudo apt-get install python-mysqldb<br/>
<br/> <br/>
<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/>