EasyIoT Cloud and Accessing a Camera
How to use the EasyIoT Cloud Platform to display video from a connected camera.
Join the DZone community and get the full member experience.
Join For Freein 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.
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.
at the end, the module configuration looks like this:
the camera image is also visible in the easyiot android application.
Published at DZone with permission of Igor Jarc, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments