Nusudo-junior / WeatherDeskBand

Display the weather forecast provided by Open-Meteo on your taskbar.
MIT License
5 stars 0 forks source link

ICON #4

Open eetsceeck1 opened 8 months ago

eetsceeck1 commented 8 months ago

after searching the whole web for a program that add a taskbar weather info as like news and interests in windows, (which i am not interested in - blocked search app in all firewalls)

i did not find any, "normal app" that does that, all have some weird behaviors, all of them in tray or else as a desktop gadget,

i was thinking to program such myself i am a c# programmer with a very limited knowledge in c+, then i thought maybe i should check on github and i found your crazy program here i dont know how to describe the feel when i saw it,

its exactly what i need, thank you very much youre a life saver. awesome project,

anyway its awesome, working fine, but there is no icons,

in the quick check of the code i found the line about the icons ,its looks like you set the "images" directory for the icons to be found automatically, I barely understand the code, I don't understand what {}{} means, and I tried to debug it as it is and its complain about null parameters probably due to that it doesn't have the necessary "url source", so I really don't know how to debug it without the xml file,

anyway there is only the question mark in the place of the icon no matter what i does, images directory is in place and all icons is there of course,

can you please advise anything, check why is it, fix it? thank you very much

image

Nusudo-junior commented 8 months ago

The cause of your issue is that the json got from open-meteo doesn't have "hourly weathercode" objects. Would you check url you made includes the below line? hourly=temperature_2m,weather_code

Sometimes open-meteo may not provide the hourly weathercodes. Would you check it provided? If they are provided correctly, the chart is seemed the screenshot. スクリーンショット 2024-03-21 161604

eetsceeck1 commented 8 months ago

@Nusudo-junior

thank you so much for your reply,

sorry for the late response,

yes hourly weather code is included in the url

please check the screen recording you might find something wrong also included a screenshot and the code itself

thanks, will wait for any updates.

https://github.com/Nusudo-junior/WeatherDeskBand/assets/43915916/40eac648-a03d-4333-940e-8d39f34856f1

With Daily Weather Code: image

Without Daily Weather Code: image

url: <URL src="https://api.open-meteo.com/v1/forecast?latitude=32.8497&amp;longitude=35.0697&amp;hourly=temperature_2m,weather_code&amp;daily=weather_code,temperature_2m_max,temperature_2m_min,sunrise,sunset&amp;timeformat=unixtime&amp;timezone=Africa%2FCairo" />

as you can see i have tried with the daily code and without the daily code and always using hourly code

image

============================

from start to end: 9qBqhp70Xc

Nusudo-junior commented 7 months ago

I found the URL changed from hourly=temperature_2m,weathercode to hourly=temperature_2m,weather_code. We need to erase the underscore in weather_code. Please paste the below URL. <URL src="https://api.open-meteo.com/v1/forecast?latitude=32.8497&amp;longitude=35.0697&amp;hourly=temperature_2m,weathercode&amp;daily=temperature_2m_max,temperature_2m_min,sunrise,sunset&amp;timeformat=unixtime&amp;timezone=Africa%2FCairo" />

eetsceeck1 commented 7 months ago

Thank you Very much for taking the time into it, highly appreciated!, it works,

your program its the only one out there indicates weather on the taskbar except the msn weather,

i like it a lot,

i am a big fan of taskbar indicators, i like to available information all the time no hidden things,

maybe ever if you will have mood and energy please consider adding a "user configuration" file, as the app.config in .net so there will be an option to change the max and min temps colors or even hide them,

i could do it myself with my limited understanding in c+, the issue i don't have a clue how to compile it, i don't even understand the structure of the this particular program, i compiled many c+ programs in the past but there was no involvement of batch files and those programs were executables or console,

anyway thanks a lot!

if ever there will be any updates i hope to get any notifications somehow. have a great time,

👍🙏👌

XwpzbRCSZD