Skip to content

Weather mod#47

Open
MidnightJava wants to merge 7 commits intomainfrom
weather-mod
Open

Weather mod#47
MidnightJava wants to merge 7 commits intomainfrom
weather-mod

Conversation

@MidnightJava
Copy link
Owner

Added enhancements to the weather widget:

  1. Supports up to three sets of weather measures and automatically cycles between them while the weather widget is active. The duration of each measure can be specified. See the config.yaml file, which has all three specified.
    temp and condition
  • wind chill
  • wind speed and direction (with units indicated)
  1. When forecast is true, the forecast day and forecast hour are displayed on the lower left and lower right edges of the matrix.
  • The day is represented as a stack of 1 to 5 pixels on the left.
  • The hour is represented as a stack of 1 to 8 pixels on the right, one for each of the three-hour periods starting at 0 to 21.
  • A hash mark is displayed at the fourth pixel, if lit, for readability.

Additional Enhancement: Added three hot-keys

  • Alt-N forces the next widget to be displayed, without waiting for the time slice to end.
  • Alt-F freezes the app switching, so the current widget is displayed indefinitely
  • Alt-U unfreezes (resumes) app switching

Additional Enhancement: Custom local configs:

  • The config file can be specified as an app arg, overriding the environment variable. So the order of precedence for selecting the config file is: app arg (absolute path) -> env var (absolute path) -> config-local.yaml in working dir -> config.yaml in working dir.
  • Files matching glob pattern config-local*.yaml are git-ignored.
  • This is primarily for development use. You can create local config files with different widget arrangements, so you can easily test a specific widget or widget config without editing the entire config file. For example, I have config-local-.yaml so I can easily switch between testing different apps

No hurry on this review. Whenever you get to it is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant