QueenBee: Difference between revisions

From Hive76 Wiki
Jump to navigationJump to search
Line 48: Line 48:
QueenBee will also respond to several keywords with useful information, such as "mailing list?", "open house?", and "mmmm?". Currently QueenBee is capable of being interjected with commands form outside of phenny due to a module, waitForIt.py, that will be the basic for interjecting code into the bot from a physical command, such as button-press.
QueenBee will also respond to several keywords with useful information, such as "mailing list?", "open house?", and "mmmm?". Currently QueenBee is capable of being interjected with commands form outside of phenny due to a module, waitForIt.py, that will be the basic for interjecting code into the bot from a physical command, such as button-press.
QueenBee is also currently logging the lusers results every 3 minutes into ~/phenny/lusers.log, to be charted/graphed later, as well as the number of users in #hive76 to ~/phenny/hive76.log
QueenBee is also currently logging the lusers results every 3 minutes into ~/phenny/lusers.log, to be charted/graphed later, as well as the number of users in #hive76 to ~/phenny/hive76.log
QueenBee also monitors Hive76's twitter feed ([https://twitter.com/hive76 @Hive76]), and posts new tweets to the #hive76 channel
[http://www.hive76.org/irc Access #hive76 on IRC]
[http://www.hive76.org/irc Access #hive76 on IRC]
===Physical Interface===
===Physical Interface===
Currently QueenBee has no physical interface, as there is some difficulty in passing through a PCI device through Xen to the QueenBee VM. A solution is being worked upon.
Currently QueenBee has no physical interface, as there is some difficulty in passing through a PCI device through Xen to the QueenBee VM. A solution is being worked upon.

Revision as of 15:00, 21 November 2012

QueenBee

QueenBee is a Virtual Machine that lives on loud, and provides an interface for projects in Hive76. It's intentions are to provide users who want to do physical computing within the space the capabilities to do while interfacing with the other projects related to the space. Ideally, it could handle lighting, music, door access, beaconing, and any other projects we may think of. It's primary interface currently is via IRC.

IRC Interface

QueenBee runs an IRC bot, aptly named QueenBee in #hive76. The bot is a python based bot called Phenny. Phenny is customizable via python modules in the ~/phenny/modules folder, and there is a guide to making modules here. QueenBee currently responds to several commands, listed below. Lines in light orange are Hive76-specific commands

Command Argument What it Does
.beacon off|status> Shows the status of Hive76's Beacon. The beacon is turned on, and left active for up to 60 minutes, indicating someone is at the space
.c <math problem> Uses Google Calculator to solve <math problem>
.ety <word> Looks up the etymology of a word on etymonline.com
.g <search term> Returns the top Google result
.gc <search term> Returns the number of search results from Google
.hivew <topic> Searches for <topic> on Hive76's Wikipedia
.husers   Returns the number of users in the connected channel
.in QueenBee will respond after
.lusers   Returns the number of users connected to Freenode
.py <expression> Uses a web-based python sandbox to evaluate <expression> and returns the result
.seen <nick> Returns the last time QueenBee saw <nick> in any of her channels
.t <timezone> Returns the current time in EST, or <timezone> if specified
.tock Returns the time from the USNO's atomic clock.
.title <link> Returns the title of the link
.u <character> Returns the unicode of <character>
.wa <question> Returns the Wolfram Alpha result of <question> - may have trouble parsing the JSON of more ambiguous questions
.wik <topic> Searches for <topic> on Wikipedia
QueenBee: tell <nick> <message> Will deliver <message> to <nick> when they become active again
QueenBee: "<foreign phrase"? QueenBee will attempt to translate <foreign phrase> using Google translate

QueenBee will also respond to several keywords with useful information, such as "mailing list?", "open house?", and "mmmm?". Currently QueenBee is capable of being interjected with commands form outside of phenny due to a module, waitForIt.py, that will be the basic for interjecting code into the bot from a physical command, such as button-press. QueenBee is also currently logging the lusers results every 3 minutes into ~/phenny/lusers.log, to be charted/graphed later, as well as the number of users in #hive76 to ~/phenny/hive76.log QueenBee also monitors Hive76's twitter feed (@Hive76), and posts new tweets to the #hive76 channel Access #hive76 on IRC

Physical Interface

Currently QueenBee has no physical interface, as there is some difficulty in passing through a PCI device through Xen to the QueenBee VM. A solution is being worked upon.