Hi Folks
I am hanging a bundle of DS18B20 temperature sensors off my Pi to monitor the strange activities of our solar thermal panel control box. I have now got my Python skills up to the stage of being able to query the sensors, check if the reading is valid, re-do if not and then write the result to an SQLite database. The program will run with a while True loop (OK there may be a better way but I have yet to find it).
All the kit will be in the airing cupboard and I will be checking on it using X from my normal machine (Works a treat!). However, I gave up on the RTC module as it never seemed to keep the time, and am relying on the system picking up time from the internet through the wifi dongle. Once the system is booted and then connected to the internet, time seems to be automatically updated. However, there is an appreciable delay in that happening. Thinking of power cuts and the like when the Pi will re-start without intervention, I would like it to hold off starting my data collection program until it has picked up the connection to the internet, and the correct time.
Does anybody have any better suggestions than adding time.sleep(180) to the start of my script?
Regards
Pete