Skip to content

Commit

Permalink
Add daily precipitation feature. (#98)
Browse files Browse the repository at this point in the history
* Add daily precipitation feature.

* change to use UNITS_PRECIP for daily precipitation units, added more control over visibility of daily precipition, updated outlook graph to only display precip labels when precip is forecasted

* formatting

---------

Co-authored-by: Luke Marzen <98473324+lmarzen@users.noreply.github.com>
  • Loading branch information
asandhu3 and lmarzen committed Apr 29, 2024
1 parent f050b2d commit 2bd5ba1
Show file tree
Hide file tree
Showing 2 changed files with 173 additions and 88 deletions.
11 changes: 11 additions & 0 deletions platformio/include/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,14 @@
// other artifacts.
#define FONT_HEADER "fonts/FreeSans.h"

// DAILY PRECIPITATION
// Daily precipitation indicated under Hi|Lo can optionally be configured using
// the following options.
// 0 : Disable (hide always)
// 1 : Enable (show always)
// 2 : Smart (show only when precipitation is forecasted)
#define DISPLAY_DAILY_PRECIP 2

// ALERTS
// The handling of alerts is complex. Each country has a unique national alert
// system that receives alerts from many different government agencies. This
Expand Down Expand Up @@ -356,6 +364,9 @@ extern const unsigned long VERY_LOW_BATTERY_SLEEP_INTERVAL;
#if !(defined(FONT_HEADER))
#error Invalid configuration. Font not selected.
#endif
#if !(defined(DISPLAY_DAILY_PRECIP))
#error Invalid configuration. DISPLAY_DAILY_PRECIP not defined.
#endif
#if !(defined(DISPLAY_ALERTS))
#error Invalid configuration. DISPLAY_ALERTS not defined.
#endif
Expand Down
Loading

0 comments on commit 2bd5ba1

Please sign in to comment.