Coder Social home page Coder Social logo

imjeffparedes / iot-simple-weather-matrix-display Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 17 KB

Arduino code for Mini weather status display from a 8x8 LED matrix display. Using Genuino MKR1000 to fetch temperature, humidity and condition of weather within a selected location.

Home Page: https://www.instructables.com/id/Weather-Matrix-Display/

License: Other

C 33.60% C++ 66.40%
arduino arduino-101 iot

iot-simple-weather-matrix-display's Introduction

Weather Matrix Display

Arduino code for Mini weather status display from a 8x8 LED matrix display. Using Genuino MKR1000 to fetch temperature, humidity and condition of weather within a selected location.

  • Version v1.0.0 | By Jeff Paredes

Getting Started

These instructions will show you how to use the code

Prerequisite Libraries

  1. Thread.h
  2. WiFi101.h
  3. ArduinoJson.h

Installing

Please follow these step by step series of examples that tell you have to use this codes

  1. Install prerequisite libraries

  2. Add the attached HexFont folder to your Arduino libraries.

  3. Open simple_weather_display.ino with your Arduino IDE

  4. Replace with your WiFi settings

char ssid[] = ""; //  your network SSID (name)
char pass[] = "";    // your network password (use for WPA, or use as key for WEP)
  1. Replace with your Apixu Api Key and location coordinates
String apiKey = "8f0ff191defb4a20b5583518171203"; // your apixu api key
String coordinates = "14.3335591,120.9758737"; // your location coordinates
  1. You can also changed what data to be displayed on this part of the code
//get the current condition
String condition =  result["current"]["condition"]["text"];
appendMessage(condition);
appendMessage(" ");
String temp_c = result["current"]["temp_c"] ;
appendMessage(temp_c);
appendMessage("C");
appendMessage(" ");
String humidity = result["current"]["humidity"];
appendMessage(humidity);
appendMessage("H");
appendMessage(" ");
  1. For example if you want to add wind_mph from apixu api result:
String wind_mph = result["current"]["wind_mph"] ;
appendMessage(wind_mph);
appendMessage("Wind mph");
appendMessage(" ");

Deployment

Flash Your MKR1000 using the code

Please visit Hardware Instruction Page on Instructables.com

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

License

This project is licensed under the Attribution-NonCommercial-ShareAlike 2.5 License - see the LICENSE.md file for details

Acknowledgments

iot-simple-weather-matrix-display's People

Contributors

imjeffparedes avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

kundeg2

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.