1
0
mirror of https://github.com/fenix-soft/fmeteo.git synced 2024-12-22 12:24:02 +01:00

Add files via upload

This commit is contained in:
fenix-soft 2018-09-11 13:44:05 +02:00 committed by GitHub
parent 68a36112df
commit dde456d948
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 7 deletions

View File

@ -1,3 +1,7 @@
# V1.2
- add curl silent mode (now the output video is more clear)
- fix some code
# V1.1
- fix some bug
- add wind deg. data

12
fmeteo
View File

@ -4,7 +4,7 @@
####################################################################################
# script meteo che usa oopenweathermap per i dati e li riporta a terminale
#
# v:1.1
# v:1.2
#
# dipendenze: curl,jq,cat,bc
#
@ -36,8 +36,8 @@ api3="http://api.openweathermap.org/data/2.5/forecast?id="
rm meteonow.txt
echo " "
echo "get data... "
curl $api1$surc_city$api_par$key_meteo$api_lang > meteonow.txt
echo "get data: weather now... "
curl -s $api1$surc_city$api_par$key_meteo$api_lang > meteonow.txt
echo " "
city_id=`cat meteonow.txt | jq '.list[0]|.id'`
@ -47,12 +47,12 @@ city_id=`cat meteonow.txt | jq '.list[0]|.id'`
rm meteo5.txt
echo " "
echo "get data... "
echo "get data: forecast 5 day..."
echo " "
curl $api2$city_id$api_par$key_meteo > meteo5.txt
curl -s $api2$city_id$api_par$key_meteo > meteo5.txt
echo " "
echo "get data ok!... extract data file... "
echo "extract data file... "
echo " "
echo " "
echo " "

View File

@ -1 +1 @@
1.1
1.2