Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
examples
.gitignore
DoorbotListener.class.php
DoorbotListener.py
README.md
carddb.py
carddb_example.json
doorbot-1f-entrance-lastseen.py
doorbot-1st-boarded.py
doorbot-boarded.py
doorbot-camhandler.py
doorbot-front-boarded.py
doorbot-front-lastseen.py
doorbot-glados.py
doorbot-irccat.py
doorbot-lastseen.py
doorbot-lighted.py
doorbot-listener.conf.sample
doorbot-notify.py
doorbot-tweeter.py
proxy.py
send-debug-broadcast.py

README.md

These scripts reacted to broadcast messages sent out by doorbots (UDP broadcast, back doorbot port 50001, front doorbot port 50002).

These are no longer in use, since at LHS we now use MQTT notifications instead. see the ../mqttlisteners/ directory

Scripts running on hamming as of 14 September 2015:

  • doorbot-glados.py
  • doorbot-boarded.py
  • doorbot-irccat.py (frond and back)
  • doorbot-lastseen.py (front and back)

doorbot-boarded.py

Connects to a boarded instance running on hamming:8020, submits a message via a GET request that gets displayed on a led matrix board.

Two instances listening on different ports sending the same message.

doorbot-lastseen.py

Listens for messages, writes an entry via pickle to a local file, for consumption by other scripts.

Two instances, one for the front, and one for the back door, using the same file.

doorbot-irccat.py

Reads and refreshes the database from the pickled file produced by lastseen and does the following:

  • When a bell is rang, sends a message to the channel.
  • When a known card is presented, sends a message with a nickname to the channel including when the user was last seen.
  • When an unknown card is presented, sends a messages to the channel.
You can’t perform that action at this time.