aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts/Weather.py
Commit message (Collapse)AuthorAgeLines
* Migrated Jakoolit to LinuxBeginningsDon Williams2026-02-13-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On branch main Your branch is up to date with 'origin/main'. Changes to be committed: modified: .github/FUNDING.yml modified: .github/ISSUE_TEMPLATE/bug.yml modified: .github/ISSUE_TEMPLATE/documentation-update.yml modified: .github/ISSUE_TEMPLATE/feature.yml modified: .github/PULL_REQUEST_TEMPLATE.md modified: CHANGELOG.md modified: CONTRIBUTING.es.md modified: CONTRIBUTING.md modified: Distro-Hyprland.sh modified: README.md modified: archive/release.sh modified: archive/upgrade.sh modified: config/cava/config modified: config/fastfetch/config-compact.jsonc modified: config/fastfetch/config-pokemon.jsonc modified: config/fastfetch/config-v2.jsonc modified: config/fastfetch/config.jsonc modified: config/hypr/Monitor_Profiles/default.conf modified: config/hypr/UserConfigs/00-Readme modified: config/hypr/UserConfigs/01-UserDefaults.conf modified: config/hypr/UserConfigs/ENVariables.conf modified: config/hypr/UserConfigs/Laptops.conf modified: config/hypr/UserConfigs/Startup_Apps.conf modified: config/hypr/UserConfigs/UserAnimations.conf modified: config/hypr/UserConfigs/UserDecorations.conf modified: config/hypr/UserConfigs/UserKeybinds.conf modified: config/hypr/UserConfigs/UserSettings.conf modified: config/hypr/UserConfigs/WindowRules.conf modified: config/hypr/UserConfigs/WorkSpaceRules.conf modified: config/hypr/UserScripts/00-Readme modified: config/hypr/UserScripts/RainbowBorders.bak.sh modified: config/hypr/UserScripts/RofiBeats.sh modified: config/hypr/UserScripts/RofiCalc.sh modified: config/hypr/UserScripts/WallpaperAutoChange.sh modified: config/hypr/UserScripts/WallpaperEffects.sh modified: config/hypr/UserScripts/WallpaperRandom.sh modified: config/hypr/UserScripts/WallpaperSelect.sh modified: config/hypr/UserScripts/Weather.py modified: config/hypr/UserScripts/Weather.sh modified: config/hypr/UserScripts/WeatherWrap.sh modified: config/hypr/UserScripts/ZshChangeTheme.sh modified: config/hypr/animations/00-default.conf modified: config/hypr/animations/01-default - v2.conf modified: config/hypr/animations/03- Disable Animation.conf modified: config/hypr/animations/END-4.conf modified: config/hypr/animations/HYDE - Vertical.conf modified: config/hypr/animations/HYDE - default.conf modified: config/hypr/animations/HYDE - minimal-1.conf modified: config/hypr/animations/HYDE - minimal-2.conf modified: config/hypr/animations/HYDE - optimized.conf modified: config/hypr/animations/ML4W - classic.conf modified: config/hypr/animations/ML4W - dynamic.conf modified: config/hypr/animations/ML4W - fast.conf modified: config/hypr/animations/ML4W - high.conf modified: config/hypr/animations/ML4W - moving.conf modified: config/hypr/animations/ML4W - standard.conf modified: config/hypr/animations/Mahaveer - me-1.conf modified: config/hypr/animations/Mahaveer - me-2.conf modified: config/hypr/application-style.conf modified: config/hypr/configs/ENVariables.conf modified: config/hypr/configs/Keybinds.conf modified: config/hypr/configs/Laptops.conf modified: config/hypr/configs/Startup_Apps.conf modified: config/hypr/configs/SystemSettings.conf modified: config/hypr/configs/WindowRules-config-v3.conf modified: config/hypr/configs/WindowRules-pre-53.conf modified: config/hypr/configs/WindowRules.conf modified: config/hypr/hypridle.conf modified: config/hypr/hyprland.conf modified: config/hypr/hyprlock-1080p.conf modified: config/hypr/hyprlock-2k.conf modified: config/hypr/hyprlock.conf modified: config/hypr/initial-boot.sh modified: config/hypr/monitors.conf modified: config/hypr/scripts/AirplaneMode.sh modified: config/hypr/scripts/Animations.sh modified: config/hypr/scripts/Brightness.sh modified: config/hypr/scripts/BrightnessKbd.sh modified: config/hypr/scripts/ChangeBlur.sh modified: config/hypr/scripts/ChangeLayout.sh modified: config/hypr/scripts/ClipManager.sh modified: config/hypr/scripts/DarkLight.sh modified: config/hypr/scripts/Distro_update.sh modified: config/hypr/scripts/Dropterminal.sh modified: config/hypr/scripts/GameMode.sh modified: config/hypr/scripts/Hypridle.sh modified: config/hypr/scripts/KeyBinds.sh modified: config/hypr/scripts/KeyHints.sh modified: config/hypr/scripts/KeybindsLayoutInit.sh modified: config/hypr/scripts/KeyboardLayout.sh modified: config/hypr/scripts/KillActiveProcess.sh modified: config/hypr/scripts/Kitty_themes.sh modified: config/hypr/scripts/KooLsDotsUpdate.sh modified: config/hypr/scripts/Kool_Quick_Settings.sh modified: config/hypr/scripts/LockScreen.sh modified: config/hypr/scripts/MediaCtrl.sh modified: config/hypr/scripts/MonitorProfiles.sh modified: config/hypr/scripts/OverviewToggle.sh modified: config/hypr/scripts/Polkit-NixOS.sh modified: config/hypr/scripts/Polkit.sh modified: config/hypr/scripts/PortalHyprland.sh modified: config/hypr/scripts/Refresh.sh modified: config/hypr/scripts/RefreshNoWaybar.sh modified: config/hypr/scripts/RofiEmoji.sh modified: config/hypr/scripts/RofiSearch.sh modified: config/hypr/scripts/RofiThemeSelector-modified.sh modified: config/hypr/scripts/RofiThemeSelector.sh modified: config/hypr/scripts/ScreenShot.sh modified: config/hypr/scripts/Sounds.sh modified: config/hypr/scripts/TouchPad.sh modified: config/hypr/scripts/UserConfigsSwitcher.sh modified: config/hypr/scripts/Volume.sh modified: config/hypr/scripts/WallustSwww.sh modified: config/hypr/scripts/WaybarCava.sh modified: config/hypr/scripts/WaybarLayout.sh modified: config/hypr/scripts/WaybarScripts.sh modified: config/hypr/scripts/WaybarStyles.sh modified: config/hypr/scripts/Wlogout.sh modified: config/hypr/scripts/sddm_wallpaper.sh modified: config/hypr/v2.3.20 modified: config/hypr/wallust/wallust-hyprland.conf modified: config/hypr/workspaces.conf modified: config/kitty/kitty-themes/00-Default.conf modified: config/kitty/kitty-themes/01-Wallust.conf modified: config/kitty/kitty.conf modified: config/rofi/0-shared-fonts.rasi modified: config/rofi/config-Animations.rasi modified: config/rofi/config-Monitors.rasi modified: config/rofi/config-calc.rasi modified: config/rofi/config-clipboard.rasi modified: config/rofi/config-edit.rasi modified: config/rofi/config-emoji.rasi modified: config/rofi/config-keybinds.rasi modified: config/rofi/config-kitty-theme.rasi modified: config/rofi/config-rofi-Beats-menu.rasi modified: config/rofi/config-rofi-Beats.rasi modified: config/rofi/config-rofi-theme.rasi modified: config/rofi/config-search.rasi modified: config/rofi/config-wallpaper-effect.rasi modified: config/rofi/config-wallpaper.rasi modified: config/rofi/config-waybar-layout.rasi modified: config/rofi/config-waybar-style.rasi modified: config/rofi/config-zsh-theme.rasi modified: config/rofi/config.rasi modified: config/rofi/themes/KooL_LonerOrZ.rasi modified: config/rofi/themes/KooL_style-1.rasi modified: config/rofi/themes/KooL_style-10-Fancy-v2.rasi modified: config/rofi/themes/KooL_style-10-Fancy.rasi modified: config/rofi/themes/KooL_style-11-Win11-list-dark.rasi modified: config/rofi/themes/KooL_style-11-Win11-list-light.rasi modified: config/rofi/themes/KooL_style-12-TOP-Docu.rasi modified: config/rofi/themes/KooL_style-13-Vertical.rasi modified: config/rofi/themes/KooL_style-14.rasi modified: config/rofi/themes/KooL_style-15-solarized.rasi modified: config/rofi/themes/KooL_style-2-Dark.rasi modified: config/rofi/themes/KooL_style-2-Light.rasi modified: config/rofi/themes/KooL_style-3-FullScreen-v1.rasi modified: config/rofi/themes/KooL_style-3-Fullscreen-v2.rasi modified: config/rofi/themes/KooL_style-4.rasi modified: config/rofi/themes/KooL_style-5.rasi modified: config/rofi/themes/KooL_style-6.rasi modified: config/rofi/themes/KooL_style-7.rasi modified: config/rofi/themes/KooL_style-8.rasi modified: config/rofi/themes/KooL_style-9.rasi modified: config/rofi/wallust/colors-rofi.rasi modified: config/swaync/style.css modified: config/wallust/templates/colors-cava modified: config/wallust/templates/colors-ghostty.conf modified: config/wallust/templates/colors-hyprland.conf modified: config/wallust/templates/colors-kitty.conf modified: config/wallust/templates/colors-rofi.rasi modified: config/wallust/templates/colors-swaync.css modified: config/wallust/templates/colors-waybar.css modified: config/wallust/wallust.toml modified: config/waybar/Modules modified: config/waybar/ModulesCustom modified: config/waybar/ModulesGroups modified: config/waybar/ModulesVertical modified: config/waybar/ModulesWorkspaces modified: config/waybar/UserModules modified: config/waybar/configs/[BOT & Left] SouthWest modified: config/waybar/configs/[BOT & Right] SouthEast modified: config/waybar/configs/[BOT] Camellia modified: config/waybar/configs/[BOT] Chrysanthemum modified: config/waybar/configs/[BOT] Default modified: config/waybar/configs/[BOT] Default Laptop modified: config/waybar/configs/[BOT] Gardenia modified: config/waybar/configs/[BOT] Peony modified: config/waybar/configs/[BOT] Simple modified: config/waybar/configs/[BOT] Sleek modified: config/waybar/configs/[LEFT] WestWing modified: config/waybar/configs/[LEFT] WestWing v2 modified: config/waybar/configs/[RIGHT] EastWing modified: config/waybar/configs/[RIGHT] EastWing v2 modified: config/waybar/configs/[TOP & BOT] SummitSplit modified: config/waybar/configs/[TOP & BOT] SummitSplit v2 modified: config/waybar/configs/[TOP & BOT] SummitSplit-glass modified: config/waybar/configs/[TOP & Left] NorthWest modified: config/waybar/configs/[TOP & Right] NorthEast modified: config/waybar/configs/[TOP] 0-Ja-0 modified: config/waybar/configs/[TOP] Arrow modified: config/waybar/configs/[TOP] Camellia modified: config/waybar/configs/[TOP] Chrysanthemum modified: config/waybar/configs/[TOP] Default modified: config/waybar/configs/[TOP] Default (old v1) modified: config/waybar/configs/[TOP] Default (old v2) modified: config/waybar/configs/[TOP] Default (old v3) modified: config/waybar/configs/[TOP] Default (old v4) modified: config/waybar/configs/[TOP] Default Laptop modified: config/waybar/configs/[TOP] Default Laptop (old v1) modified: config/waybar/configs/[TOP] Default Laptop (old v2) modified: config/waybar/configs/[TOP] Default Laptop (old v3) modified: config/waybar/configs/[TOP] Default Laptop (old v4) modified: config/waybar/configs/[TOP] Default Laptop (old v5) modified: config/waybar/configs/[TOP] Default Laptop-glass modified: config/waybar/configs/[TOP] Everforest modified: config/waybar/configs/[TOP] Everforest-glass modified: config/waybar/configs/[TOP] Gardenia modified: config/waybar/configs/[TOP] Minimal - Long modified: config/waybar/configs/[TOP] Minimal - Short modified: config/waybar/configs/[TOP] Peony modified: config/waybar/configs/[TOP] Simple modified: config/waybar/configs/[TOP] Simpliest modified: config/waybar/configs/[TOP] Sleek modified: config/waybar/style/[0 VERTICAL] Golden Noir.css modified: config/waybar/style/[0 VERTICAL] Oglo Chicklets.css modified: config/waybar/style/[0 VERTICAL] [Catpuccin] Mocha.css modified: config/waybar/style/[Black & White] Monochrome.css modified: config/waybar/style/[Catppuccin] Frappe.css modified: config/waybar/style/[Catppuccin] Latte.css modified: config/waybar/style/[Catppuccin] Mocha.css modified: config/waybar/style/[Colored] Chroma Glow.css modified: config/waybar/style/[Colored] Translucent.css modified: config/waybar/style/[Colorful] Aurora Blossom.css modified: config/waybar/style/[Colorful] Aurora.css modified: config/waybar/style/[Colorful] Oglo Chicklets.css modified: config/waybar/style/[Colorful] Rainbow Spectrum.css modified: config/waybar/style/[Colorful] stolen-style.css modified: config/waybar/style/[Dark] Golden Eclipse.css modified: config/waybar/style/[Dark] Golden Noir.css modified: config/waybar/style/[Dark] Half-Moon.css modified: config/waybar/style/[Dark] Latte-Wallust combined v2.css modified: config/waybar/style/[Dark] Latte-Wallust combined.css modified: config/waybar/style/[Dark] Purpl.css modified: config/waybar/style/[Dark] Wallust Obsidian Edge.css modified: config/waybar/style/[Extra] Arrow.css modified: config/waybar/style/[Extra] Crimson.css modified: config/waybar/style/[Extra] EverForest.css modified: config/waybar/style/[Extra] ML4W starter.css modified: config/waybar/style/[Extra] Mauve.css modified: config/waybar/style/[Extra] Modern-Combined - Transparent.css modified: config/waybar/style/[Extra] Modern-Combined.css modified: config/waybar/style/[Extra] Neon Circuit.css modified: config/waybar/style/[Extra] Prismatic Glow.css modified: config/waybar/style/[Extra] Rose Pine.css modified: config/waybar/style/[Extra] Simple Pink.css modified: config/waybar/style/[Light] Monochrome Contrast.css modified: config/waybar/style/[Light] Obsidian Glow.css modified: config/waybar/style/[Rainbow] RGB Bordered.css modified: config/waybar/style/[Retro] Simple Style.css modified: config/waybar/style/[Transparent] Crystal Clear.css modified: config/waybar/style/[VERTICAL] [Catpuccin] Mocha.css modified: config/waybar/style/[WALLUST] ML4W-modern-mixed.css modified: config/waybar/style/[WALLUST] ML4W-modern.css modified: config/waybar/style/[Wallust Bordered] Chroma Fusion Edge.css modified: config/waybar/style/[Wallust Bordered] Chroma Simple.css modified: config/waybar/style/[Wallust Transparent] Crystal Clear.css modified: config/waybar/style/[Wallust] Box type.css modified: config/waybar/style/[Wallust] Chroma Edge.css modified: config/waybar/style/[Wallust] Chroma Fusion.css modified: config/waybar/style/[Wallust] Chroma Tally V2.css modified: config/waybar/style/[Wallust] Chroma Tally.css modified: config/waybar/style/[Wallust] Colored.css modified: config/waybar/style/[Wallust] Simple.css modified: config/waybar/wallust/colors-waybar.css modified: config/wlogout/style.css modified: copy.sh modified: i18n/README.de.md modified: i18n/README.jp.md modified: i18n/README.ro.md modified: i18n/README.ru.md modified: i18n/README.ua.md
* Invalidate cache when changing unitsDon Williams2025-12-06-0/+7
| | | | | | | | On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: Weather.py
* Merge pull request #874 from albersonmiranda/weather-fixDonald Williams2025-12-05-5/+5
|\ | | | | fix: Check for empty strings in place parts and prevent coordinates from printing when a place is found.
| * fix: Check for empty strings in place parts and prevent coordinates from ↵Alberson Miranda2025-12-05-5/+5
| | | | | | | | printing when a place is found.
* | fix: Weather.py one-off runbrockar2025-11-09-1/+1
|/
* feat(weather): prioritize MANUAL_PLACE for geocoding and skip reverse lookup ↵prabinpanta02025-10-28-8/+16
| | | | | | | | | 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
* feat(weather): forward geocode MANUAL_PLACE/WEATHER_PLACE to lat/lonprabinpanta02025-10-28-7/+50
| | | | | | | - 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
* config(hypr): preserve valid zero values for is_day and weather_code by ↵prabinpanta02025-10-27-2/+4
| | | | using explicit None checks
* config(hypr): preserve fetched/cached place and stop preemptive MANUAL/ENV ↵prabinpanta02025-10-27-7/+5
| | | | | | 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.
* Update config/hypr/UserScripts/Weather.pyPrabin Panta2025-10-27-1/+1
| | | Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* config(hypr): preserve empty place strings & prefer MANUAL/ENV place; use ↵prabinpanta02025-10-27-8/+9
| | | | | | | | | 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.
* config(hypr): skip empty place parts and simplify place selection using ↵prabinpanta02025-10-27-6/+6
| | | | | | | | 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).
* config(hypr): preserve empty place strings and use explicit None checksprabinpanta02025-10-27-6/+7
| | | | | | | 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.
* config(hypr): run Weather.sh at startup; lower weather cache TTL to 5 minutesprabinpanta02025-10-27-1/+1
|
* config(hypr): disable tooltip markup by default, refine place handling & ↵prabinpanta02025-10-27-11/+17
| | | | | | | | | | 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.
* config(hypr): relax out_data typing in Weather.py to Dict[str, Any]prabinpanta02025-10-26-1/+1
| | | | | | 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.
* config(hypr): improve numeric coercion and add ensure_* warningsprabinpanta02025-10-26-2/+12
| | | | | | | | | - 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.
* config(hypr): refactor Weather.py — pathlib, typing, safer parsing & ↵prabinpanta02025-10-26-178/+500
| | | | | | | | | | | | | 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
* Updated Weather.py to correct versionDon Williams2025-10-05-107/+504
| | | | | | | | On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: config/hypr/UserScripts/Weather.py
* Update Weather.py - index out of rangeDonald Williams2025-09-21-1/+2
| | | | Changed index to resolve "index out of range error" Fix provided by mio-dokuhaki tested and verified
* Update Weather.pyDaniel Walker2025-05-01-1/+1
| | | fix wind speed display
* bug fix for Weather.pymio-dokuhaki2025-04-05-5/+7
|
* nope..installer2025-02-23-1/+1
| | | | these 2 does not like $HOME
* Not sure if important.. but whateverJaKooLit2025-02-23-1/+1
|
* Update Weather.pyJa.KooLit2025-02-22-9/+20
| | | just added the manual addition of location in case user wants that
* Weather.py update, auto get locationbrockar2025-02-21-33/+28
| | | | | I just can test it on my location, so I need that be tested before merging :)
* Some formatting, header adjustments on conf and scriptsJaKooLit2024-09-20-1/+0
|
* Added Searchable Keybinds using rofiJaKooLit2024-09-20-0/+3
| | | | Default Keybind SUPER SHIFT K
* fix: fix bug on Weather.py reversing min/max tempalzalia12024-07-11-2/+2
|
* reduced padding rofi on master configJaKooLit2024-05-22-1/+1
| | | | added a space on weather.py waybar data for better output
* Fixed alignment of Weather.py for hyprlock - Man this is getting annoying ↵JaKooLit2024-05-15-1/+1
| | | | already lmao
* updated weather iconsJaKooLit2024-05-15-6/+6
|
* Weather.py clean up. Double codesJaKooLit2024-05-12-141/+6
|
* weather.py alignment adjustmentJaKooLit2024-05-10-0/+135
|
* Initial Push - Moving to Wallust from PywalJaKooLit2024-05-10-3/+3
|
* Hyprlock weather delay fixKiran George2024-05-06-1/+13
|
* updated Weather.pyJaKooLit2024-05-03-0/+0
|
* updated python weather scriptJaKooLit2024-05-03-3/+5
|
* to resolve the conflict or PR #152JaKooLit2024-05-03-102/+102
|
* removal of extra # to align with new hyprlang requirement. Credit goes to ↵Ja.KooLit2024-03-13-1/+1
| | | | @@Ryuuyas
* Re-Structured Hypr Folder in preparation for Updates ScriptsJa.KooLit2023-12-29-0/+122
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage