• 1
  • 4
  • 5
  • 6(current)
  • 7
  • 8
  • 9
Release Open-Meteo Weather
#76
(2024-10-28, 19:50)ksooo Wrote: Could you share your thoughts, please? Maybe me having a Mac right here can be of help.
Sure, that would be great! I will just update my service.test script to add some more debugging stuff, will be ready in about ~30 mins ..

Thanks!
Skin: Night | Weather: weather.openmeteo | Metadata / News (soon): plugin.universal.data | All-in-one KODI client & Night v3 (soon): OpenHT
Reply
#77
Service test script: service.test-0.0.2

Hope this works on macOS, just install & enable then switch languages and post kodi.log output. Thanks!
Skin: Night | Weather: weather.openmeteo | Metadata / News (soon): plugin.universal.data | All-in-one KODI client & Night v3 (soon): OpenHT
Reply
#78
Sure, will do later tonight.
Reply
#79
Here we go:

2024-10-28 22:08:48.287 T:7869531    info <general>: [service.test]: xbmc.getLocalizedString() = Montag
2024-10-28 22:08:48.288 T:7869531    info <general>: [service.test]: Datetime strftime() = Montag
2024-10-28 22:08:48.288 T:7869531    info <general>: [service.test]: Python LANG env = None
2024-10-28 22:08:48.288 T:7869531    info <general>: [service.test]: LOCALE = (None, None)

HTH?
Reply
#80
(2024-10-28, 23:09)ksooo Wrote: HTH?
Yes, thanks that actually confirms my suspicion although it would be nice that you also change languages to see the difference in the log.

I assume you have set you macOS system language to german? Is it possible to set it to english for testing? Then reboot your machine and test if openmeteo is miraculously working after that change?
Skin: Night | Weather: weather.openmeteo | Metadata / News (soon): plugin.universal.data | All-in-one KODI client & Night v3 (soon): OpenHT
Reply
#81
> I assume you have set you macOS system language to german?

No, my macOS system language is English US.
Reply
#82
Started with German as Kodi language:

2024-10-28 22:41:55.264 T:7930471    info <general>: [service.test]: xbmc.getLocalizedString() = Montag
2024-10-28 22:41:55.265 T:7930471    info <general>: [service.test]: Datetime strftime() = Montag
2024-10-28 22:41:55.265 T:7930471    info <general>: [service.test]: Python LANG env = None
2024-10-28 22:41:55.265 T:7930471    info <general>: [service.test]: LOCALE = (None, None)

Then switched to English:

2024-10-28 22:43:25.484 T:7930471    info <general>: [service.test]: xbmc.getLocalizedString() = Monday
2024-10-28 22:43:25.485 T:7930471    info <general>: [service.test]: Datetime strftime() = Monday
2024-10-28 22:43:25.485 T:7930471    info <general>: [service.test]: Python LANG env = None
2024-10-28 22:43:25.485 T:7930471    info <general>: [service.test]: LOCALE = (None, None)
Reply
#83
And switching back to German... Interesting... line 1 still German, line 2 already English if that matters.
2024-10-28 22:44:15.527 T:7930471    info <general>: [service.test]: xbmc.getLocalizedString() = Montag
2024-10-28 22:44:15.527 T:7930471    info <general>: [service.test]: Datetime strftime() = Monday
2024-10-28 22:44:15.527 T:7930471    info <general>: [service.test]: Python LANG env = None
2024-10-28 22:44:15.527 T:7930471    info <general>: [service.test]: LOCALE = (None, None)
2024-10-28 22:44:20.531 T:7930471    info <general>: [service.test]: xbmc.getLocalizedString() = Montag
2024-10-28 22:44:20.531 T:7930471    info <general>: [service.test]: Datetime strftime() = Montag
2024-10-28 22:44:20.531 T:7930471    info <general>: [service.test]: Python LANG env = None
2024-10-28 22:44:20.531 T:7930471    info <general>: [service.test]: LOCALE = (None, None)
Reply
#84
Perfect, thanks! That's all I need for now.

I'll release an update tomorrow with an explanation what was going on here.
Thanks again!
Skin: Night | Weather: weather.openmeteo | Metadata / News (soon): plugin.universal.data | All-in-one KODI client & Night v3 (soon): OpenHT
Reply
#85
Download:
weather.openmeteo-0.9.7
 
Code:
v0.9.7 (29/10/2024)
-------------------
* Changed strftime() parameter to fix LOCALE (LC_TIME) difference on macOS
* Changed localization mapping to match new strftime() value
* Revert some addon localization strings to be global again

Long story short:
On windows, linux and android calling strftime() (or any other system library function) will always return non-localized (english) strings while on macOS the default behavior is to return localized strings which broke the addons localization mapping.
Skin: Night | Weather: weather.openmeteo | Metadata / News (soon): plugin.universal.data | All-in-one KODI client & Night v3 (soon): OpenHT
Reply
#86
> v0.9.7 (29/10/2024)

Confirming localization working instantly and correctly when switching language on macOS now. Thank you so much.
Reply
#87
Thank you. Excellent job.
And good team work testing on IOS.
Reply
#88
One request: Could you change loglevel for those "Initialising", "Updating", "Downloading", Finished" log messages from INFO to DEBUG? Those lines are really spamming the log if Kodi runs a bit longer and imo they do not provide any real value when everything runs just fine. Thanks.
Reply
#89
(2024-10-30, 11:51)ksooo Wrote: One request: Could you change loglevel for those "Initialising", "Updating", "Downloading", Finished" log messages from INFO to DEBUG? Those lines are really spamming the log if Kodi runs a bit longer and imo they do not provide any real value when everything runs just fine. Thanks.
Yes, it's already on my v1.0 checklist but while in development this info is there for a reason.

Thanks!
Skin: Night | Weather: weather.openmeteo | Metadata / News (soon): plugin.universal.data | All-in-one KODI client & Night v3 (soon): OpenHT
Reply
#90
> Yes, it's already on my v1.0 checklist but while in development this info is there for a reason.

Understood. Makes sense.
Reply
  • 1
  • 4
  • 5
  • 6(current)
  • 7
  • 8
  • 9

Logout Mark Read Team Forum Stats Members Help
Open-Meteo Weather0