Git Product home page Git Product logo

weather-data's Introduction

Weather-Data

Introduction

This is a project to analyse the accuracy of API weather data when compared to sensor data, and to generate a prediction function to help improve this accuracy. Included is the data collection code (which was hosted on a Raspberry Pi), and the data analysis code (which is a python notebook), and the code for a user interface in the form of a website.

Data Gathering

The data was gathered using the get_data.py file, which was hosted on a Raspberry Pi. The file uploads the collected data from both the API and the sensor to a Google Sheet and to a backup CSV file (Data Backups/databackup fit.csv).

Data Analysis

The data is using the Data Analysis.ipynb python notebook. It draws the data from both the backup CSVs and the Google Sheet, and generates a prediction function based on the API data, to better predict the sensor data. The results for the whole data gathering time period are then saved in another csv (Data Backups/Data_Export.csv). This file is designed to be run from a Raspberry Pi, with a BME680 weather sensor connected.

Data Publishing

The exported data is published to a website. Ideally the csv file would be read into the HTML file, but this turned out to be extremeley difficult, so the workaround was to directly copy-paste the csv into the javascript file, to show the data as a chart on a webpage. The files for the website are all in the docs/ directory, where the website is also hosted. The webpage can be seen here: https://haydenc97.github.io/Weather-Data/.

Future plans for this section are to directly read weather data from the API, and apply the prediction function for that location as worked out in the data analysis file, and display the predicted weather data on top of the original weather data, for the selected or current location.

References

With special thanks to Ben Greenberg whose SIOT project was a huge source of inspiration and help to my own project.

As well as:

weather-data's People

Contributors

haydenc97 avatar

Watchers

 avatar

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.