Gaurav Mishra
Published © CC BY-SA

Cloud connected vaccine monitoring

Over the cloud using data analytics we can predict if a vaccine vial is about to get spoiled (predictive analysis), so that it can be moved

ExpertFull instructions provided2,430
Cloud connected vaccine monitoring

Things used in this project


Read more


Intel Galileo

Connect to groove base shield and insert sensors


Vaccine-SNS Code

We have used Amazon SNS to take values from the rest service in EC2, and push it to Android Phone using GCM (Google Cloud Messaging Service)

1. Setting up SNS:

2. Setting up GCM:

We added the SNS project in the same workspace as that of the Rest Services. The SNS Java code is attached as the zip file

To use the sample given by Amazon with minimal changes, we passed the message from Rest Service as a parameter 'msg_EC2'.

In the java file, we read the message from the Rest Service into the variable 'msg_EC2'. To account for this extra parameter, we edited the method signatures in couple of the files imported (, by The rest of the sample code given by Amazon is kept as is.

The method setData() inside, is used inside the rest service java code to set the message to be sent to the phone:

public static void setData() {

this.msg_EC2 = msg_EC2;


Note: In the Rest Service code I uploaded here,, the setData() call is not added. You can add this method directly in the controller, or create files in /service and /repo folders as per MVC convention to read the sensor data from the Controller and then let SNS copy it from the setData() method inside the /service file.
No preview (download only).

Code in Intel XDK IoT to read sensor value and write to peripherals

To install libraries you need to run commands on the board:

(a) Do a putty to the board. Keep the baud as 115200, 8 and 115200

(b) Do an ls in / to confirm the yokto is installed

> cd /

> ls

(c) You may need to update the packages to ensure the sensor reading and device writings are working fine:

> opkg update

> opkg upgrade

(b) To install ndoejs modules:

> npm -g install

> npm link
No preview (download only).

REST service for this project.

File contains the java and jsp code for the REST service for this project.

Steps to setup Rest Service on EC2 --

1. Setting up EC2 -
2. Start a Windows Instance -

3. Create a Rest Web Service - We created a J2EE REST Webservice (Spring MVC Framework) using Eclipse, and ran it on Tomcat. Follow the tutorial here to setup the service -
No preview (download only).


Gaurav Mishra

Gaurav Mishra

4 projects • 17 followers
Student of electronics engineering


Add projectSign up / Login