Changes

Jump to navigation Jump to search
511 bytes added ,  01:55, 26 September 2017
no edit summary
Line 1: Line 1: −
Spacemon is our [[IRC]] bot that watches the [[ip cameras|webcams]] in the space and shows how busy each part of the space is at any time.
+
Spacemon ... isn't being operated right now, is it? Ask [[User:Toba]] if you're interested in the status or functioning of spacemon.
 +
 
 +
Spacemon is our [[IRC]] bot that watches the [[ip cameras|webcams]] in the space and shows how busy each part of the space is at any time. Spacemon is a project of [[User:Toba]].
    
IRC commands:
 
IRC commands:
Line 12: Line 14:  
   <+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 each camera:
  −
  −
  <+Toba> !snapshot 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: !snapshot 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:
Line 30: Line 26:  
== lidless config ==
 
== lidless config ==
   −
      [
+
    [
 
       {
 
       {
         "role" : "work1",
+
         "username": "REDACTED",  
        "type" : "camera",
+
         "name": "electronics",  
         "name" : "electronics",
+
         "url": "http://10.100.0.30/mjpg/video.mjpg",  
         "url" : "http://10.100.0.61/mjpg/video.mjpg",
+
         "zmq_url": "tcp://*:7200",  
         "zmq_url" : "tcp://*:7200",
+
         "role": "work1",  
         "username" : "REDACTED",
+
         "password": "REDACTED",  
         "password" : "REDACTED",
+
         "type": "camera",  
         "store" : true,
+
         "store": false
         "store_thr" : 1
+
       },  
       },
   
       {
 
       {
         "role" : "work1",
+
         "username": "REDACTED",  
        "type" : "camera",
+
         "name": "lasercutter",  
         "name" : "lasercutter",
+
         "url": "http://10.100.0.31/mjpg/video.mjpg",  
         "url" : "http://10.100.0.64/mjpg/video.mjpg",
+
         "zmq_url": "tcp://*:7206",  
         "zmq_url" : "tcp://*:7206",
+
         "role": "work2",
         "username" : "REDACTED",
+
        "snapshot": false,  
         "password" : "REDACTED",
+
         "password": "REDACTED",  
         "snapshot" : true,
+
         "type": "camera",  
         "store" : true,
+
         "store": false,  
         "store_thr" : 1
+
         "snapshot_base_url": "http://spacemon.pumpingstationone.org"
       },
+
       },  
 
       {
 
       {
         "role" : "work2",
+
         "username": "REDACTED",  
        "type" : "camera",
+
         "name": "kitchen",  
         "name" : "shop",
+
         "url": "http://10.100.15.149/goform/capture",  
         "url" : "http://10.100.0.62/mjpg/video.mjpg",
+
         "zmq_url": "tcp://*:7207",
         "zmq_url" : "tcp://*:7201",
+
        "role": "work3",  
         "username" : "REDACTED",
+
         "mode": "jpegpoll",
         "password" : "REDACTED",
+
        "snapshot": false,  
         "store" : true,
+
         "password": "REDACTED",
         "store_thr" : 1
+
        "type": "camera",  
       },
+
         "store": false,  
 +
         "snapshot_base_url": "http://spacemon.pumpingstationone.org"
 +
       },  
 
       {
 
       {
         "role" : "work1",
+
         "username": "REDACTED",  
        "type" : "camera",
+
         "name": "shop",  
         "name" : "crafts",
+
         "url": "http://10.100.0.32/mjpg/video.mjpg",  
         "url" : "http://10.100.0.63/mjpg/video.mjpg",
+
         "zmq_url": "tcp://*:7201",  
         "zmq_url" : "tcp://*:7202",
+
         "role": "work3",
         "username" : "REDACTED",
+
        "snapshot": false,  
         "password" : "REDACTED",
+
         "password": "REDACTED",
         "store" : true,
+
        "type": "camera",  
         "store_thr" : 1
+
         "store": false,  
       },
+
         "snapshot_base_url": "http://spacemon.pumpingstationone.org"
 +
       },  
 
       {
 
       {
         "role" : ["frontend", "announcer"],
+
         "username": "REDACTED",  
         "type" : "alert",
+
         "name": "crafts",  
         "mode" : "sustain",
+
         "url": "http://10.100.0.33/mjpg/video.mjpg",  
         "low_level" : 20,
+
         "zmq_url": "tcp://*:7202",  
         "duration" : 1800,
+
         "role": "work2",  
         "message" : "There's loads of people working in the shop. Yay, hacking!",
+
         "password": "REDACTED",  
         "camera" : "shop",
+
         "type": "camera",  
         "throttle" : 9400
+
         "store": false
       },
+
       },  
 
       {
 
       {
         "role" : ["frontend", "announcer"],
+
         "throttle": 9400,
         "type" : "alert",
+
        "camera": "shop",  
         "mode" : "sustain",
+
         "low_level": 20,  
         "high_level" : 10,
+
         "mode": "sustain",  
         "low_level" : 4,
+
         "duration": 1800,  
        "duration" : 1500,
+
         "role": [
         "message" : "The people in the electronics shop are being so boring. Break a leg, slackers!",
+
          "frontend",  
         "camera" : "electronics",
+
          "announcer"
        "throttle" : 86400
+
        ],  
       },
+
         "message": "There's loads of people working in the shop. Yay, hacking!",  
 +
         "type": "alert"
 +
       },  
 
       {
 
       {
         "role" : ["frontend", "announcer"],
+
         "throttle": 86400,
         "type" : "alert",
+
        "high_level": 10,  
         "mode" : "sustain",
+
        "camera": "electronics",  
         "high_level" : 0,
+
         "low_level": 4,  
         "duration" : 43200,
+
         "mode": "sustain",  
        "message" : "I'm so alone.  Nobody wants to hang out with me.",
+
         "duration": 1500,  
         "camera" : "electronics",
+
         "role": [
         "throttle" : 86400
+
          "frontend",
       },
+
          "announcer"
 +
        ],  
 +
         "message": "The people in the electronics shop are being so boring. Break a leg, slackers!",  
 +
         "type": "alert"
 +
       },  
 
       {
 
       {
         "type" : "spaceapi",
+
         "throttle": 86400,
         "name" : "ps1",
+
        "high_level": 0,  
         "metadata" : {
+
         "camera": "electronics",  
           "space" : "Pumping Station: One",
+
         "role": [
          "url" : "http://pumpingstationone.org",
+
          "frontend",
          "contact" : {
+
           "announcer"
         "twitter" : "@pumpingstation1",
+
        ],
         "irc" : "irc://irc.freenode.net/#pumpingstationone",
+
        "mode": "sustain",  
         "email" : "[email protected]",
+
        "duration": 43200,
         "ml" : "http://groups.google.com/group/pumping-station-one-public"
+
        "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": [
 
           "issue_report_channels": [
 
         "twitter"
 
         "twitter"
           ],
+
           ],  
           "logo" : "http://wiki.pumpingstationone.org/images/pumpingstationone.org.wiki.logo.png",
+
           "state": {
           "state" : {
+
        "icon": {
         "icon" : {
+
          "open": "https://wiki.pumpingstationone.org/images/pumpingstationone.org.wiki.logo.png",  
          "open" : "http://wiki.pumpingstationone.org/images/pumpingstationone.org.wiki.logo.png",
+
           "closed": "https://wiki.pumpingstationone.org/images/pumpingstationone.org.wiki.logo.png"
           "closed" : "http://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": "info@pumpingstationone.org"
 +
          },
 +
          "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"
 
         }
 
         }
          },
+
       },  
          "location" : {
  −
        "address" : "3519 N Elston, Chicago IL 60618, USA",
  −
        "lat" : 41.945321,
  −
        "lon" : -87.706631
  −
        },
  −
          "cam" : ["http://apps.pumpingstationone.org/space-activity/"]
  −
        },
  −
        "cameras" : {
  −
          "shop" : 7,
  −
          "electronics" : 30,
  −
          "crafts" : 20
  −
        },
  −
        "needed_activity" : 1,
  −
        "status_note" : "Check http://pumpingstationone.org/events/ for public events."
  −
       },
   
       {
 
       {
         "role" : "frontend",
+
         "type": "irc",  
         "type" : "irc",
+
         "nick": "spacemon",  
         "server" : "irc.freenode.net",
+
         "role": "frontend",  
         "nick" : "spacemon",
+
         "channel": "#pumpingstationone",  
         "channel" : "#pumpingstationone"
+
         "server": "irc.freenode.net"
       },
+
       },  
 
       {
 
       {
         "role" : "announcer",
+
         "type": "announced",  
         "type" : "announced",
+
         "role": "announcer",  
         "zmq_url" : "tcp://10.100.0.16:4503"
+
         "zmq_url": "tcp://10.100.0.16:4503"
       },
+
       },  
 
       {
 
       {
         "role" : "work1",
+
         "type": "web",  
         "type" : "web",
+
         "role": "work1",  
         "port" : 8001,
+
         "port": 8001,  
         "zmq_url" : "tcp://*:8201"
+
         "zmq_url": "tcp://*:8201"
       },
+
       },  
 
       {
 
       {
         "role" : "work2",
+
         "type": "web",  
         "type" : "web",
+
         "role": "work2",  
         "port" : 8002,
+
         "port": 8002,  
         "zmq_url" : "tcp://*:8202"
+
         "zmq_url": "tcp://*:8202"
       },
+
       },  
 
       {
 
       {
         "role" : "work3",
+
         "type": "web",  
         "type" : "web",
+
         "role": "work3",  
         "port" : 8003,
+
         "port": 8003,  
         "zmq_url" : "tcp://*:8203"
+
         "zmq_url": "tcp://*:8203"
       },
+
       },  
 
       {
 
       {
         "role" : "frontend",
+
         "type": "web",  
         "type" : "web",
+
         "proxy_mode": "auto",  
         "proxy_mode" : "auto",
+
         "role": "frontend",  
         "port" : 8000
+
         "port": 8000
 
       }
 
       }
      ]
+
    ]
    
== Things Bus ==
 
== Things Bus ==
1,524

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu