#!/bin/sh # NEE JE WILT DEZE! # joostvb@oganj:~% curl v2.wttr.in/Tilburg\?Fq # en NIET v2d ! # todo: # joostvb@oganj:~% curl wttr.in/tilburg # joostvb@yosida:~% feh https://wttr.in/tilburg.png # joostvb@yosida:~% curl 'wttr.in/Tilburg?2Fq' # xterm # joostvb@oganj:~% curl 'wttr.in/Tilburg?Fq' # xterm -e 'curl wttr.in/Tilburg\?Fq; cat' & # joostvb@oganj:~% curl v2d.wttr.in/Tilburg\?Fq # # curl https://v2.wttr.in/\?Fq # joostvb@dijkstra:~% curl -s "http://gps.buienradar.nl/getrr.php?lat=51.563813&lon=5.032768" | grep -v '^000' | sed 's/^....//' # 000|14:35 # 000|14:40 # 089|14:45 # 000|14:50 # 000|14:55 # 000|15:00 # 000|15:05 #пет 26 14:14 < hvddool> joostvb: nav 'wanneer gaat het regenen': curl # "http://gps.buienradar.nl/getrr.php?lat=51.563813&lon=5.032768" #пет 26 14:14 < hvddool> voorspelling voor komende twee uur voor Oude Warande #пет 26 14:15 < hvddool> via http://gratisweerdata.buienradar.nl/ #tilburg, since oct 2021: #https://www.yr.no/en/content/2-2746301/meteogram.svg # "this forecast widget is being discontinued." # # feh can't display .svg: feh WARNING: # https://www.yr.no/en/content/2-2746301/meteogram.svg - No Imlib2 loader for # that file format # not feh but: imv pqiv qiv sxiv , ... ? # ImageMagick is now (2021) 'gm display' # # сре 13 14:01 < Fruit> hoppie: # https://www.yr.no/en/content/51.571,4.985/meteogram.svg # сре 13 14:01 < Fruit> gewoon op coördinaten :P # size+depends # imv ok nvidia problem @ incagijs # imv will automatically reload the current image, if it is changed on disk. # pqiv ok no url support? # gtk3 # sxiv ok no url support? # joostvb@oganj:~/.a1-regen% wget 'https://www.yr.no/en/content/2-2746301/meteogram.svg' # root@oganj:~# apt update && apt -V install imv sxiv # meteogram.svg is html :/ # https://github.com/blue-sky-r/yrno-tools probably borken now # https://github.com/wckd/python-yr/issues/50 ook stuk w/s # https://en.wikipedia.org/wiki/OpenWeatherMap ? # meteo-qt : needs owm key/account u="http://www.yr.no/place" if test "$DISPLAY" then case "$1" in Eindhoven) u=$u"/Netherlands/North_Brabant/Eindhoven" ;; Helmond) u=$u"/Netherlands/North_Brabant/Helmond" ;; Utrecht) u=$u"/Netherlands/Utrecht/Utrecht" ;; Beograd) u=$u"/Serbia/Central_Serbia/Belgrade" ;; Kendall) u=$u"/United_States/Florida/Kendall" ;; Montreal) u=$u"/Canada/Quebec/Montreal" ;; Brussel|Bruxelles|Brussels) u=$u"/Belgium/Brussels/Brussels" ;; Wrocław|Wroclaw|Breslau) # https://www.yr.no/place/Poland/Lower_Silesia/Wroc%C5%82aw/ u=$u"/Poland/Lower_Silesia/Wroc%C5%82aw" ;; Split|Supetar|Brac|Brač) u=$u"/Croatia/Split-Dalmatia/Split" ;; Vaumarcus|Neuchatel|Neuchâtel) u=$u"/Switzerland/Neuch%C3%A2tel/Neuch%C3%A2tel" ;; Venray|Well) u=$u"/Netherlands/Limburg/Venray" ;; Oostende|West-Vlaanderen) u=$u"/Belgia/Flanders/Provincie%20West-Vlaanderen" ;; Rotterdam) u=$u"/Netherlands/South_Holland/Rotterdam" ;; *) u=$u"/Netherlands/North_Brabant/Tilburg" ;; esac # display $u/avansert_meteogram.png # http://feh.finalrewind.org feh $u/avansert_meteogram.png # display http://www.yr.no/place/Netherlands/North_Brabant/Tilburg/avansert_meteogram.png # display http://www.yr.no/place/Netherlands/North_Brabant/Eindhoven/avansert_meteogram.png & else curl -s "http://gps.buienradar.nl/getrr.php?lat=51.563813&lon=5.032768" | \ grep -v '^000' | sed 's/^....//' fi