Technical Overview of Hack-able Curator
Installation and interface with web site
Flash application requests list of seed (search) tags from Hackablecurator.org.uk web site
- Web site queries database and returns tags as XML data
- Flash application queries Flickr via Flashr object for 9 photos that match the search criteria (Flickr website returns XML data)
- Flash application sends subset of Flickr XML data to Hackablecurator.org.uk web site
- Hackablecurator.org.uk uses the tags associated with each of the 9 photos to choose a photo
* For each photo, each tag is compared to the tag score list in the database; if the tags exists in that database, it's score is returned and summed with the other tags for that photo. In this way the photo with the highest score is chosen. If equal, it is random.
- Hackablecurator.org.uk passes the numeric id of the chosen image back to the Flash app.
- Additionally, at this point, the Hackablecurator.org.uk web site adds the chosen photo to it's favourites, and leaves a comment on the chosen photo detailing the web site address and how to remove it from the system
- The Flash app then ‘chooses’ the photo, by sending the position number to the arduino to move the robotic arm.
- When the robotic arm has finished it‘s movement, the arduino sends a message back to the flash app which then sends the images which haven’t been chosen off screen and enlarges the chosen image.
- the system then increments the starting point for the search list and begins again
SMS System
- The SMS system is a function of the Hackablecurator.org.uk web site and an interface with Aql.com
- Aql.com provide an sms number and keyword for the project
- When Aql receive a message to the sms number where the first word matches the keyword, it sends a ‘POST’ query to the Hackablecurator.org.uk web site
- This POST query is logged to the database and processed. In this instance, the sms should include a photo id number and the word ‘like’ OR ‘dislike’
- The photo id is queried against the database and the list of its tags is returned. For each of those tags a point is added or subtracted in the tag score database table, thus influencing the photo choosing algorithm.
Web site functionality
- The website displays the list of the most recent photos the project has chosen
- The website is able to act as a basic content management system, with the facility to create, edit, and delete new content pages and maintain a gallery (including uploading and automatic resizing of images)
Credits
- Flash application build - Owen Bennett
- … to a design by - Andy Bennett
- Hackablecurator.org.uk website inc SMS integration - Andy Bennett
- Interfacing flash application with Arduino - Martha Patricia Nino