thanks for your answer.
The script you linked to uses the –bind-address option.
This is only a good idea if the interface WAN address is known to the router. If not, the script will fail. E. g., in my case I am using a connection to a second router as a WAN connection. wget –bind-address would simply not work here.
For this reason I would suggest to use curl instead of wget.