GMU:Bots 'n' Plots/Oliver Hannemann: Difference between revisions

From Medien Wiki
 
(47 intermediate revisions by the same user not shown)
Line 1: Line 1:
Wellcome to my participant page! My name is Oliver Hannemann.
==Wellcome to my participant page!==
My name is Oliver Hannemann. I am studying "Media Art and Media Design (MFA)" at the Bauhaus University in Weimar.


==Follow me!==
'''Follow me!'''


* [https://www.facebook.com/vjastraal ...on Facebook]
* [https://www.facebook.com/vjastraal ...on Facebook]
* [https://twitter.com/vj_astraal ...on Twitter]
* [https://twitter.com/vj_astraal ...on Twitter]


==My Bots'n'Plots proyects==
==My Bots'n'Plots projects==
<br>
'''My first animated Python "robot"'''
 
[[File:OlisLittlePyRobot.gif]]
 
''[http://pastebin.com/wHs8j8UC Grab the code at Pastebin]''
 
__________




----
'''MoviePy F**k around'''


http://i.imgur.com/FARiVH1.gif


'''My first animated Python robot'''
''[http://pastebin.com/HUrwHVUa Grab the code at Pastebin]''


[[File:OlisLittlePyRobot.gif]]
__________
 
 
'''My first TwitterBot tweet'''
 
http://i.imgur.com/n1gXYEn.png
 
''[https://twitter.com/vj_astraal/status/601093916084043776 See the original here]''
 
__________
 
 
'''Mid-Term EnjoyTheSilence-Bot'''
 
http://i.imgur.com/a1fkPUN.png
 
Grab the ''[http://pastebin.com/GJn9kxAX EnjoyTheSilence.py]'' code and ''[http://pastebin.com/rarCXxjp EnjoyTheSilence.txt]'' text file at Pastebin


Code:
''[https://twitter.com/vj_astraal See the original here]''


This is a very basic text bot, that works down a text file. I was trying to make a scrape and poste bot ''[http://joaquinlp.me/blog/simple-twitter-image-bot-in-python/ following this tutorual]'' but I got stuck at
<pre>
<pre>
    image_open = images[random.randint(0, len(images))-1]
IndexError: list index out of range
</pre>
__________


"""
'''[Final] Kaleidobot'''


My little Robot
"I am a beauty bot. I bring love and joy. I invite you to get mesmerized. // Tweet an image at me and I will kaleidofy it for you!"
– Kaleidobot


"""
'''[https://twitter.com/kaleidobot ⎈ See Kaleidobot in action on Twitter ⎈]'''


def setup():
Kaleidobot is a Twitter bot. Tweet an image with the mention "@kaleidobot" and a few moments later Kaleidobot will reply to you with a kaleidofyed version of your original image. During the process it mirrors the image horizontally and vertically and increases the saturation. Pillow is being used for the image processing.
    size(400, 400)
    frameRate(10)


''Here are some examples after the magic happened:''


def draw():
http://i.imgur.com/TPsDPuF.png . http://i.imgur.com/RWwHSip.png . http://i.imgur.com/E4jHpHc.png
   
    r = random (225)
    background(r, 150 ,r)
   
    pushMatrix()
    translate(0,50)
   
    # 1. Antenne
    pushMatrix()
    translate(200, 100)
    rotate(r/2)
    line(0, 100, 0, 0)
    popMatrix()


    # 2. Antenne
''Here you can see that @vj_astraal tweeted a picture and added "@kaleidobot" to his tweet. Kaleidobot replied withe the processed version of the image:''
    pushMatrix()
    translate(200, 100)
    rotate(-r/2)
    line(0, 0, 0, 100)
    popMatrix()
   
    # Kopf
    ellipse(200, 100, 100, 100)
   
    # L Bein
    pushMatrix()
    translate(175, 145)
    rotate(TWO_PI / 20)
    line(0, 0, 0, 150)
    popMatrix()
   
    # R Bein
    pushMatrix()
    translate(225, 145)
    rotate(-TWO_PI / 20)
    line(0, 0, 0, 150)
    popMatrix()
   
    # L Schuh
    pushMatrix()
    translate(130, 285)
    scale(-1, 1)
    triangle(0, 0, 0, 30, 80, 40)
    fill(255, 204, 0)
    popMatrix()
   
    # R Schuh
    pushMatrix()
    translate(270, 285)
    triangle(0, 0, 0, 30, 80, 40)
    popMatrix()
   
    popMatrix()


</pre>
http://i.imgur.com/rERwu4x.png
 
If you are interested in checking out the code or want to tweak around with it just grab [https://github.com/KollektivHannemann/Kaleidobot the repository from '''GitHub''' here.]
 
During the process [https://github.com/craftoid/twitterbot-examples the bot examples from Martin Schneider] were really helpful to get started and to get a better feeling for tweepy and Pillow. Stackoverflow of course was a big help as well. [https://stackoverflow.com/questions/1410406/python-image-mirroring Especially this post,] to get a feeling how the mirroring process should work


==Project Ideas==
<br>
'''BILD Top Comment Twitter bot''' 
* Tweets the Top comment of Bild online articles that allow commenting
* Goal is to display the opinion of the readers (top comment has been upvoted by community) to show how much work is still necessary in our society


----
'''CountR Twitter bot'''
* this would be an upgrade of my Arduino based project "CountR" ([https://www.youtube.com/watch?v=Tr07gajVIqo ''watch demo on YouTube''])
* Goal would be to let the CountR tweet every 10min how many people it has counted


==Contributed links==
==Contributed links==
 
<br>
'''Random'''
'''Misc'''


* [http://www.belfasttelegraph.co.uk/technology/robot-that-bought-mdma-passport-and-baseball-cap-released-by-authorities-31150495.html "Random Darknet Shopper" bot released from prison]
* [http://www.belfasttelegraph.co.uk/technology/robot-that-bought-mdma-passport-and-baseball-cap-released-by-authorities-31150495.html "Random Darknet Shopper" bot released from prison]
Line 106: Line 99:
==Courses I am taking this semester (SS15)==
==Courses I am taking this semester (SS15)==


* [https://www.uni-weimar.de/medien/wiki/GMU:Bio_Games GMU:BIOGAMES]
* [https://www.uni-weimar.de/medien/wiki/GMU:BioGames/Oliver_Hannemann GMU:BIOGAMES]
* [https://www.uni-weimar.de/medien/wiki/GMU:Bots_n_Plots GMU:BOTS 'N' PLOTS]
* [http://www.uni-weimar.de/medien/wiki/GMU:Bots_%27n%27_Plots GMU:BOTS 'N' PLOTS]
* [https://www.uni-weimar.de/medien/wiki/IFD:InsideMobile IFD:INSIDEMOBILE]
* [https://www.uni-weimar.de/medien/wiki/IFD:InsideMobile IFD:INSIDEMOBILE]
* [https://www.uni-weimar.de/medien/wiki/IFD:OutsideMobile IFD:OUTSIDEOBILE]
* [https://www.uni-weimar.de/medien/wiki/IFD:OutsideMobile IFD:OUTSIDEOBILE]

Latest revision as of 21:11, 31 August 2015

Wellcome to my participant page!

My name is Oliver Hannemann. I am studying "Media Art and Media Design (MFA)" at the Bauhaus University in Weimar.

Follow me!

My Bots'n'Plots projects


My first animated Python "robot"

OlisLittlePyRobot.gif

Grab the code at Pastebin

__________


MoviePy F**k around

FARiVH1.gif

Grab the code at Pastebin

__________


My first TwitterBot tweet

n1gXYEn.png

See the original here

__________


Mid-Term EnjoyTheSilence-Bot

a1fkPUN.png

Grab the EnjoyTheSilence.py code and EnjoyTheSilence.txt text file at Pastebin

See the original here

This is a very basic text bot, that works down a text file. I was trying to make a scrape and poste bot following this tutorual but I got stuck at

    image_open = images[random.randint(0, len(images))-1]
IndexError: list index out of range

__________


[Final] Kaleidobot

"I am a beauty bot. I bring love and joy. I invite you to get mesmerized. // Tweet an image at me and I will kaleidofy it for you!" – Kaleidobot

⎈ See Kaleidobot in action on Twitter ⎈

Kaleidobot is a Twitter bot. Tweet an image with the mention "@kaleidobot" and a few moments later Kaleidobot will reply to you with a kaleidofyed version of your original image. During the process it mirrors the image horizontally and vertically and increases the saturation. Pillow is being used for the image processing.

Here are some examples after the magic happened:

TPsDPuF.png . RWwHSip.png . E4jHpHc.png

Here you can see that @vj_astraal tweeted a picture and added "@kaleidobot" to his tweet. Kaleidobot replied withe the processed version of the image:

rERwu4x.png

If you are interested in checking out the code or want to tweak around with it just grab the repository from GitHub here.

During the process the bot examples from Martin Schneider were really helpful to get started and to get a better feeling for tweepy and Pillow. Stackoverflow of course was a big help as well. Especially this post, to get a feeling how the mirroring process should work

Project Ideas


BILD Top Comment Twitter bot

  • Tweets the Top comment of Bild online articles that allow commenting
  • Goal is to display the opinion of the readers (top comment has been upvoted by community) to show how much work is still necessary in our society

CountR Twitter bot

  • this would be an upgrade of my Arduino based project "CountR" (watch demo on YouTube)
  • Goal would be to let the CountR tweet every 10min how many people it has counted

Contributed links


Misc

Twitter Bots

Courses I am taking this semester (SS15)