Assignment: Lab 2 (100pts)
In lab 1, you learned how to setup the Intel Edison. Lab 2 focuses on the cloud interface.
Based on the links provided for the week, accomplish the following tasks:
1. (0pts) Complete and demonstrate a working example for the Parse interface as described in the link. (OPTIONAL)
2. (15pts) Demonstrate a working example of the Firebase interface, which involves you posting data to the Firebase.
For both the above, you should be able to work with the code provided.
3. (40pts) Design a simple program, using DynamoDB, that creates a table, allows the user to interactively add, delete or view all items in a DynamoDB table. The fields of entries could be "name", "CUID"
4. (45pts) After setting up your Amazon Web Services as described in the document, design a system that shall stream temperature readings from your temperature sensor to your cloud DynamoDB database. Every time you press the switch, it should shift to using the Amazon Kinesis service. If you press the switch again, it should revert to storing data in the database and so on. Use the LCD display to indicate your current mode of operation. Your data fields could be the measurement-iteration, temperature & timestamp.
To clarify part 4, implement the following pseudo code:
while (True)
When button pressed:
Post into DynamoDB
When button pressed again:
Post into Kinesis Stream
Extra Credit (20 pts):
For part 3. add a simple search feature that allows you to search through the table, by name or CUID.
BEFORE coming for Lab 3, please install the following on your Edison (these take a significant amount of time. Please be patient):
pip install pytz
pip install numpy
pip install pandas
Notes:
1. When closing shop, please shutdown your Edison, using the command below, before disconnecting to help prevent any Flash memory errors.
shutdown now
Further, keep backing up your code as much as possible. For users of Linux & Mac, you could use the scp command frequently to copy your code over the network.
Windows users could use this WinSCP software for a similar purpose. You may also try FileZilla. Please note that your Wifi & password need to be configured on your Edison for these to work, whether you use Windows, Linux or Unix.
2. When working with python codes, especially when using while(1) loops, try using the try:....except KeyboardInterrupt: structure for smoothly exiting your program.
try: while(True): . . . except KeyboardInterrupt: exit
You may want to explore some other try:... except.. cases here or see a full list of Exceptions and Errors to handle here.
In lab 1, you learned how to setup the Intel Edison. Lab 2 focuses on the cloud interface.
Based on the links provided for the week, accomplish the following tasks:
1. (0pts) Complete and demonstrate a working example for the Parse interface as described in the link. (OPTIONAL)
2. (15pts) Demonstrate a working example of the Firebase interface, which involves you posting data to the Firebase.
For both the above, you should be able to work with the code provided.
3. (40pts) Design a simple program, using DynamoDB, that creates a table, allows the user to interactively add, delete or view all items in a DynamoDB table. The fields of entries could be "name", "CUID"
4. (45pts) After setting up your Amazon Web Services as described in the document, design a system that shall stream temperature readings from your temperature sensor to your cloud DynamoDB database. Every time you press the switch, it should shift to using the Amazon Kinesis service. If you press the switch again, it should revert to storing data in the database and so on. Use the LCD display to indicate your current mode of operation. Your data fields could be the measurement-iteration, temperature & timestamp.
To clarify part 4, implement the following pseudo code:
while (True)
When button pressed:
Post into DynamoDB
When button pressed again:
Post into Kinesis Stream
Extra Credit (20 pts):
For part 3. add a simple search feature that allows you to search through the table, by name or CUID.
BEFORE coming for Lab 3, please install the following on your Edison (these take a significant amount of time. Please be patient):
pip install pytz
pip install numpy
pip install pandas
Notes:
1. When closing shop, please shutdown your Edison, using the command below, before disconnecting to help prevent any Flash memory errors.
shutdown now
Further, keep backing up your code as much as possible. For users of Linux & Mac, you could use the scp command frequently to copy your code over the network.
Windows users could use this WinSCP software for a similar purpose. You may also try FileZilla. Please note that your Wifi & password need to be configured on your Edison for these to work, whether you use Windows, Linux or Unix.
2. When working with python codes, especially when using while(1) loops, try using the try:....except KeyboardInterrupt: structure for smoothly exiting your program.
try: while(True): . . . except KeyboardInterrupt: exit
You may want to explore some other try:... except.. cases here or see a full list of Exceptions and Errors to handle here.
shutdown now