Giter VIP home page Giter VIP logo

raspberry-pi-weather-station-dashboard's Introduction

Raspberry Pi Weather Station Dashboard

This project will provide you with a graphical dashboard of the current weather observation based on the Raspberry Pi Weather Station data.

Contributing

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.


Installation

Install prerequisites

  1. Install the Apache2 package with the following command:

    sudo apt-get install apache2 -y

  2. Install PHP5 and the PHP module for Apache

    sudo apt-get install php5 libapache2-mod-php5 -y

  3. Install the MySQL DLL's for PHP5

    sudo apt-get install php5-mysql -y

Get the dashboard code

  1. You will need root access on the Raspberry Pi. From the command line type:

    sudo -s

  2. Navigate to the web folder:

    cd /var/www/html

  3. Download the files to a folder named dashboard:

    git clone https://github.com/JoshuaCarroll/Raspberry-Pi-Weather-Station-Dashboard.git dashboard

  4. Return to the dashboard site root.

    cd dashboard

You should now be in /var/www/html/dashboard

Set up and connect

  1. Update the the php script with the MySQL password that you chose when installing the database.

    nano variables.php

    Update the variables to the values that you chose.

    Press Ctrl O then Enter to save and Ctrl X to quit nano.

  2. Create the GETCURRENTOBS stored procedure.

    mysql -u root -p weather < CREATE-SP.sql

  3. 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

Installing updates

This is a work-in-progress. New features and bug-fixes will be added here as needed. If you want to update your copy with the latest changes, follow these steps.

  1. Navigate to the dashboard folder:

    cd /var/www/html/dashboard

  2. Backup your variables file:

    sudo cp variables.php ../

  3. Update your code with the latest changes:

    sudo git pull

  4. Update the variables file with the values appropriate to your environment and installation:

    sudo nano variables.php

    NOTE: Since new variables may have been introduced since the time when you initially installed this program, do not overwrite the new variables file with your old one. Rather edit the new file and enter the appropriate values. If needed, refer to the backup copy of the variables file you made (located at /var/www/html) for values that you don't remember.

raspberry-pi-weather-station-dashboard's People

Contributors

joshuacarroll avatar

Watchers

James Cloos avatar MrRedBeard avatar

Forkers

sobreira

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.