Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Switched control port for camera.


cellectronic Oct 4, 2018 08:37 AM

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.


JDavis Oct 4, 2018 09:31 PM

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

 

Log in or register to post/reply in the forum.