Hi, There is presently no support in wee_import for suppressing/bypassing/automatically answering the y/n prompt in wee_import, we never envisioned wee_import being used in that manner. Implementing something like the --no-prompt command line option in wee_config should be possible and fairly straightforward to add. Let me do some homework.
Gary On Monday, 16 November 2020 at 01:11:16 UTC+10 sc.lep...@gmail.com wrote: > 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/93bfab88-6eb4-4788-a8b9-1fa4c3221a57n%40googlegroups.com.