If you can import owm ok then just add the "owm.OpenWeatherMap(..." bit
into your list of widgets .

On Wed, 16 Dec 2020, 12:08 Joe Yabuki, <[email protected]> wrote:

>
> Hello guys
> I'm using yahoo weather widget, but I realized that it's not accurate at
> all. Today it's -18 (-24 with the wind chill)  here in Montreal, but the
> widget shows -10.
> I looked and found this widget on github
> https://github.com/sffjunkie/qtile-openweathermap
> the problem I don't understand how to set it up! I copied the owm.py to my
> qtile config and added : import owm then I modified :
> ww = owm.OpenWeatherMap(
>     api_key="xxxxxxxxxxxxxxxxxxxxxxxxxxx",
>     latitude=45.489,
>     longitude=-73.82,
>     icon_font="Material Design Icons",
> )
> top_bar.append(ww)
> the question of how do I add this as a widget, because I pasted this to my
> config, but it doesn't work!(syntax error)
> Thanks in advance
>
> --
> 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/7bd7e5a1-5144-4bf1-a09e-cbcc642baa3cn%40googlegroups.com
> <https://groups.google.com/d/msgid/qtile-dev/7bd7e5a1-5144-4bf1-a09e-cbcc642baa3cn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CADPQLhAyw0w5850x3aVLZsg43yB%2B%3DCLa5-NJr2z_P2P%3Dbn4khg%40mail.gmail.com.

Reply via email to