Difference between revisions of "Spacemon"

From Pumping Station One
Jump to navigation Jump to search
Line 16: Line 16:
  
 
There is also a [http://apps.pumpingstationone.org/space-activity/ web interface] and the [https://github.com/eastein/lidless software, lidless] is open source and is available on github.
 
There is also a [http://apps.pumpingstationone.org/space-activity/ web interface] and the [https://github.com/eastein/lidless software, lidless] is open source and is available on github.
 +
 +
 +
== lidless config ==
 +
 +
  [
 +
  {
 +
    "role" : "work1",
 +
    "type" : "camera",
 +
    "name" : "space",
 +
    "url" : "http://10.100.0.61/mjpg/video.mjpg",
 +
    "zmq_url" : "tcp://127.0.0.1:7200",
 +
    "username" : "REDACTED",
 +
    "password" : "REDACTED"
 +
  },
 +
  {
 +
    "role" : "work2",
 +
    "type" : "camera",
 +
    "name" : "electronics",
 +
    "url" : "http://10.100.0.62/mjpg/video.mjpg",
 +
    "zmq_url" : "tcp://127.0.0.1:7201",
 +
    "username" : "REDACTED",
 +
    "password" : "REDACTED"
 +
  },
 +
  {
 +
    "role" : "work1",
 +
    "type" : "camera",
 +
    "name" : "woodshop",
 +
    "url" : "http://10.100.0.63/mjpg/video.mjpg",
 +
    "zmq_url" : "tcp://127.0.0.1:7202",
 +
    "username" : "REDACTED",
 +
    "password" : "REDACTED"
 +
  },
 +
  {
 +
    "role" : "work2",
 +
    "type" : "camera",
 +
    "name" : "garage",
 +
    "url" : "http://zm.pumpingstationone.org/cgi-bin/nph-zms?mode=jpeg&monitor=3&scale=100&maxfps=5&buffer=1000&auth=",
 +
    "zmq_url" : "tcp://127.0.0.1:7203",
 +
    "username" : "REDACTED",
 +
    "password" : "REDACTED",
 +
    "zm_auth_hash_secret" : "REDACTED"
 +
  },
 +
  {
 +
    "role" : "frontend",
 +
    "type" : "alert",
 +
    "mode" : "sustain",
 +
    "level" : 20,
 +
    "duration" : 1800,
 +
    "message" : "I see PS:One is packed with people. Time to release the neurotoxin into the enrichment center.",
 +
    "camera" : "space",
 +
    "throttle" : 5400
 +
  },
 +
  {
 +
    "role" : "frontend",
 +
    "type" : "irc",
 +
    "server" : "irc.freenode.org",
 +
    "nick" : "spacemon",
 +
    "channel" : "#pumpingstationone"
 +
  },
 +
  {
 +
    "role" : "work1",
 +
    "type" : "web",
 +
    "port" : 8001
 +
  },
 +
  {
 +
    "role" : "work2",
 +
    "type" : "web",
 +
    "port" : 8002
 +
  },
 +
  {
 +
    "role" : "frontend",
 +
    "type" : "web",
 +
    "proxy_mode" : "auto",
 +
    "port" : 8000
 +
  }
 +
  ]

Revision as of 09:48, 11 December 2011

Spacemon is our IRC bot that watches the 4 webcams in the space and shows how busy each part of the space is at any time.

IRC commands:

 <+Toba> !space
 <+spacemon> garage: 0% busy, electronics: 34% busy, woodshop: 0% busy, space: 26% busy

This shows that the electronics area and the main hangout space are busy but the rest of PS1 is empty. There is no camera in the classroom or the front lounge or the loft lounge.

From time to time, spacemon will report that the space is unusually busy:

 <+spacemon> I see PS:One is packed with people. Time to release the neurotoxin into the enrichment center.

This alert is based on the "space" camera.

There is also a web interface and the software, lidless is open source and is available on github.


lidless config

 [
 {
   "role" : "work1",
   "type" : "camera",
   "name" : "space",
   "url" : "http://10.100.0.61/mjpg/video.mjpg",
   "zmq_url" : "tcp://127.0.0.1:7200",
   "username" : "REDACTED",
   "password" : "REDACTED"
 },
 {
   "role" : "work2",
   "type" : "camera",
   "name" : "electronics",
   "url" : "http://10.100.0.62/mjpg/video.mjpg",
   "zmq_url" : "tcp://127.0.0.1:7201",
   "username" : "REDACTED",
   "password" : "REDACTED"
 },
 {
   "role" : "work1",
   "type" : "camera",
   "name" : "woodshop",
   "url" : "http://10.100.0.63/mjpg/video.mjpg",
   "zmq_url" : "tcp://127.0.0.1:7202",
   "username" : "REDACTED",
   "password" : "REDACTED"
 },
 {
   "role" : "work2",
   "type" : "camera",
   "name" : "garage",
   "url" : "http://zm.pumpingstationone.org/cgi-bin/nph-zms?mode=jpeg&monitor=3&scale=100&maxfps=5&buffer=1000&auth=",
   "zmq_url" : "tcp://127.0.0.1:7203",
   "username" : "REDACTED",
   "password" : "REDACTED",
   "zm_auth_hash_secret" : "REDACTED"
 },
 {
   "role" : "frontend",
   "type" : "alert",
   "mode" : "sustain",
   "level" : 20,
   "duration" : 1800,
   "message" : "I see PS:One is packed with people. Time to release the neurotoxin into the enrichment center.",
   "camera" : "space",
   "throttle" : 5400
 },
 {
   "role" : "frontend",
   "type" : "irc",
   "server" : "irc.freenode.org",
   "nick" : "spacemon",
   "channel" : "#pumpingstationone"
 },
 {
   "role" : "work1",
   "type" : "web",
   "port" : 8001
 },
 {
   "role" : "work2",
   "type" : "web",
   "port" : 8002
 },
 {
   "role" : "frontend",
   "type" : "web",
   "proxy_mode" : "auto",
   "port" : 8000
 }
 ]