Sample usage

This project is not covered by Drupal’s security advisory policy.

Webcam trigger is a trigger:) It gives you a page showing your webcam. If the cam recognizes a pattern (which is currently the Druplicon logo) it fires the trigger. You can assign any actions to it. It ships with a built in action that logges in with a given account and redirect to a custom page.

Installation

  • Enable modules on admin/build/modules/list page
  • Create action(s) for the trigger:
    • "Login with a user"
    • "Redirect to URL"
  • Assign action to the trigger on the admin/build/trigger/webcam_trigger page
  • Create a menu item pointing to webcam page with the url of: webcam_trigger
  • Don't forget about the permissions: webcam trigger access
  • That's it. Print out the webcam_trigger.pdf file (states in the module's directory), load the url: YOURSITE/webcam_trigger and concentrate:)

Customizing

[Actionscript source in cvs!]

Custom page

Edit the webcam_trigger_page.tpl.php

Custom pattern

If you are interested in this technology there are some blog posts:
Mikko Haapoja: http://www.mikkoh.com/blog/?p=182
Lee Brimelow: http://gotoandlearn.com/play?id=105
The main AIR application that makes patterns:
http://saqoosha.net/lab/FLARToolKit/MarkerGenerator/MakerGenerator.air
You can find a detailed explanation about making patterns (I think about the border, size etc..) in Mikko Haapoja's blog post. When you successfully save your pattern move it to the module's directory and replace with the current 'webcam_trigger.pat' file.

Custom action

If you want to use an existing action (like Redirect to URL) you have to alter the action's info like in the module:

function webcam_trigger_action_info_alter(&$actions) {
  $actions['system_goto_action']['hooks']['webcam_trigger'] = array('flash_activated');
}

If you want to create a new action read the Drupal api documentation:
http://api.drupal.org/api/function/hook_action_info/6

Screencast:
http://www.youtube.com/watch?v=rHTOlArLfSY

I developed this module at Pronovix, contact us for Drupal consulting or development jobs: http://pronovix.com

Project information

Releases