#!/bin/bash
FOLDER="current"
SERVER="https://danepubliczne.imgw.pl/api/data/synop/format/csv"
NAMEFILE=$(date +"%Y%m%dT%H")
ROOT="/na/wrf/IMGW"
touch $ROOT/$FOLDER/$NAMEFILE.csv
chmod a+w $ROOT/$FOLDER/$NAMEFILE.csv
curl -L -o $ROOT/$FOLDER/$NAMEFILE.csv $SERVER
