Most likely a typo in your cron jobs.
Try https://crontab.guru/
24 * * * * /home/pi/temp.sh > /home/pi/.last_tweet.log 2>&1
(Yes temp.sh is a terrible name, I meant "temperature" not "temporary")
temp.sh
(Yes I know 24 means 24th minute, not 24 hours. I didn't want it to tweet on the hour in case there are other processes doing stuff then. 24 is just a random number.)
Interesting. Are the 5 hour gaps regular or just occasional?
Can highly recommend Thingspeak for this sort of thing. I send it temp readings every 60 seconds and never skips a beat. It can also tweet for you.
*/10 * * * * ping -qc3 google.com >> /whatever/ping.log 2>&1
Maybe try this to get visibility on your network connectivity?
@frankenbike started
London Fixed Gear and Single-Speed is a community of predominantly fixed gear and single-speed cyclists in and around London, UK.
This site is supported almost exclusively by donations. Please consider donating a small amount regularly.
Most likely a typo in your cron jobs.
Try https://crontab.guru/