Author |
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: November 29 2012 at 07:52 | IP Logged
|
|
|
Does anyone know if the file monitor plugin can detect when a monitored file (in my case a ".wav" file) has been played?
Here is why I ask:
When my Geovison camera system (on a sperate computer from my PH automation system) detects motion it can:
1) record the motion to disk
2) play a .wav file
3) increment a counter
4) change an i/o state on a Geo io board
Normally, I would proceed along the i/o route for letting PH know there was camera motion detected, but in my case, I am already using up the 5 available PH com controls (I sure wish there were more).
If Geo allowed for the playing of something other than a .wav file (like an .exe), I would use the socket server to notify PH.
The counter is no good becuse the log file (where the counter is maintained) is only updated every X many minutes; it is not real time.
Even the recording of motion may not be a good trigger because the recording may be slightly buffered; hence not real time.
Anyone know how to spoof a wave file into executing the PH socket server? Or, my original question of if the file monitor plugin can detect when a monitored file (in my case a ".wav" file) has been played?
Edited by smarty - November 29 2012 at 07:53
__________________ Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: November 30 2012 at 00:25 | IP Logged
|
|
|
Smarty,
Not sure how much help it is but I can tell you that the File Monitor plugin cannot detect last access. The file must actually be modified in order for the plugin to fire a trigger.
You say you've used up the 5 PH COM controls so I guess you're using the built in COM functionality but you can get more (virtually unlimited) by using the PH_COMM plugin. If detecting data coming in on a COM port is an option for you, this might be just the ticket as this plugin will fire a trigger on incoming data. You can read about this plugin in the PH Help file (Help->Contents).
Dave.
|
Back to Top |
|
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: November 30 2012 at 10:55 | IP Logged
|
|
|
Thanks for the reply...
I keep getting confused between the virtual serial port (VSP) and the PH_com functionality like I did here:
link
Adding the VSP stuff to the help section where the PH_com already is would be great :)
I am not sure I really understand the difference between the two....can anyone elaborate?
__________________ Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
|
Back to Top |
|
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: November 30 2012 at 15:07 | IP Logged
|
|
|
sharby wrote:
Error found in the Plugins "HELP" section.
The correct ActiveX Classname is PH_Comm.phcomm not PH_Socket.phsocket
See the CORRECTION below
Raw COMM
Launch Data (ActiveX Classname): PH_Comm.phcomm
Initialization Data: The COM port, a space, the comma separated settings string. Can be left blank to establish a connection manually. In all cases where a "settings" string is required, it consists of the BPS, the data bits, the parity, and the stop bits all separated by commas. An example of 9600 BPS, 8 data bits, No parity, and 1 stop bit would be: 9600,N,8,1
Dave works so hard and his design made me learn how to fix it.
THIS WORKS AWESOMELY!
-=*Sharby*=- |
|
|
This also was messing me up....
__________________ Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
|
Back to Top |
|
|