Git Product home page Git Product logo

zeevox / raspberry-pi-weather-monitor Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 235 KB

Collecting temperature, humidity and pressure data from a Sense Hat on a Raspberry Pi and displaying it in real time on a webpage.

Home Page: https://zeevox.github.io/raspberry-pi-weather-monitor/

License: MIT License

Python 8.20% HTML 20.45% PHP 22.65% CSS 30.21% JavaScript 18.49%
python3 sense-hat raspberry-pi

raspberry-pi-weather-monitor's Introduction

5CO Summer Project

Collecting hyperlocal data (temperature, humidity, pressure) using a Raspberry Pi, then displaying it on a website, as well as using our pressure data to approximately predict the weather.

⚠️ This project is no longer maintained and has been archived

You may still browse the source code for your inspiration, or fork the project.

Viewing

You can view our website here. ⚠️ now offline

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

This project is licensed under the MIT license

raspberry-pi-weather-monitor's People

Contributors

dependabot[bot] avatar lckms avatar zeevox avatar

Watchers

 avatar  avatar  avatar

Forkers

egkoppel

raspberry-pi-weather-monitor's Issues

Add README.md file

Create a new file with filename README.md in the root of this repository. Most repositories have a file like this, so feel free to browse around Github for examples on a good README.

Next, take a look at the Markdown syntax and write some text to give a summary of our project and how it works.

Substitute real values

Updated task

  • Write some Javascript to replace the value within the HTML <div id="value_max ... elements and similar with the value of a given variable.
  • Extend your Javascript to download values from my server, parse the JSON and substitute them into the HTML.

Old task

  • Write a Python procedure in the main.py file to read the main.html file line-by-line.
  • Using the procedure you wrote in the previous step, write a function to output a single string (or an array of lines of code) with the pure HTML (i.e. including tags)
  • Extend your function to take value & unit parameters. Replace the value within the <div> element where id is value_max (or similar) with the parameter passed to the function. This may take some research (i.e. stackoverflow)

Collect sensor data

  • Set up a Raspberry Pi-Top with Enviro PHAT to collect data
  • Store and return data when requested

What data could be collected? Discussion welcome

Font rendering issue

In main.html the font avenir next is used.

This font is not a font that is found on all machines.

This should either be replaced with a webfont (take Google Fonts as an example) or a simple sans/sans-serif font that is installed on all machines.

Asynchronous XmlHTTPRequest

[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

Update fetch code to use an asynchronous request (instead of synchronous)

Footer text colour

Poor contrast ratio text in the footer

Footer text has a very poor contrast ratio with the background. Please update the colour of the text in the CSS to make this text more accessible and legible

Statistics

  • Analyse a given set of historical data, find trends/patterns/averages etc.
  • Present the maximum and minimum values and the time when they occurred
  • TBC Fetch historical data from my server and analyse it, displaying the statistics within the HTML

HTML page/design

Write template HTML ± CSS file(s) for presenting collected data. Leave placeholders for the data itself.

  • Basic HTML w/ placeholders
  • Enhance HTML with some CSS and design
  • TBC Extra page for presenting more detailed data e.g. with graphs and/or averages

Images

You are welcome to use content from the Getty Images site on a complimentary basis for test or sample (composite or comp) use only, for up to 30 days following download. However, unless a licence is purchased, content cannot be used in any final materials or any publicly available materials. No other rights or warranties are granted for comp use.

  • Replace copyrighted images with images available for reuse
  • Credit image authors where necessary
  • Move images into an appropriately named directory
  • Give each image file a sensible, standardised name
  • Update usages of these images in the HTML

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.