PHP ME

Is it possible to run PHP scripts in the camera? Now now it is.  PHP Me is a powerful and flexible tool to add specific behavior beyond the camera capabilities without ACAP development. Scripts can be triggered with a button in the user interface, URL or by a camera event (e.g. timer recurrence, digital in-port or analytics add-ons).

phpme-mainPHP Me uses the cameras built-in file upload and editcgi.cgi in order to install and edit scripts with a web browser. Note that all scripts must be uploaded to /local/administrator directory.

phpme-uploadIf the script is initiated manually,  a browser window is opened and the result is displayed. If the script is triggered by an event the script will run silent and all output is ignored. It is possible to provide arguments to the script when it is triggered by an event.

phpme-dialog

Known limitations:

  • In order to get a reasonable size of the cross-compiled version of PHP some functionality had to be excluded.  You may not be able to do everything PHP is able to offer.
  • PHP does not integrate into the web server.  This means that you cannot write stand-alone PHP CGI without PHP Me.
  • The EAP file is about 2 MB and will expand to about 6 MB during installation. This may be a limitation if you have other large add-ons installed on the camera.

Requirements:

  • Axis camera based on ARTPEC 4/5 or ARM
  • Camera FW 5.60 or later

Download
(ZIP-file with EAP file and some basic PHP script examples)

Advertisements

11 comments

    1. This kind of response is my pay check. Thank you. If you develop an interesting script that may be useful for others I would happily host it on this site.

      Like

  1. Is it possible to write this application for the ambarella based cameras? like Axis P1428-E?
    I can provide camera for testing if that is an issue. contact me if that is something you would consider.

    Like

    1. As there seems to be an interest I will see what I can do. PHP Me may not fit some of the early Ambarella cameras with limited flash. I don’t think that P1428 should cause any problems.

      Like

  2. Hi. This ACAP is my dream 🙂
    But, I tried with an Axis M2025 (FW: 6.15.2) and this ACAP is not working 😦 Do you know any bug or limitations about this camera or fw which higher than 6?
    Thanks for your answer.
    BR,

    Liked by 1 person

    1. I think the problem is related to the update of OpenSSL library in the cameras in recent firmware. PHP Me is compiled for an earlier OpenSSL version.
      I will see if I can get som time to look at this and recompile PHP Me. I will then contact you off-line to help me validate. When validated I will post the updated version.

      Like

      1. Encountered the same issue. Tested it with previous version and it works.
        It should work with the version 1.0
        I guess that Acapshare still have this version.
        If not i still have it.

        Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s