Coder Social home page Coder Social logo

weather's Introduction

Weather โ›…

Let's display the current weather and how is the forecast for the next few days?

display

Yeah it is mostly cloudy around here.

Hardware

The hardware utilizes a simple Wemos D1 board and 4x8x8 dot matrix module. It is simply using one SPI connection from the Wemos D1 to the module. The board needs to be connected to the internet to fetch the data.

Software

It serves as a clock display, where every 5 minutes it will ask for the weather data and display it.

github_state_diagram

There is a pseudo state called Initialize where we initialize the things we want to print.

Note

We are using OpenWeatherMap API

https://openweathermap.org/price

Free 60 calls/minute 1,000,000 calls/month

If we call 1 call a minute = 1440 calls a day = 43200 calls a month. However since the weather doesn't change that much, this can be lowered to a call every 5 minutes.

This project calls once every 5 minutes for the current weather.

weather's People

Contributors

seryafarma avatar

Watchers

 avatar

weather's Issues

Clean character parsing

Function get_http_weather can be a bit cleaned with the char parsing being put in another function.

Split Classes

Split the classes to individual header / libraries.

Add forecast

Add the forecast for the next 3 days.

Read more in:
https://openweathermap.org/forecast16

Forecast should not change so reading it 1x per hour should be enough.

Change the pending_gather to an enum.
GATHER_FORECAST

GATHER_CURRENT

add a new event also gather_forecast along with a new gather state for forecast.

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.