Your code appears to only print once a day at exactly 18:00:00.
Try removing the Time.hour() == 18 from your code and see what it does. The sleep mode you are using keeps running code and turns off your wifi for 15 seconds. Try changing to
I did see that same behaviour, but I never really saw any use in this (crippled, not deserving the name) “sleep()” mode anyway, so I never investigated further
Apparently, other people don’t either, since this has gone unnoticed for a while. It did work back in march when this was posted. I was just testing it in response to another question I was responding to; I don’t think I’ve ever used it before. Maybe it’s time to retire this function.