Add IP address to text overlay?
Might there be some way to add the IP address of the server along with camera name and time and date stamp to the text overlay on images emailed when motion is detected? There are times when it would be very helpful for me to have that information. Thanks in advance for any assistance.
Comments
For example, if you set the Mac to a manual (static) IP address on your local network, then this IP address will always belong to the server and will never change. This is a required setup step in setting up Remote Monitoring, so please consult this section of the manual for instructions.
Hope this helps.
set x to "Front door camera, IP " & IPv4 address of (get system info)
tell application "SecuritySpy"
set overlay text x camera number 0
end tell
This will update the IP address in the text overlay for the specified camera whenever it is run.
You can add the time and date by adding "+d" to the text overlay.
For an AppleScript to get the external IP address it would need to contact an external server to provide this information - here's an AppleScript example to get the external IP address.
However, I think you are very much over-engineering this solution! SecuritySpy has a built-in DDNS feature to provide you with a permanent hostname (e.g. example.viewcam.me), which will be continually updated with your external IP address, even when it changes.
Hope this helps.