Hi - Sorry for the delay
Python 3.8.5 (default, Jul 27 2020, 08:42:51)
[GCC 10.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from libqtile import widget
>>> w = widget.YahooWeather(update_interval=900,
format='{current_observation_atmosphere_pressure}hPa
{current_observation_condition_symbol}
{current_observation_condition_temperature}°{units_temperature}',
coordinates={'latitude': '12.846951', 'longitude': '18.1348325'})
>>> w.poll()
got exception polling widget
Traceback (most recent call last):
File
"/usr/lib/python3.8/site-packages/libqtile/widget/generic_poll_text.py",
line 88, in poll
text = self.parse(body)
File "/usr/lib/python3.8/site-packages/libqtile/widget/yahoo_weather.py",
line 266, in parse
data['current_observation_condition_code'],
KeyError: 'current_observation_condition_code'
"Can't parse"
>>>
How do I open an issue? Is that through github?
Thanks for working on this - I have found a widget which used
openweathermap which does the job but I'm happy to help with getting this
working.
Rich
On Friday, 4 September 2020 at 05:43:36 UTC+1 tcld wrote:
> Please consider opening an issue for this. Until then would you mind
> trying out the following?
>
> Launch your Python-interpreter (either via "python" or "python3", I
> assume) and execute the following three lines:
>
> from libqtile import widget
> w = widget.YahooWeather(update_interval=900,
> format='{current_observation_atmosphere_pressure}hPa
> {current_observation_condition_symbol}
> {current_observation_condition_temperature}°{units_temperature}',
> coordinates={'latitude': '12.846951', 'longitude': '18.1348325'})
> w.poll()
>
> You should then see the output normally presented to you by the widget in
> the bar. Or an error-message and a stacktrace - in the latter case please
> attach those here so I can get an idea of what is going on.
> On Thursday, 3 September 2020 at 09:26:50 UTC+2 [email protected] wrote:
>
>> I copied your one and pasted it in place of what I was using. The ony
>> possible thing I was thinking of could be the font? I'm using Ubuntu Mono
>> (I'll admit that I am using a config from 'DistroTubes' as the basis of my
>> qtile config as I'm new and using it to learn on rather than start with a
>> blank slate (which I hope to do eventually) - All the other widgets work
>> (Pacman, Net, Volume).
>>
>>
>>
>> On Wednesday, 2 September 2020 at 17:00:29 UTC+1 tcld wrote:
>>
>>> Could you show me how you are calling the widget?
>>>
>>> It is definitely not out of date, I am using it right now.
>>>
>>> On Wednesday, 2 September 2020 at 17:16:00 UTC+2 [email protected]
>>> wrote:
>>>
>>>> Hmnn, I still get the 'Can't Parse' error. So maybe the widget is out
>>>> of date? - I'm certainly running versino 0.16.1 of Qutile (from qtile
>>>> --version) I'm so sorry for the newbie questions..
>>>>
>>>> On Wednesday, 2 September 2020 at 15:50:43 UTC+1 tcld wrote:
>>>>
>>>>> I use the coordinates of my position as follows:
>>>>>
>>>>> widget.YahooWeather(update_interval=900,
>>>>> format='{current_observation_atmosphere_pressure}hPa
>>>>> {current_observation_condition_symbol}
>>>>> {current_observation_condition_temperature}°{units_temperature}',
>>>>> coordinates={'latitude': '20.12349', 'longitude': '18.5920563'},
>>>>> foreground=colors['PowerlineText'], background=colors['BarBackground1']),
>>>>>
>>>>> On Wednesday, 2 September 2020 at 16:30:59 UTC+2 [email protected]
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>> I'm new here and I've searched around but I can't find what I'm
>>>>>> looking for other than a ChangeLog saying it was resolved in a pervious
>>>>>> version but I'm running the current most up-to-date release of Qtile.
>>>>>>
>>>>>> I'd like to have the YahooWeather widget but I get a " Can't parse "
>>>>>> error in my bar. I assume we need to use the World Wide Identifier as
>>>>>> our
>>>>>> location (I've also tried the string version of my town and nearest city
>>>>>> (Norwich).
>>>>>>
>>>>>> Am I doing something wrong? OR!! (And I'd prefer) is there a
>>>>>> weather widget which uses 'OpenWeather'? How do I find non-standared
>>>>>> widgets? My searches are coming up empty or maybe I'm just rubbish at
>>>>>> searching.
>>>>>>
>>>>>> Thanks for any help
>>>>>>
>>>>>> Rich
>>>>>>
>>>>>
--
You received this message because you are subscribed to the Google Groups
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/qtile-dev/aea354b4-a230-4c53-bff5-0b36ce3afcf2n%40googlegroups.com.