Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

EasyIoT Cloud and Accessing a Camera

DZone's Guide to

EasyIoT Cloud and Accessing a Camera

How to use the EasyIoT Cloud Platform to display video from a connected camera.

· IoT Zone
Free Resource

Address your IoT software testing needs – improve quality, security, safety, and compliance across the development lifecycle.

In this tutorial we will show how to set EasyIoT Cloud to display picture from IP camera. The camera image is also visible in a mobile application.

Sometimes we want to see the picture from a camera and not just the sensor values in EasyIoT Cloud. With module type MT_IMAGE, we can display an image from a remote location such as an IP camera.

EasyIoT Cloud camera module

First we'll register with EasyIoT Cloud. Then go to Configure -> Modules and press button "Add Module".

Select module type "Image - MT_IMAGE" and save module. Then go to Sensor.Parameter1 and under value, set URL to camera. For test purpose we will use some random traffic camera, but you can change it to suits your purpose. In our tutorial we will use the URL http://kamere.dars.si/kamere/msc2pics/Cam22_SPEED_IZHOD.jpg and save parameter.

That's all we need to display a picture in the EasyIoT Cloud Web and Mobile app. If we also want to refresh picture, we add additional parameter to module (Add Parameter button in module config) and name it Settings.RefreshInterval. We will also set the refresh interval in the parameter value. Refresh interval is in seconds. In our case we set the value to 5 and save the parameter. With this settings picture will be automatically updated in refresh intervals.

EasyIoT Cloud image refresh

At the end, the module configuration looks like this:

EasyIoT Cloud module config

The camera image is also visible in the EasyIoT Android application.

Accelerate the delivery of high-quality software in the connected IoT era through an integrated analysis, testing, security, and analytics platform. Parasoft's comprehensive portfolio of testing toolsautomates time-consuming testing tasks and provides management with intelligent analytics and reporting so they can focus on what matters.

Topics:
iot app development ,iot data center ,iot examples

Published at DZone with permission of Igor Jarc, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}