| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
|
|
| |
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: Weather.py
|
| |\
| |
| | |
fix: Check for empty strings in place parts and prevent coordinates from printing when a place is found.
|
| | |
| |
| |
| | |
printing when a place is found.
|
| |/ |
|
| |
|
|
|
|
|
|
|
| |
when set
- Treat MANUAL_PLACE as highest priority: forward-geocode it first and return coords if found
- Make ENV_PLACE a separate forward-geocode step (after explicit env coords)
- When fetching fresh weather, use MANUAL_PLACE directly as the place string to avoid an unnecessary reverse geocode call
- Update comment numbering to reflect the new priority order
|
| |
|
|
|
|
|
| |
- Add Open‑Meteo geocoding for place names; use when env coords aren’t set
- Adjust get_coords precedence: env coords > manual/env place > cache > IP
- Guard cache reuse by verifying cached forecast lat/lon matches requested
- Preserve tooltip place display; no changes to JSON schema/output fields
|
| |
|
|
| |
using explicit None checks
|
| |
|
|
|
|
| |
override
Use the exact place value returned from fetch_place or stored in the API cache when writing/reading and when building output. Remove the early coalescing with MANUAL_PLACE/ENV_PLACE so cached/fetched place strings (including empty/None) are preserved and final selection is handled centrally by build_place_str.
|
| |
|
| |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
| |
|
|
|
|
|
|
|
| |
explicit None checks
- Use explicit "is not None" checks when building place parts so empty strings are kept
instead of being treated as falsy.
- Build place string from MANUAL_PLACE or ENV_PLACE before reverse-geocoded place,
preserving explicit overrides and empty place values.
|
| |
|
|
|
|
|
|
| |
or-chaining
Use truthy checks when building Open-Meteo place parts (ignore empty strings)
and replace verbose None-check ternaries with `or` chains when resolving the
effective place (prefer MANUAL_PLACE, then ENV_PLACE, then cached/fetched place).
|
| |
|
|
|
|
|
| |
Use `is not None` when extracting open-meteo place parts so empty strings aren't
discarded. Replace truthy `or` chains for selecting the effective place with
explicit None-aware conditionals so MANUAL_PLACE/ENV_PLACE empty values are
honored instead of being treated as false.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
simple output; replace wttr wrapper
- Set TOOLTIP_MARKUP default to off (ENV-driven still supported).
- Use truthy checks in place extraction helpers and simplify extraction logic.
- Change place formatting to show resolved place with coordinates or coordinates-only.
- Prepend place to simple text cache and add icons for wind, humidity and visibility.
- Replace legacy wttr-based Weather.sh with a direct Python Weather.py invocation.
|
| |
|
|
|
|
| |
Change out_data annotation from Dict[str, str] to Dict[str, Any] so the
output can include non-string values (tooltip, class, etc.) and avoid
type mismatches.
|
| |
|
|
|
|
|
|
|
| |
- Parse numeric strings more robustly in coerce_number: convert to float then
return int when the float has no fractional part (handles scientific notation
and avoids brittle '.'/'e' checks).
- Add diagnostic warnings to ensure_dict and ensure_list that print the
unexpected type and a truncated repr to stderr to help detect API shape
mismatches.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
modular flow
- Convert to dataclasses (Location, WeatherData) and add richer typing/casts
- Replace os.path with pathlib for cache paths and file I/O
- Add robust numeric coercion helpers (coerce_int/float/number) and unit-safe parsing
- Introduce ensure_dict/ensure_list and improved safe_get for resilient JSON traversal
- Split geolocation into env/cache/ip providers and modular reverse-geocoding helpers
- Modularize cache/fetch logic (try_cached, fetch_fresh, try_stale) and unify output builder
- Safer handling of API cache timestamp/TTL and stale-cache fallback
- Add simple tests for coercion functions
|
| |
|
|
|
|
|
|
| |
On branch development
Your branch is up to date with 'origin/development'.
Changes to be committed:
modified: config/hypr/UserScripts/Weather.py
|
| |
|
|
| |
Changed index to resolve "index out of range error"
Fix provided by mio-dokuhaki tested and verified
|
| |
|
| |
fix wind speed display
|
| | |
|
| |
|
|
| |
these 2 does not like $HOME
|
| | |
|
| |
|
| |
just added the manual addition of location in case user wants that
|
| |
|
|
|
| |
I just can test it on my location, so I need that be tested before
merging :)
|
| | |
|
| |
|
|
| |
Default Keybind SUPER SHIFT K
|
| | |
|
| |
|
|
| |
added a space on weather.py waybar data for better output
|
| |
|
|
| |
already lmao
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
@@Ryuuyas
|
| |
|