def main(): sock = urllib.urlopen( "http://human.io/t/EoJr8vkzTDoYfBgGQ87ppfA18ZRL7EQsbw9cAEGt5Nk") htmlSource = sock.read() sock.close() idx1 = htmlSource.find("<div id=\"shortcode\">") idx2 = htmlSource.find("</div>", idx1) shortcode = htmlSource[idx1 + 20:idx2].strip() app = humanio.App(my_humanio_auth.developer_id, my_humanio_auth.secret_key, public=False) print "Connecting to the 1984 darknet listening posts...viva la resistance!" print shortcode app.create_task( description="How to Sukey.io?", humans_per_item= -1, #humans_per_item - How many people you are requesting. Specify -1 for unlimited number thumbnail="http://sukey.io/images/how-to.gif", human_can_do_multiple=True, #auto_repeat=None, #camera=True, #you need a camera for this activity! Disable for testing on_connect_fn=on_connect, on_submit_fn=on_submit) print "System online, tl;dr; only an excuse for teh real n00bs..." app.start_loop()
def main(): app = humanio.App(my_humanio_auth.developer_id, my_humanio_auth.secret_key, public=False) print "Starting What is Sukey?" app.create_task(description="What is Sukey.io?", humans_per_item=-1, #humans_per_item - How many people you are requesting. Specify -1 for unlimited number thumbnail="http://sukey.io/webapp/images/info.gif", human_can_do_multiple=True, #auto_repeat=None, #camera=True, #you need a camera for this activity! Disable for testing on_connect_fn=on_connect, on_submit_fn=on_submit) print "System online, tl;dr; only an excuse for teh real n00bs..." app.start_loop()
def main(): app = humanio.App(my_humanio_auth.developer_id, my_humanio_auth.secret_key, public=False) print "Favourite Banner" app.create_task(description="Favourite Protest Sign", #rename to epic signage? humans_per_item=-1, #humans_per_item - How many people you are requesting. Specify -1 for unlimited number thumbnail="http://sukey.io/webapp/images/logo.png", human_can_do_multiple=True, #auto_repeat=None, #camera=True, #you need a camera for this activity! Disable for testing on_connect_fn=on_connect, on_submit_fn=on_submit, latitude=51.524579, longitude=-0.082312, #currently centered on London Hackspace radius_miles=10) print "System online, standing by for field reports..." app.start_loop()
def main(): app = humanio.App(my_humanio_auth.developer_id, my_humanio_auth.secret_key, public=False) print "Connecting..." app.create_task(description="ChargeAllTheThings", #humans_per_item - How many ppl-1 for unlimited number humans_per_item=-1, #we need an 86x86 (I think) png or gif here. Example: thumbnail="https://farm8.staticflickr.com/7098/7267896702_5531d3b66a_t.jpg", human_can_do_multiple=True, #auto_repeat=None, on_connect_fn=on_connect, on_submit_fn=on_submit, ) print "System online, standing by for field reports..." app.start_loop()
def main(): app = humanio.App(my_humanio_auth.developer_id, my_humanio_auth.secret_key, public=False) print "Connecting to the 1984 darknet listening posts...viva la resistance!" app.create_task(description="Shame on You!", humans_per_item=-1, #humans_per_item - How many people you are requesting. Specify -1 for unlimited number thumbnail="http://sukey.io/webapp/images/photo.gif", human_can_do_multiple=True, #auto_repeat=None, #camera=True, #you need a camera for this activity! Disable for testing on_connect_fn=on_connect, on_submit_fn=on_submit, #latitude=51.524579, longitude=-0.082312, #currently centered on London Hackspace #radius_miles=10 ) print "System online, standing by for field reports..." app.start_loop()