homebridge / homebridge-config-ui-x

The Homebridge UI. Monitor, configure and backup Homebridge from a browser.
https://homebridge.io
MIT License
2.59k stars 369 forks source link

Weather config widget does not show city state #2001

Closed dcompane closed 3 months ago

dcompane commented 4 months ago

Describe The Bug

when selecting the city for the weather widget, multiple cities with the same name appear. in my case, Oakland renders multiple Oakland, US choices

image

Logs

This cannot be seen in the logs. adding for completeness

home.log

Config

This is the part of the .uix-dashboard.json with a city without state
{"id":4869614,"name":"Oakland","country":"US","coord":{"lat":41.3092,"lon":-95.3967}}},

The complete ui configuration

[{"x":5,"y":0,"component":"HomebridgeStatusWidgetComponent","cols":15,"rows":4,"mobileOrder":10,"hidePort":true,"hideOnMobile":false},{"x":15,"y":7,"component":"WeatherWidgetComponent","cols":5,"rows":3,"mobileOrder":20,"location":{"id":4869614,"name":"Oakland","country":"US","coord":{"lat":41.3092,"lon":-95.3967}}},{"x":10,"y":7,"component":"ClockWidgetComponent","cols":5,"rows":3,"mobileOrder":23,"hideOnMobile":true,"timeFormat":"H:mm","dateFormat":"yyyy-MM-dd"},{"x":0,"y":9,"component":"ChildBridgeWidgetComponent","cols":5,"rows":11,"mobileOrder":35,"hideOnMobile":false},{"x":5,"y":4,"component":"CpuWidgetComponent","cols":5,"rows":3,"mobileOrder":40,"hideOnMobile":false},{"x":10,"y":4,"component":"MemoryWidgetComponent","cols":5,"rows":3,"mobileOrder":50,"hideOnMobile":false},{"x":5,"y":7,"component":"NetworkWidgetComponent","cols":5,"rows":3,"mobileOrder":55,"hideOnMobile":false},{"x":15,"y":4,"component":"UptimeWidgetComponent","cols":5,"rows":3,"mobileOrder":60,"hideOnMobile":false},{"x":0,"y":0,"component":"SystemInfoWidgetComponent","cols":5,"rows":9,"mobileOrder":70,"hideOnMobile":false},{"x":0,"y":20,"component":"HapQrcodeWidgetComponent","cols":5,"rows":8,"mobileOrder":100,"hideOnMobile":false},{"x":5,"y":10,"component":"HomebridgeLogsWidgetComponent","cols":15,"rows":21,"mobileOrder":1000,"hideOnMobile":true}]

A weather plugin (not the UI widget) reports this Weather] Oakland, CA, United States [5378538]: 37.8045°N, 122.2714°W

The config.json shows

    {
        "name": "Weather",
        "apikey": "fca24bInv4li6T0k3Nc1bcb0c66c1b1f",
        "dailyForecasts": 0,
        "hourlyForecasts": 0,
        "leakSensor": false,
        "locations": [
            "Oakland, CA, United States"
        ],
        "_bridge": {
            "username": "0E:E5:25:76:8D:F6",
            "port": 36346
        },
        "platform": "WS"
    },

Homebridge UI Version

v4.55.1

Homebridge Version

1.7.0

Node.js Version

20.11.0

Operating System

Ubuntu / Debian (or a variant)

Environment Info

{"label"=>"Using hb-service?"}

Raspberry Pi Model

Raspberry Pi 4 B

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 3 months ago

This issue has been closed as no further activity has occurred.