mirror of
https://github.com/fenix-soft/fmeteo.git
synced 2025-01-18 08:24:39 +01:00
Add files via upload
This commit is contained in:
parent
68a36112df
commit
dde456d948
@ -1,3 +1,7 @@
|
|||||||
|
# V1.2
|
||||||
|
- add curl silent mode (now the output video is more clear)
|
||||||
|
- fix some code
|
||||||
|
|
||||||
# V1.1
|
# V1.1
|
||||||
- fix some bug
|
- fix some bug
|
||||||
- add wind deg. data
|
- add wind deg. data
|
||||||
|
12
fmeteo
12
fmeteo
@ -4,7 +4,7 @@
|
|||||||
####################################################################################
|
####################################################################################
|
||||||
# script meteo che usa oopenweathermap per i dati e li riporta a terminale
|
# script meteo che usa oopenweathermap per i dati e li riporta a terminale
|
||||||
#
|
#
|
||||||
# v:1.1
|
# v:1.2
|
||||||
#
|
#
|
||||||
# dipendenze: curl,jq,cat,bc
|
# dipendenze: curl,jq,cat,bc
|
||||||
#
|
#
|
||||||
@ -36,8 +36,8 @@ api3="http://api.openweathermap.org/data/2.5/forecast?id="
|
|||||||
|
|
||||||
rm meteonow.txt
|
rm meteonow.txt
|
||||||
echo " "
|
echo " "
|
||||||
echo "get data... "
|
echo "get data: weather now... "
|
||||||
curl $api1$surc_city$api_par$key_meteo$api_lang > meteonow.txt
|
curl -s $api1$surc_city$api_par$key_meteo$api_lang > meteonow.txt
|
||||||
echo " "
|
echo " "
|
||||||
city_id=`cat meteonow.txt | jq '.list[0]|.id'`
|
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
|
rm meteo5.txt
|
||||||
echo " "
|
echo " "
|
||||||
echo "get data... "
|
echo "get data: forecast 5 day..."
|
||||||
echo " "
|
echo " "
|
||||||
curl $api2$city_id$api_par$key_meteo > meteo5.txt
|
curl -s $api2$city_id$api_par$key_meteo > meteo5.txt
|
||||||
|
|
||||||
echo " "
|
echo " "
|
||||||
echo "get data ok!... extract data file... "
|
echo "extract data file... "
|
||||||
echo " "
|
echo " "
|
||||||
echo " "
|
echo " "
|
||||||
echo " "
|
echo " "
|
||||||
|
@ -1 +1 @@
|
|||||||
1.1
|
1.2
|
Loading…
Reference in New Issue
Block a user