mirror of
https://github.com/dewomser/Wettervorhersage.git
synced 2026-03-10 22:44:45 +01:00
intial
This commit is contained in:
parent
044aef2cc5
commit
7ebae9e877
3 changed files with 21 additions and 0 deletions
BIN
Grafik/wetter1.png
Normal file
BIN
Grafik/wetter1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 54 KiB |
19
wetter1.gp
Normal file
19
wetter1.gp
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
set title "Wettervorhersage für Worms. Erstellt: " .strftime("%d.%b %Y %H:%M", time(0)+7200)
|
||||||
|
set datafile separator ','
|
||||||
|
set xdata time
|
||||||
|
set timefmt "%Y-%m-%dT%H"
|
||||||
|
set format x "%m:%d:%H" # otherwise it will show only MM:SS
|
||||||
|
|
||||||
|
set key autotitle columnhead
|
||||||
|
set ylabel "Temperatur °Celsius"
|
||||||
|
set xlabel 'Zeitachse UTC'
|
||||||
|
|
||||||
|
set xtics rotate
|
||||||
|
set y2tics # enable second axis
|
||||||
|
set ytics nomirror # dont show the tics on that side
|
||||||
|
set y2label "Regenwahrscheinlichkeit in %" # label for second axis
|
||||||
|
#set terminal wxt size 800,600 enhanced font 'Verdana,10' persist
|
||||||
|
set terminal pngcairo size 800,600 enhanced font 'Verdana,10'
|
||||||
|
set output 'wetter1.png'
|
||||||
|
|
||||||
|
plot 'wetter.csv' using 1:2:5 title 'Temperatur' with yerrorbars linestyle 2,'' using 1:3 with lines axis x1y2 title '0.1 mm/h', '' using 1:4 with lines axis x1y2 title '1.0 mm/h'
|
||||||
2
wetter1.sh
Executable file
2
wetter1.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
wetterdienst values --provider=dwd --network=mosmix --resolution=large --parameter=large --station=K2635 | jq -r '.[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48] | [.date,.temperature_air_mean_200 - 273.15,.probability_precipitation_height_gt_0_1_mm_last_1h,.probability_precipitation_height_gt_1_0_mm_last_1h,.error_absolute_temperature_air_mean_200] | @csv' > wetter.csv
|
||||||
Loading…
Add table
Add a link
Reference in a new issue