Hi all
I'd like this setting:
Only record during the day (do not save image between one hour after sunset and one hour before sunrise) to be TWO hours before and after subset.
So I looked at the update Webcam.php and found this:
Line 48:
$sunRiseTimestamp = strtotime(date("Y")."-".date('m')."-".date('d')." ".$sunRiseTodayHours) - (60*60); // subtract one hour to start recording before sunrise
$sunSetTimestamp = strtotime(date("Y")."-".date('m')."-".date('d')." ".$sunSetTodayHours) + (60*60); // add one hour to stop recording after sun set
changing these to 120*120 did not work.
What did I miss?
thx for any help, Martin
webcam plugin again
- Asobig
- Advisor
- Posts: 72
- Joined: Mon Aug 21, 2017 7:05 am
- Location: Almere
- Station model: Davis Vantage VP2+
- Software: Meteobridge (Red)
- Contact:
Re: webcam plugin again
If you want two hours i think the setting is 120*60 and not 120*120.
- iatros
- Language Admin
- Posts: 145
- Joined: Mon Aug 21, 2017 5:56 am
- Location: Flims Waldhaus Switzerland
- Station model: Davis Pro 2 6163
- Software: Meteobridge
- Contact:
Re: webcam plugin again
Thanks to Asobig -
I tried; it did not work
I tried also 2*60*60 without success
Isn't there a php magician around who could help.....?
I tried; it did not work
I tried also 2*60*60 without success
Isn't there a php magician around who could help.....?
- Oli
- Observer
- Posts: 23
- Joined: Sat May 28, 2022 4:17 pm
- Location: Hamelin / Germany
- Station model: HP1000SE PRO
- Software: weeWX
- Contact:
Re: webcam plugin again
I also think that 120*60 should be correct for two hours, but it actually does not work for me either.
-
- Expert
- Posts: 862
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: webcam plugin again
It should work... but remember to modify the updateWebcam.php script that is the directory load/crons ( I mean the script that is executed by the cron job )
- Oli
- Observer
- Posts: 23
- Joined: Sat May 28, 2022 4:17 pm
- Location: Hamelin / Germany
- Station model: HP1000SE PRO
- Software: weeWX
- Contact:
Re: webcam plugin again
This should solve the problem. I've just edited the file in the plugin/webcam directory. Thanks.