That's not a problem.  I did a search and found:
https://github.com/sffjunkie/qtile-openweathermap  - I don't know Python so
I haven't checked the source code.  I really like Openweathermap so I was
very happy to find a widget which uses it.  It was really easy to set up
and include in my config.

On Thu, 10 Sep 2020 at 15:19, tcld <[email protected]> wrote:

> Thank you very much for the output. It seems that Yahoo doesn't return any
> weather information for the location in your config - I didn't know that
> could happen. How is openweathermap working out for you? Also, where did
> you find the widget and why isn't it part of qtiles release?^^
>
> Nevertheless, I'm happy to hear that you found a solution. Maybe another
> weather widget would be a good addition to qtile.
>
> On Thursday, 10 September 2020 at 09:34:53 UTC+2 [email protected]
> wrote:
>
>> 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 a topic in the
> Google Groups "qtile-dev" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/qtile-dev/hIPm0RXQiME/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/qtile-dev/c04d81e8-ed43-4794-84af-65f79a806303n%40googlegroups.com
> <https://groups.google.com/d/msgid/qtile-dev/c04d81e8-ed43-4794-84af-65f79a806303n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
----------------------------

"*No trees were killed to send this message, but a large number of
electrons were terribly inconvenienced.*" - *Neil deGrasse Tyson*

-- 
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/CAPPYWqNw%2B8%3Df7wA4g05h5w%3DeFb6v4F%3DP6wy2%2BmqNGz%3DNvvmmwA%40mail.gmail.com.

Reply via email to