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
These instructions will show you how to use the code
- Thread.h
- WiFi101.h
- ArduinoJson.h
Please follow these step by step series of examples that tell you have to use this codes
-
Install prerequisite libraries
-
Add the attached HexFont folder to your Arduino libraries.
-
Open simple_weather_display.ino with your Arduino IDE
-
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)
- 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
- 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(" ");
- 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(" ");
Flash Your MKR1000 using the code
Please visit Hardware Instruction Page on Instructables.com
- Arduino IDE - Programming IDE Used
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Jefferson Paredes - Developer - imjeffparedes
This project is licensed under the Attribution-NonCommercial-ShareAlike 2.5 License - see the LICENSE.md file for details
- Publishing Page - Instructables
- Inspiration - E.M.I.L.Y
- Sponsors - Hive Electronics