YASB Weather Widget: A Debugging Saga of Epic Proportions (and the Case of the Missing Log File\!) #362
Replies: 6 comments 16 replies
-
|
Log file is right next to the |
Beta Was this translation helpful? Give feedback.
-
|
Even if the log file wouldn't be in such an obvious place, a system-wide file search would have given you the location in, like, a couple of seconds, no? A debug flag can be set in your config.yaml file. Additionally, the terminal command |
Beta Was this translation helpful? Give feedback.
-
|
Thank you but I did do a search and nothing came up and so I went to the
spot you said the log is in and it's not there either. I just looked.
…On Sat, Jun 28, 2025, 5:01 PM Slim08 ***@***.***> wrote:
Even if the log file wouldn't be in such an obvious place, a system-wide
file search would have given you the location in, like, a couple of
seconds, no? A debug flag
<https://github.com/amnweb/yasb/wiki/Configuration#status-bar-root-configuration>
can be set in your config.yaml file. Additionally, the terminal command yasbc
log will give you a live log output. The Weather Widget showing N/A is
most of the time caused by some problem with the API key. Getting a new one
resolves the issue more often than not.
—
Reply to this email directly, view it on GitHub
<#362 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYOQQ4ZPV3U2I6YJNWH7GGL3F37CLAVCNFSM6AAAAACALHVIFOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNRQGY3TEMA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
I have same problem YASB weather One week ago shows to data But now shows N/A |
Beta Was this translation helpful? Give feedback.
-
|
I have my own key, and nothing comes up in the terminal when I search for
the elusive yasbc log. See why I'm here.
…On Sat, Jun 28, 2025, 7:45 PM AmN ***@***.***> wrote:
Because shared keys which you can find in the themes are blocked, get your
own https://www.weatherapi.com/
—
Reply to this email directly, view it on GitHub
<#362 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYOQQ42CMCTRVWFOBZD2JA33F4SJ3AVCNFSM6AAAAACALHVIFOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNRQG4YTMMQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
I'm having a similar problem with my weather displaying N/A i have generated a new key and that didn't fix the issue, my log output looks like this: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey YASB Wizards and Fellow Bar-Barians,
I'm hitting a rather perplexing wall with my weather widget, and after a valiant debugging effort with a very patient AI (who, I swear, is now questioning its career choices), I'm reaching out to the collective wisdom of the forum!
The Quest Objective: To display glorious weather data on my YASB bar.
The Current Reality: The widget stubbornly shows "N/A N/A". It's like a stoic, weather-agnostic sentinel, refusing to divulge even a single degree. "Weather update..." flashes briefly, then BAM, "N/A N/A".
Our Journey Through the Digital Wilderness (The Technical Bits & The Fun Bits):
Phase 1: The
config.yamlIndentation Inquisition.config.yamlwas a YAML abomination. We went through line-by-line, checked every single space, tab, and colon. It was a true deep dive into the very soul of YAML syntax.config.yamlappears structurally pristine. Mylocationandapi_keyvariables are correctly defined and formatted. Phew, one less existential crisis.Phase 2: The API Key Identity Crisis.
weather.pysource code, a bombshell dropped: theWeatherDataFetcherclass, bless its heart, explicitly crafts itsapi_urlfor WeatherAPI.com!api_urlis built ashttp://api.weatherapi.com/v1/forecast.json?key={self._api_key}&q={urllib.parse.quote(self._location)}&days=3&aqi=no&alerts=yes.Phase 3: The "N/A N/A" Enigma, Decoded (Partially).
weather.pycode reveals thatN/A N/Aisn't a random act of defiance. It's the widget's graceful way of saying, "I tried, but something went wrong processing the data." Specifically, theprocess_weather_datafunction populates everything with "N/A" if it hits an exception during parsing the API response. This tells us the widget is trying to run and likely making a network call.Phase 4: The Legend of the Missing
yasb.logFile.loggingmodule inweather.py.Downloadsfolder (where I extractedyasb-1.7.6.zipsource code). Noyasb.log.cx_FreezePlot Twist: I stumbled upon aLICENSEfile stating YASB was "frozen with cx_Freeze," which implies I'm running a compiled.exeversion.yasb.exefromC:\Program Files\YASB. Logic dictated the log file must be there.yasb.loginC:\Program Files\YASB. My File Explorer confirmed it, repeatedly.%LOCALAPPDATA%\YASB! Lo and behold, a file! But notyasb.log. Instead,yasb_traffic_system_auto, containing JSON for network stats. So, YASB can write to AppData, but my elusive log file remains in the shadows.Unanswered Questions & Remaining Suspects:
QNetworkAccessManagerinWeatherDataFetcherfrom reaching WeatherAPI.com?yasb.logsimply not being created, even with the "N/A N/A" indicating errors should be occurring and logged? Is there a debug flag I'm missing, or perhaps a different default log location for frozen builds that isn't common?My Setup:
C:\Program Files\YASBconfig.yamlsnippet (weather widget only):Any insights, tips on forcing log creation, or "aha!" moments from experienced users or the developer would be massively appreciated! My bar is currently experiencing a severe weather information deficit.
Thanks in advance for any help!
Beta Was this translation helpful? Give feedback.
All reactions