mdiemer
simple one from neofetch. Execute this command in terminal curl wttr.in/?0?q?T and full view curl wttr.in or this python script (save as somename.py and execute in terminal python somename.py
import gi, requests as req
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
weatherResponse = req.get('http://wttr.in/?0?q?T')
class weatherWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="Weather from wttr.in")
hbox = Gtk.Box(spacing=10)
label = Gtk.Label()
label.set_markup(weatherResponse.text)
hbox.pack_start(label, True, True, 10)
self.add(hbox)
window = weatherWindow()
window.resize(250,150)
window.connect("destroy", Gtk.main_quit)
window.show_all()
Gtk.main()