For the first question I ve my own answer : 2 scripts bash *For night and morning : * #!/bin/bash date_debut_jour_heure=`date +"%Y-%m-%dT00:00"` ; date_fin_jour_heure=`date +"%Y-%m-%dT12:00"` ;
echo $date_debut_jour_heure; echo $date_fin_jour_heure; /home/pi/weewx-4.2.0/bin/wee_import --config=/home/weewx/FROGGIT.conf --import-config=/home/weewx/wu-FROGGIT.conf --from=$date_debut_jour_heure --to=$date_fin_jour_heure --dry-run *For afternoon and evening : * #!/bin/bash date_debut_jour_heure=`date +"%Y-%m-%dT12:00"` ; date_fin_jour_heure=`date +"%Y-%m-%dT23:59"` ; echo $date_debut_jour_heure; echo $date_fin_jour_heure; /home/pi/weewx-4.2.0/bin/wee_import --config=/home/weewx/FROGGIT.conf --import-config=/home/weewx/wu-FROGGIT.conf --from=$date_debut_jour_heure --to=$date_fin_jour_heure --dry-run But how to suppress Y/N answer ? thanks Le dimanche 15 novembre 2020 à 15:08:24 UTC+1, sc.lep...@gmail.com a écrit : > Hello > I want to import twice a day ( for example 12h00 and 00h00) my data from > Weather Underground. > > I want to write a script shell to put it in a crontab. > > first question : > I use this : > wee_import --config=/home/weewx/FROGGIT.conf > --import-config=/home/weewx/wu-FROGGIT.conf --date=2020-11-14 > > For midday : ..... - -date is it possible to put - - date > =2020-11-14T12:00 ? > For midnight : ..... - - from=2020-11-14T12:00 - -to=2020-11-14:23:59 > > > Snd question : I must answer by "y" to proceed import , is is possible > to overwrite this ? > > And if you want to see results , it 's here : > https://meteo-pontscorff.fr/station-froggit-template-belchertown/ > > Thanks a lot , best regards > Stephane > > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/0b9dead1-5dde-42ac-a816-0126d7f738dbn%40googlegroups.com.