File tree Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -23,18 +23,8 @@ himawari8(){
2323 composite -gravity center $tempfile $backgroundfile $targetfile
2424 rm -f $tempfile $backgroundfile
2525}
26- goes16 (){
27- curl https://cdn.star.nesdis.noaa.gov/GOES16/ABI/FD/GEOCOLOR/1808x1808.jpg > $tempfile
28- convert -crop 1808x1776+0+0 $tempfile $tempfile
29- convert -size 200x200 xc:none $backgroundfile
30- composite -gravity southwest $backgroundfile $tempfile $tempfile
31- convert -resize " 88888x$earthHeight " $tempfile $tempfile
32- convert -size $screen xc:none $backgroundfile
33- composite -gravity center $tempfile $backgroundfile $targetfile
34- rm -f $tempfile $backgroundfile
35- }
36- goes17 (){
37- curl https://cdn.star.nesdis.noaa.gov/GOES17/ABI/FD/GEOCOLOR/1808x1808.jpg > $tempfile
26+ goes (){
27+ curl https://cdn.star.nesdis.noaa.gov/$1 /ABI/FD/GEOCOLOR/1808x1808.jpg > $tempfile
3828 convert -crop 1808x1776+0+0 $tempfile $tempfile
3929 convert -size 200x200 xc:none $backgroundfile
4030 composite -gravity southwest $backgroundfile $tempfile $tempfile
@@ -62,12 +52,12 @@ getImg(){
6252 elif [[ " x$using " == " xfy4a" ]]; then
6353 echo fy4a
6454 fy4a
65- elif [[ " x$using " == " goes16 " ]]; then
55+ elif [[ " x$using " == " xgoes16 " ]]; then
6656 echo goes16
67- goes16
57+ goes " GOES16 "
6858 else
6959 echo goes17
70- goes17
60+ goes " GOES17 "
7161 fi
7262}
7363# 设置桌面背景
You can’t perform that action at this time.
0 commit comments