[Understanding Networks] Device for the Flowrpot w/Restful API

Concept:

pic

Restful API Route:

flowerpot_whiteboard

Testing basic code using nodeJS+Arduino Yun —  https://github.com/andySigler/NodeJS_Yun_Example

Using the webpage and clicking on the water button, an user will be able to water plant remotely.

Final result in daytime:

Final result in nighttime:

Oryan and I worked on this project, and we spent quite some time to figure out which is server and which is client.  Also, to design the route correctly and make it restful, we also applied XMLHTTP and AJAX in the code, so the user can see where they are in route.