Difference between revisions of "Spacemon"

From Pumping Station One
Jump to navigation Jump to search
(snapshots no longer available for a whiel now)
Line 12: Line 12:
 
   <+Toba> !light
 
   <+Toba> !light
 
   < spacemon> garage: 0% lit, electronics: 40% lit, woodshop: 2% lit, space: 27% lit
 
   < spacemon> garage: 0% lit, electronics: 40% lit, woodshop: 2% lit, space: 27% lit
 
Also there is the ability to see a snapshot from the Laser Cutter and Shop cameras using the !snap (short for !snapshot):
 
 
  <+Toba> !snap lasercutter
 
  < spacemon> sent request, should load at <nowiki>http://spacemon.pumpingstationone.org/api/lasercutter/snapshot/1439490026540621.jpg</nowiki>
 
( for looking at the shop the command is: !snap shop )
 
  
 
From time to time, spacemon will report that the space is unusually busy:
 
From time to time, spacemon will report that the space is unusually busy:

Revision as of 17:05, 20 March 2016

Spacemon is our IRC bot that watches the 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.

Another command, !light, lets you check if the lights are on. This is a good indication that someone is either rude, present, or planning to come back...

 <+Toba> !light
 < spacemon> garage: 0% lit, electronics: 40% lit, woodshop: 2% lit, space: 27% lit

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, a SpaceAPI endpoint, and the software, lidless is open source and is available on github.


lidless config

   [
     {
       "username": "REDACTED", 
       "name": "electronics", 
       "url": "http://10.100.0.30/mjpg/video.mjpg", 
       "zmq_url": "tcp://*:7200", 
       "role": "work1", 
       "password": "REDACTED", 
       "type": "camera", 
       "store": false
     }, 
     {
       "username": "REDACTED", 
       "name": "lasercutter", 
       "url": "http://10.100.0.31/mjpg/video.mjpg", 
       "zmq_url": "tcp://*:7206", 
       "role": "work2", 
       "snapshot": false, 
       "password": "REDACTED", 
       "type": "camera", 
       "store": false, 
       "snapshot_base_url": "http://spacemon.pumpingstationone.org"
     }, 
     {
       "username": "REDACTED", 
       "name": "kitchen", 
       "url": "http://10.100.15.149/goform/capture", 
       "zmq_url": "tcp://*:7207", 
       "role": "work3", 
       "mode": "jpegpoll", 
       "snapshot": false, 
       "password": "REDACTED", 
       "type": "camera", 
       "store": false, 
       "snapshot_base_url": "http://spacemon.pumpingstationone.org"
     }, 
     {
       "username": "REDACTED", 
       "name": "shop", 
       "url": "http://10.100.0.32/mjpg/video.mjpg", 
       "zmq_url": "tcp://*:7201", 
       "role": "work3", 
       "snapshot": false, 
       "password": "REDACTED", 
       "type": "camera", 
       "store": false, 
       "snapshot_base_url": "http://spacemon.pumpingstationone.org"
     }, 
     {
       "username": "REDACTED", 
       "name": "crafts", 
       "url": "http://10.100.0.33/mjpg/video.mjpg", 
       "zmq_url": "tcp://*:7202", 
       "role": "work2", 
       "password": "REDACTED", 
       "type": "camera", 
       "store": false
     }, 
     {
       "throttle": 9400, 
       "camera": "shop", 
       "low_level": 20, 
       "mode": "sustain", 
       "duration": 1800, 
       "role": [
         "frontend", 
         "announcer"
       ], 
       "message": "There's loads of people working in the shop. Yay, hacking!", 
       "type": "alert"
     }, 
     {
       "throttle": 86400, 
       "high_level": 10, 
       "camera": "electronics", 
       "low_level": 4, 
       "mode": "sustain", 
       "duration": 1500, 
       "role": [
         "frontend", 
         "announcer"
       ], 
       "message": "The people in the electronics shop are being so boring. Break a leg, slackers!", 
       "type": "alert"
     }, 
     {
       "throttle": 86400, 
       "high_level": 0, 
       "camera": "electronics", 
       "role": [
         "frontend", 
         "announcer"
       ], 
       "mode": "sustain", 
       "duration": 43200, 
       "message": "I'm so alone.  Nobody wants to hang out with me.", 
       "type": "alert"
     }, 
     {
       "name": "ps1", 
       "cameras": {
         "shop": 7, 
         "electronics": 30, 
         "crafts": 20
       }, 
       "status_note": "Only members have access 24/7. If you are not a member, check http://pumpingstationone.org/events/ for public events.", 
       "type": "spaceapi", 
       "needed_activity": 1, 
       "metadata": {
         "space": "Pumping Station: One", 
         "url": "http://pumpingstationone.org", 
         "issue_report_channels": [
       "twitter"
         ], 
         "state": {
       "icon": {
         "open": "https://wiki.pumpingstationone.org/images/pumpingstationone.org.wiki.logo.png", 
         "closed": "https://wiki.pumpingstationone.org/images/pumpingstationone.org.wiki.logo.png"
       }
         }, 
         "contact": {
       "ml": "http://groups.google.com/group/pumping-station-one-public", 
       "twitter": "@pumpingstation1", 
       "irc": "irc://irc.freenode.net/#pumpingstationone", 
       "email": "[email protected]"
         }, 
         "location": {
       "lat": 41.945321, 
       "lon": -87.706631, 
       "address": "3519 N Elston, Chicago IL 60618, USA"
         }, 
         "cam": [
       "https://spacemon.pumpingstationone.org/"
         ], 
         "logo": "https://wiki.pumpingstationone.org/images/pumpingstationone.org.wiki.logo.png"
       }
     }, 
     {
       "type": "irc", 
       "nick": "spacemon", 
       "role": "frontend", 
       "channel": "#pumpingstationone", 
       "server": "irc.freenode.net"
     }, 
     {
       "type": "announced", 
       "role": "announcer", 
       "zmq_url": "tcp://10.100.0.16:4503"
     }, 
     {
       "type": "web", 
       "role": "work1", 
       "port": 8001, 
       "zmq_url": "tcp://*:8201"
     }, 
     {
       "type": "web", 
       "role": "work2", 
       "port": 8002, 
       "zmq_url": "tcp://*:8202"
     }, 
     {
       "type": "web", 
       "role": "work3", 
       "port": 8003, 
       "zmq_url": "tcp://*:8203"
     }, 
     {
       "type": "web", 
       "proxy_mode": "auto", 
       "role": "frontend", 
       "port": 8000
     }
   ]

Things Bus

Fields:

  • ratio_busy (0.0 -> 1.0) float, how busy the room is
  • luminance (0.0 -> 255.0) float, average pixel brightness of camera source