fetch clouds only every 3h

This commit is contained in:
lassulus 2020-03-23 13:05:55 +01:00
parent e4816a16f9
commit e2ef8aba93

View File

@ -77,7 +77,10 @@ pkgs.writers.writeDashBin "generate-wallpaper" ''
fetch marker.json "$marker_url" & fetch marker.json "$marker_url" &
wait wait
${pkgs.nomads-cloud}/bin/nomads-cloud clouds-raw.png # fetch clouds if they are older than 3h
if ! test "$(find clouds-raw.png -mmin -180)"; then
${pkgs.nomads-cloud}/bin/nomads-cloud clouds-raw.png
fi
check_type nightmap-raw.jpg image check_type nightmap-raw.jpg image
check_type daymap-raw.png image check_type daymap-raw.png image