Hi All,
We have a a CR1000 at the heart of the weather station , It is our intention to wire in a relay on the control port to switch on a camera for five mins every 60 mins. Which would then upload a webcam image within this 5 minute period. This is to conserve power as the system is solar powered.
Also we are considering making the control port active only during daylight ! (There is a radiation sensor on the station).
Does anyone have any Ideas on how best to achieve this please.
Many thanks.
The TimeIsBetween() function allows fairly simple code to check time intervals.
This is one way to do it:
Public PowerOn As Boolean BeginProg Scan (1,Sec,0,0) PowerOn = TimeIsBetween (6,18,24,Hr) AND TimeIsBetween (0,5,60,min) PortSet (1 ,PowerOn) NextScan EndProg