📢 New Feature: Offline Cache Handling in check_weather.py #1
ldmcclatchey
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A new capability has been added to check_weather.py:
offline cache handling via --force_cache.
This allows the tool to run entirely from cached weather data, even when the API is unavailable. It’s useful for testing output formatting, debugging cache behavior, and working offline.
How it works
Running:
forces the tool to load the most recent cached weather snapshot.
Verbose and JSON modes clearly indicate the source and cache age.
Weather Demo Integration
The Weather Demo at linktechengineering.net now uses the updated backend, so you can see how cached data and the new weather fields appear in real time.
What’s next
Upcoming work includes additional cache‑control flags (--ignore-ttl, --cache-info, etc.) and expanded diagnostics.
Beta Was this translation helpful? Give feedback.
All reactions