| | 1 | '''FedCam''' |
| | 2 | |
| | 3 | |
| | 4 | '''Federated Cameras''' |
| | 5 | |
| | 6 | This is a rough outline of the moving pieces of fedcam. |
| | 7 | |
| | 8 | == camera hosts == |
| | 9 | Our set up has four camera hosts, two in each cabinet. (front and back). |
| | 10 | |
| | 11 | * Telehouse: ken (front) and negri (back) |
| | 12 | * XO: luisa and ottorene |
| | 13 | |
| | 14 | The files on each host server lives in `/srv/motion/cam0/` |
| | 15 | |
| | 16 | These machines are running the motion daemon, and the main config file is `/etc/motion/motion.conf`. |
| | 17 | |
| | 18 | Each of these machines will need a series of files put in place, and specified in the motion configs. |
| | 19 | |
| | 20 | All of this needs to be put into... |
| | 21 | |
| | 22 | == Puppet == |
| | 23 | There needs to be a puppet module, or modules. |
| | 24 | |
| | 25 | One set of configs for the camera hosts, and another set of configs for the remote host (in this case `jojobe`). |
| | 26 | |
| | 27 | The camera hosts need: |
| | 28 | * event start script |
| | 29 | * frame write script |
| | 30 | * event end script |
| | 31 | * etc conf. |
| | 32 | |
| | 33 | The web host needs: |
| | 34 | * the web app files |
| | 35 | * sqlite3 installed, and blank db created |
| | 36 | * cron job to delete data tagged for deletion. |
| | 37 | |
| | 38 | |
| | 39 | == Other Tasks that need completeing == |
| | 40 | |
| | 41 | === jojobe === |
| | 42 | Mod Auth openid needs to be enabled on jojobe, and the fedcam software needs to be updated to use that in the .htaccess. |
| | 43 | |
| | 44 | set up the sqlite3 db on the jojobe |
| | 45 | |
| | 46 | build file structure: |
| | 47 | {{{ |
| | 48 | files/telehouse/front |
| | 49 | files/telehouse/back |
| | 50 | files/XO/front |
| | 51 | files/XO/back |
| | 52 | }}} |
| | 53 | |
| | 54 | Remember the dir names get read as meaningful values by the web app, so name em right. |
| | 55 | |
| | 56 | == fedcam software == |
| | 57 | |
| | 58 | Update to work with OpenID auth |
| | 59 | |
| | 60 | == on the individual camera hosts == |
| | 61 | |
| | 62 | Add the config file to /etc/fedcamrc |
| | 63 | |
| | 64 | create the ~/.ssh/masters file for the motion user. |
| | 65 | |
| | 66 | Add the push-frame script |
| | 67 | Add the event end script |
| | 68 | |
| | 69 | Add the motion cleanup script |