Python library for building web application using the BERGCloud platform.
How to test the example.
Setting up
- Download the directory 'googleAppEngine', inside 'Examples'
- Download the directory 'bergcloud', containing the library, and copy it into 'googleAppEngine'.
GAE side
- Create a GAE webap (https://appengine.google.com/).
- Edit the 'app.yaml' file and change the application name to the one for the GAE webapp.
- Deploy the application.
BERGCloud side
- On the BERGCloud developer website create a new product. Set the newly created GAE website as base URL.
- Create a new command with code ‘0’ and name ‘testcommand’ and a new event with code ‘0’ and name ‘testevent’.
- Save the settings.
Arduino side
- Load the 'pyBERGCloudArduino' sketch (it's inside 'Examples/googleAppEngine') and edit it updating the ‘product id’ and the ‘command’ and ‘event’ codes.
- Upload the code into an (arduino) board with a BERGCloud devshield.