This project will provide you with a graphical dashboard of the current weather observation based on the Raspberry Pi Weather Station data.
You can see a live version of the master branch at n5jlc.duckdns.org/dashboard.
Contributions to this project can be made by using the program and providing feedback or by assisting in the programming and submitting pull requests. In either case, please read the contributing page for instructions.
Please don't ask question in the issue tracker, instead ask them in a . I will be notified when something is posted in the chat room, and if I'm available I'll join you.
-
Install the Apache2 package with the following command:
sudo apt-get install apache2 -y
-
Install PHP5 and the PHP module for Apache
sudo apt-get install php5 libapache2-mod-php5 -y
-
Install the MySQL DLL's for PHP5
sudo apt-get install php5-mysql -y
-
Navigate to the web folder:
cd /var/www/html
-
Download the files to a folder named
dashboard
:sudo git clone https://github.com/JoshuaCarroll/Raspberry-Pi-Weather-Station-Dashboard.git dashboard
-
Return to the dashboard site root.
cd dashboard
You should now be in /var/www/html/dashboard
-
Update the the php script with the MySQL password that you chose when installing the database.
sudo nano database.php
Update the database connection variables to the values for your environment.
Press
Ctrl O
thenEnter
to save andCtrl X
to quit nano. -
Run the setup script to setup additional preferences.
./setup.sh
-
Find the weather station's ip address:
ifconfig
The IP address will be on the second line just after
inet addr:
. Enter this IP address into a browser followed by/dashboard
. For example:http://192.168.0.X/dashboard
Configuration of supported external APIs is included in the setup script, but if you would like to see the details, they are included in the respective links below:
- Weather Underground: See README-API-WeatherUnderground.md.
New features and bug-fixes will be added to this repository as needed. If you want to update your copy with the latest changes, follow these steps.
-
Navigate to the dashboard folder:
cd /var/www/html/dashboard
-
Backup your database settings file:
sudo cp database.php ../
-
Update your code with the latest changes:
sudo git pull
-
Restore your database settings file:
sudo mv ../database.php ./
-
Update the stored procedure in your database:
sudo mysql -u root -p weather < SETUP.sql
-
Run the setup script to update database objects and setup additional preferences:
./setup.sh