Thank for your work you seem to have a lot of skill
, the
DahuaEventHandler is a good idea to add feature.
In another thread i was looking for a method to modify my ringtone and you give this link :
[Info] - VTO/VTH Konfiguration ändern mit der "Dahua-JSON-Debug-Console-v2"
i didn't fin the "method":"configManager.setConfig", to set the RingFile thunderstruck.mp3 in theDahuaEventHandler available in the github.
Should i add it in a function like function Main() ?
have you a new example ?
I try to run it on my pc whith a apache server make a copy/paste change line 4
and have an error
Parse error: syntax error, unexpected '?> ', expecting function (T_FUNCTION) in C:\UwAmp\www\DahuaEventHandler.php on line
389
add a }line 388
error
Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:\UwAmp\www\DahuaEventHandler.php on line 9 |
---|
Call Stack |
---|
Set date_default_timezone_set('Europe/Paris'); line 9 (I'm french)
and a new
"Fatal error: Cannot redeclare SaveSnapshot() (previously declared in C:\UwAmp\www\DahuaEventHandler.php:374) in C:\UwAmp\www\DahuaEventHandler.php on line 374 "
now i didn't know whar to do else.
My VTO is the VTO2202F-P
Do you think your script should work ?