php/SQL-Help for Geofence-Project? (1 Viewer)

FreakyJ

Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Maybe we also need to extend the other script and introduce a global config [emoji14]
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    Extending the other Script:
    If you both come home late than it would still deactivate the cam.
    Let me explain:
    You both or one comes home after 12 pm, so the script would still trigger and deactivate the cam, because the activation script run at 12 pm. So we need to check what time it is.
    And to be sure that the values between both scripts are equal I would introduce a config file. But it is your config, so try it out :)
     

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,176
    428
    I need to do something like this. Currently I have a Cronjob running, which turns on cam hourly in the nighttime. Thats good enough for me.

    And I have another cronjob, that turns the cam off in the morning. But thats not really good. For example: when we are in vacation, I want the cam to stay activated. Is there a way to do this in the current php-File? My idea would be a check for the if no parameter is used?!?
     
    Last edited:

    Users who are viewing this thread

    Top Bottom