Skip to content

bigw00d/m5paper_weather_display

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

m5paper_weather_display

Description

  • Show the weather & condition(temperature, humidity)
  • Use LovyanGFX to draw the LCD

Requirement

  • M5Paper
  • Arduino IDE (Version: 1.8.15)
  • Arduino Json (Version: 6.18.2)
  • LovyanGFX (Version: 0.4.1)
  • M5EPD (Version: 0.1.1)

Board settings

  • ボード M5Stack-Paper
  • Upload Speed 115200
  • CPU Frequency 240MHz
  • Partition Scheme Default
  • Core Debug Level なし
  • PSRAM: Disabled

Usage

  1. Write the image files to the SD card & insert the SD card

    • cloudy.jpeg
    • humidity.jpg
    • rainly.jpeg
    • rainyandcloudy.jpeg
    • snow.jpeg
    • sunny.jpeg
    • sunnyandcloudy.jpeg
    • thermometer.jpg
  2. Modify the area configuration in weather_forecast.cpp(example below, use JMA)

#include "weather_forecast.hpp"

WeatherForecast::WeatherForecast(void)
{
    // this->endpoint = "https://www.drk7.jp/weather/json/14.js";
    // this->region = "東部";
    this->endpoint = "https://www.jma.go.jp/bosai/forecast/data/forecast/(pathCode).json";
    this->region = "(areaName)";
}
  1. Modify the Wi-Fi configuration in config.h
#pragma once

const char* SSID = "(Your NW SSID)";
const char* PASS = "(Your NW Password)";
  1. Build the project & upload the application to your board

Licence

This program is licensed under Apache-2.0.

Changelog

[0.0.1] - 2022-06-01

Added

  • This README file

About

Show the weather

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 99.6%
  • C 0.4%