using the joomla framework for internet of things (iot) case for lighting control
DESCRIPTION
This case study presentation shows how we have used the #joomla framework in building a IoT infrastructure for Lighting control systems. The infra provides a way to control various smart devices via web & mobile devices and also mash up other APIs. Its designed to scale easily both in terms of numbers as well as in terms of protocolsTRANSCRIPT
![Page 1: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/1.jpg)
Building a LCMS with the Joomla Framework
the internet of things & Joomla
![Page 2: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/2.jpg)
Parth LawateStrategic Marketing Manger Joomla
CEO, Techjoomla, Tekdi Web Solutions
@parthlawate, @techjoomla
www.techjoomla.com
Cook
Bookworm Gardener
JUG Pune
Joomla Freak
Trekking
EntrepreneurJoomla Day India
Open Source
Software ArchitechtMarketing
Content Strategy
Hiking
![Page 3: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/3.jpg)
Tekdi Web Solutions @tekdinet
tekdi.net
IOS Apps
CRM
Magento
E Learning Ecommerce
Joomla
Custom Apps
Android
CMS
HTML5
Social Networks
![Page 4: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/4.jpg)
Techjoomla. For All things Joomla @techjoomla
techjoomla.com
jGive
People Suggest
jomLikeJTicketing
J!Bolo
Broadcast
Invitex
Email Beautifier
SocialAds
J!MailAlerts
REST APIPayments API
Social API
Quick2Cart
![Page 5: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/5.jpg)
Our worst fears have come true !Another CMS on the Joomla Framework !!
LCMS
![Page 6: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/6.jpg)
What's a LCMS ?
How do I Build my Website with it ?
![Page 7: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/7.jpg)
LightingControlManagement System
![Page 8: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/8.jpg)
What does a LCMS do ?
● Device Management
● Device Grouping
● Scheduling
● Manufacturer Mgmt
● User Management
● Access Control
● Reports & Analytics
![Page 9: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/9.jpg)
Why are they Used ?
● Control + Automation
● Intelligent scheduling
● Maximise energy
savings
● Comply with Building
& energy regulations
![Page 10: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/10.jpg)
Where are they used ?
● University Campuses
● Hotels
● Industries
● Street lighting
● Any situation where
volume ligting is
implemented
![Page 11: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/11.jpg)
What's a Web & Mobile Company doing in this space ?
the key is to use our existing expertise in new areas of application
![Page 12: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/12.jpg)
Enter Techventures
Enventure Partners + Tekdi Technologies
Hardware + Software
![Page 13: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/13.jpg)
We're looking at making hardware
integrations simpler by bringing web
services into the picture.
Less of embeded programming, more of web
![Page 14: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/14.jpg)
A Little Background
● Replacing Proprietery hardware with Open H/W
solutions
● Replacing Proprietory LCMs built by Billion
![Page 15: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/15.jpg)
Challenges
● Control Thousands of devices
● Support Multiple transport
protocols & formats
● Support new devices &
retrofits
● Extremely light footprint
● Scale as needed
![Page 16: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/16.jpg)
Simplified Representation
HTML5 Browser UI
Application Server
+
Web Services Gateway
Gateway
Gateway
Gateway
DEVICES
![Page 17: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/17.jpg)
BaseArchitecture
Device Drivers ( LED lights/Motors/ Air Conditioning etc)
Device Subnet
LCMS Backend on Joomla FW
LAMP Stack
JSON over XMPP/HTTP
Webservices JSON over XMPP/HTTP
HTML5 Browser UI Mobile App
/resource-id/action/value || ds344/dim/10
JSON over Power line / Wireless/ Zigby/Bluetooth …
ControllerDB
Device GatewayRaspberry Pis
Cloud/Hosted WebserverCurrently Hosted on Pi
#Python
![Page 18: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/18.jpg)
The Blue Box
The Joomla Framework
(Bluebox) is being used as
a Cloud based server that
communicates to several
"gateways"
LCMS Backend on Joomla FW
LAMP Stack
![Page 19: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/19.jpg)
The Green Box
Currently running
Raspberry Pi's for the
gateways running python
among other things for the
application code
Device Subnet
ControllerDB
![Page 20: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/20.jpg)
Multi Gateway
Access Pt
Controller
JSON over Power line / Wireless/ Zigby …
Blue Box
Access Pt
Controller
Access Pt
Controller
Horizontal scaling for volume is achieved by adding more gateways to the network
![Page 21: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/21.jpg)
The Framework App
Joomla Framework
xmpphp package
https://packagist.org/packages/tyrola/xmpphp
bootstrap package
Twig package
![Page 22: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/22.jpg)
APIs with the Framework
● The Framework app
outputs both human
consumable views as well
as Web Services
● Currently we are using
only the Webservices
![Page 23: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/23.jpg)
The App in Action
HTML5 Web App working off Framework Webservices
![Page 24: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/24.jpg)
Polling based Device Discovery
● Imaging you have Building with 1000 lights installed on various
floors
● Auto Discovery via polling lets the system 'auto discover' devices
connected to that g/w
![Page 25: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/25.jpg)
Discover available services
● Discover the services
supported by the devices
via polling
● In case of lights it can be
ON/OFF/DIM
● Depending on device
type this can vary
![Page 26: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/26.jpg)
Group the Devices
● Managing one by Sucks ! Group devices into logical groups
● You can create as many groups as you want & assign devices to groups
● Each device can be in multiple functional groups. - Eg: 1 group per
storey, decorative & functional light groups etc
![Page 27: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/27.jpg)
Scheduling
● Create schedules and
automate
● Schedule for individuals
or groups
● Eg: Dim porch lights at
6am, Turn off porch
lights at 9am.
![Page 28: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/28.jpg)
Override when needed
Each device's state can
also be overridden, which
will override it's state
defined by a schedule.
![Page 29: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/29.jpg)
Device Mapping
Maps Integration for mapping devices
![Page 30: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/30.jpg)
User Management
Manage Users, Grant access, delegate responsobility.
![Page 31: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/31.jpg)
Multiple transport options for G/ws
● Choose to Connect
gateways via different
transport methods
● Choose between XMPP
or COAP
*Constrained Application Protocol (CoAP) is a software protocol intended to be used in very simple electronics devices that allows them to communicate interactively over the Internet.
![Page 32: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/32.jpg)
Device – Asset & Manufacturer mgmt
Makes it easier to manage
devices & warranties as
well as maintainance from
multiple manufactures
with asset management
done via the same unified
system.
![Page 33: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/33.jpg)
Before – > After
![Page 34: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/34.jpg)
A look at the Prototype● Working Prototype hardware with live demo launched !
● Production devices go live very soon !
![Page 35: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/35.jpg)
J! Framework Contributions
● Full CRUD Example with
Add/Edit/List Views &
REST Webservices
● Router that simplifies
RESTful URLs
https://github.com/coolbung/framework-app/tree/FW1.0
![Page 36: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/36.jpg)
What Else ? What Next ?
![Page 37: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/37.jpg)
The Internet of Things (IoT)
● LCMS Is a sub case IoT
● The Infrastructure for LCMS
can be used many many IoT
applications
● The Infrastructure is
completely scalable both
from a hardware & software
perspective
![Page 38: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/38.jpg)
M2M & M2E Communications
The architechture allows
for Machine to machine
connectivity as well as
Machine to Enterprise
communications
![Page 39: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/39.jpg)
Term Glossary
● API - Application Programing Interface
● LCMS - Lighting control Management System
● XMPP - Extensible Messaging and Presence Protocol is a communications
protocol for message oriented middleware base protocol based on
XML(Extensible Markup Language). The protocol was originally named Jabber.
● RPi - Raspberry pi
● COAP - Constrained Application Protocol (CoAP) is a software protocol
intended to be used in very simple electronics devices that allows them to
communicate interactively over the Internet.
![Page 40: Using the Joomla Framework for Internet of Things (IoT) Case for Lighting Control](https://reader033.vdocument.in/reader033/viewer/2022042606/53f156528d7f72a64f8b4622/html5/thumbnails/40.jpg)
Thank You !
● Questions ?
● Interested in an implementation like this or anything that deals with intesting web/mobile/hardware mashups ?
Drop us an email ! [email protected]
Twitter @techjoomla | @parthlawate