Code constructors cloud-connected android application

For badges: [Cloud city], [Force Field], [Eyes wide shutter], [HUD] and [Native]

The app contains three functions:
The first is to collect heart rate readings from the cloud and graph them over time (currently fabricated data). That way the user can continuously check in on whoever is wearing the monitor.

The second function is to display images taken by the guard dog in a grid view. It is then up to the user to act on that information.

The third is the ability to send an attack command to the guard dog, which will then bark and flash lights at the intruder while moving towards them.

If the user wants a closer look, all they have to do is press and hold on an image to expand it.

Expanded image for closer viewing

Before being able to access any functionality, the user must log in to the app.

The login screen

The cloud has four main endpoints: two for receiving values and two for sending values. The camera captures an image which is then converted in the raspberry pi to a base64 string, then posted and stored in the cloud. A similar technique is available for the wearable heart rate and temperature monitor.
All communication to and from the cloud uses API-keys to secure the transmissions. The cloud API is also version controlled.

Code for the cloud: https://github.com/BoldizarF/ariot19/tree/master/rest-api/WatchDogApi

Leave a Reply

Your e-mail address will not be published. Required fields are marked *