-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwetter7.sh
executable file
·22 lines (17 loc) · 1.13 KB
/
wetter7.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# wetterd="/home/foo/.local/bin/wetterdienst"
wetterd="$(which wetterdienst)"
station="K2635"
#cd /home/foo/bin/wetter||exit
anfang="$(date -d "next hour" '+%Y-%m-%dT%H')"
ende="$(date -d "next week" '+%Y-%m-%dT%H')"
##wetterdienst values --provider=dwd --network=mosmix --resolution=large --parameter=TTT --station=K2635 --date=$anfang/$ende | jq -r '.[]| [.date,.value -273.15 ] | @csv'>temp.csv
$wetterd values --provider=dwd --network=mosmix --resolution=large --parameter=TTT --station="$station" --date="$anfang"/"$ende" --format=csv>temp.csv
$wetterd values --provider=dwd --network=mosmix --resolution=large --parameter=E_TTT --station="$station" --date="$anfang"/"$ende" --format=csv>tempe.csv
$wetterd values --provider=dwd --network=mosmix --resolution=large --parameter=R101 --station="$station" --date="$anfang"/"$ende" --format=csv>regen1.csv
$wetterd values --provider=dwd --network=mosmix --resolution=large --parameter=R110 --station="$station" --date="$anfang"/"$ende" --format=csv>regen10.csv
paste -d ',' temp.csv regen1.csv regen10.csv tempe.csv > wetter.csv
sleep 2
gnuplot wetter2.gp
#sleep 2
#gwenview wetter1.png