How-To: Home Automation Scripts

I have a Lorex 4K IP home security camera system. 1 I wrote two blog articles that describe how to use its e-mail notification facility and its File Transfer Protocol (FTP) facility.

In those articles I mention scripts I wrote for my website to process and customize snapshots generated by my Network Video Recorder (NVR). I now make those scripts available for download. You can use them as a starting point for your own purposes. I wrote the scripts using PHP and they are provided in a ZIP file. If you download this file, un-ZIP it within your website development environment.

https://home.iseeancestors.com/access.php?file=cctvscripts.zip

You will be prompted for a user name and password. The user name is Guest and the password is scripts. The ZIP file includes complete documentation in Scripts.pdf.

I do not provide support or customization for these scripts. I might answer questions about them specifically, but not about programming, PHP, or your website in general. Again, these are meant only as a starting point for your own implementation. You must change the code to suit your particular circumstances. Therefore you must already have experience with PHP and website operation in order to utilize these scripts.

How-To: Lorex NVR E-Mail Notifications

A review of the Lorex e-mail notification feature. Alerts are automated to save bandwidth and fix a bug.

Lorex 4KHDIP86

This is my review of the e-mail alert notifications on a Lorex 4K IP Camera System. 2

You can configure the Lorex NVR to send an e-mail alert when a surveillance camera detects motion in its field of view. It can optionally include a snapshot, which hopefully shows what caused the event.

Continue reading “How-To: Lorex NVR E-Mail Notifications”

How-To: Lorex NVR File Transfer Protocol

4KHDIP86

This is my review of the File Transfer Protocol (FTP) feature on a Lorex 4K IP Camera System. 1

Here is a quick way to review snapshots taken during motion detection events. I used the File Transfer Protocol (FTP) feature of the Lorex NVR. Basically I set the NVR to transfer snapshots to my web server, then I wrote a script that displays them. This is an advanced topic intended for those who manage their own website. Here’s how I did it. 3

Continue reading “How-To: Lorex NVR File Transfer Protocol”

A Method for Sorting Images by Keywords

I Met[A]lbumdeveloped Met[A]lbum, short for Metadata Album, which is software to create electronic photo albums. These are Portable Document Format (PDF) files with one image per page along with associated metadata like headline, caption, and date. One feature is the ability to sort images by keyword. However the method of sorting by keyword is not straightforward. I shall describe the algorithm I used.

Continue reading “A Method for Sorting Images by Keywords”

How To: Reset a NETGEAR PS101

I have an old NETGEAR PS101 parallel print server that I wanted to move to a different router network.  I had configured it with a fixed IP address that will not work on the new network.  I wanted to change it to a dynamic IP address.  Unfortunately when I tried to reconfigure the device normally via its browser interface, it would revert to the old configuration when I powered the device off and then back on.

Continue reading “How To: Reset a NETGEAR PS101”

Calling a PHP Script from Crontab

If you use a shared-hosting web service, it may be more difficult to run a PHP script through Cron (Crontab).  If your script uses MySQL calls for example, your hosting provider may not provide access to the MySQL library when your script runs through Cron.  Here’s a method that works just as well.

Continue reading “Calling a PHP Script from Crontab”

Apache Log Archives

If you maintain a website at a shared-hosting provider, you may not have control over how your Apache log files are archived.  These archives may also be overwritten, so if you’re interesting in keeping statistics for later analysis, you’ll have to archive your log files yourself.  Here I provide a simple PHP script you can run to save your own log files.

Continue reading “Apache Log Archives”

H-Sphere Uncompress Hangs

Problem:  When you try to uncompress or compress a large file (e.g., 8Mb or more) using WebShell3 in the H-Sphere Control Panel, the file is not completely uncompressed and WebShell3 seems to hang.  IXWebHosting is one hosting service that uses H-Sphere.

Solution:  The uncompress or compress function takes a while.  Apparently the Internet browser (e.g., Microsoft Internet Explorer) times out waiting and closes the connection.  WebShell3 probably interprets the loss of connection and aborts the operation.  A work-around is to increase the keep-alive timeout value in IE, which defaults to 1 minute.

Continue reading “H-Sphere Uncompress Hangs”