SlideShare ist ein Scribd-Unternehmen logo
1 von 42
MILAN 20/21.11.2015
FIWARE Primer
Learn FIWARE in 60 Minutes
Federico M. Facca
CREATE-NET. FIWARE Evangelist
federico.facca@create-net.org, @chicco785 (twitter)
MILAN 20/21.11.2015
FEDERICO M. FACCA
What is FIWARE?
 FIWARE’s offer
• Building blocks
• Platform
• Lab
• Ops
FIWARE’s offer
FIWARE Platform
 An OpenStack-based cloud platform that allows the easy deployment and
composition of FIWARE services to create new applications
FIWARE Lab Nodes
16 FIWARE Lab Nodes
• Currently 16 nodes in Europe providing
up to 3000+ cores, 6TB+ Ram, 750TB+
HD
• 1 node in Mexico providing 1200+ cores
• 1 node in Brazil is being deployed in
these days
…and more to follow!
• Discussions with several European
regions and with Brazil and Chile already
started
• Discussions with other regions and
countries with high potential
• Open Call deadline on 16th November
FIWARE Smart Cities: Santander
7
 Real-time open data coming from large
deployment of sensors (4500 IoT
devices, 150 mobile sensor units, 2500
RFIDs) offered through standard FI-
WARE APIs
 Open data sets captured from sensors
since August 2013 uploaded on Big Data
platform and ready for analysis
 Reference FI-WARE application
examples available (e.g. Management of
Parque de las Llamas public lighting)
60+ cities from 12 countries joined the Open and Agile
Smart Cities (OASC) initative commiting to adopt common
principles:
•Open APIs
•Standard Data Models
•Open Data/APIs publication platform
•Driven by implementation
FIWARE OPS
Deployment
Federation Management
Connectivity Management
Service Offer Management
1
2
3
4
Budget for FIWARE/FIWARE Lab (phases 1 & 2)
126 M€ = (89 + 37) M€
countries
270 150
companiespartners
400 M€ = (300 + 100) M€
Budget (RTD + funding for entrepreneurs)
>1.000
SMEs and start-ups
27
facts
9
Learning the key
FIWARE technology
Where to start from?
12
Common Authorization, Access Control
and Privacy management framework for
all FIWARE GE interfaces
 Authorization, Access Control framework in the
short term
 Privacy Management capabilities to be
integrated next
13
Creating your identity in FIWARE
 Access the Account Portal and click in “Sign Up” option
14
Sending Protected Requests to a
FIWARE Service
 Authentication Example
 GET /GE_URL_path HTTP/1.1
Host: GE_hostname
X-Auth-Token: access_token
 Secure your backend
 Install PEP Proxy
• git clone https://github.com/ging/fi‐ware-
pep‐proxy.git
• cd fi‐ware‐pep‐proxy/
npm install
• //Hostname to forward authenticated requests
config.app_host = 'www.google.es';
//Port where the HTTP server is running
config.app_port = '80';
• sudo node server
15
Support cloud native applications
development using cutting edge cloud
technologies
16
 OpenStack-based IaaS to provide computing
and storage capacity across multiple data
centers
 Docker-based PaaS to deploy and compose
scalable applications
Deploying FIWARE GEs on the FIWARE
Lab (using a Virtual Machine)
 Launch a GE from the cloud portal
(http://cloud.lab.fiware.org)
• Click on images
• Launch the selected GE
 Configure the VM
• Set flavor
• Set security groups
• Set network
17
Deploying FIWARE GEs on the FIWARE
Lab (using Docker Compose)
 Configure the Lab
• Create a security group “docker-
machine-sg” with ports 2376 and 22
open
• Allocate at least one floating IP to
your project.
• Take a look a the VM images that
are used to when creating a docker
host.
 Set-up docker on your local
workstation
• install docker
$ wget -qO- https://get.docker.com/ | sh
• install docker machine
$ curl -L
https://github.com/docker/machine/releases/download/v0.5.
0/docker-machine_linux-amd64.zip >machine.zip && 
unzip machine.zip &&  rm machine.zip &&  mv docker-
machine* /usr/local/bin
 Set-up a docker machine
• Set Openstack environment variables
>export OS_REGION_NAME='Spain2‘
>export OS_TENANT_NAME='john-smith cloud'
>export OS_USERNAME='jsmith@gmail.com''
>export OS_PASSWORD='secret''
>export OS_AUTH_URL='http://cloud.lab.fi-ware.org:4730/v2.0/'
>export OS_AUTH_STRATEGY='keystone‘
• Create docker machine
>docker-machine create -d openstack --openstack-flavor-id="2" --
openstack-image-name="Ubuntu Server 14.04.1 (x64)" --
openstack-net-name="node-int-net-01" --openstack-floatingip-
pool="public-ext-net-01" --openstack-sec-groups="docker-
machine-sg" docker-host
 Launch composition
• Describe docker-compose.yml
mongo:
image: mongo:2.6
command: --smallfiles
orion:
image: fiware/orion
links:
- mongo
ports:
- ":1026“
command: -dbhost mongo
• Deploy composition
>docker-compose up –d18
NGSI: the SNMP of the Internet of Things
 Measures as values of attributes characterizing
context entities
 Just need to change the value of an attribute to
trigger an action on a device
19
Playing with Context information 1
 Updating context
POST <cb_host>:<cb_port>/v1/contextEntities/type/Rating/id/LeBistro::Client1234 {
"attributes" : [{
"name" : "score",
"type" : "integer",
"value" : "4" } ]
}
 Querying a context
GET <cb_host>:<cb_port>/v1/contextEntities/type/Restaurant/id/LeBistro
//getting a JSON response such as the following one:
{ "contextElement":
{ "attributes": [ {
"name": "name",
"type": "string",
"value": "Le Bistro" },…],
},
"statusCode": { "code": "200", "reasonPhrase": "OK" }
}
20
Playing with Context information 2
 Subscribe to context changes
POST <cb_host>:<cb_port>/v1/subscribeContext
{
"entities": [
{
"type": "Rating",
"isPattern": "true",
"id": ".*"
} ],
"attributes": [ "score" ],
"reference": "http://backend.niceeating.foo.com:1028/ratings",
"duration": "P1M",
"notifyConditions": [
{ "type": "ONCHANGE", "condValues": [ "score" ] }
]
}
21
IoT: Plug, Configure & Play
22
 Connection of devices supporting most popular
protocols (MQTT, CoAP, …) should just imply to
plug, configure & play
 Provide a framework that eases the
incorporation of new protocols
Playing with IoT devices 1
 Create an IDAS Service
POST
<idas_host>:<idas_port>/iot/services
Headers: {'content-type':
'application/json’; 'X-Auth-Token' :
[TOKEN]; "Fiware-Service:
OpenIoT”; "Fiware-ServicePath: /"}
Payload:
{
"services": [
{ "apikey":
"4jggokgpepnvsb2uv4s40d59ov",
"token": "token2",
"cbroker":
"http://0.0.0.0:1026",
"entity_type": "thing",
"resource": "/iot/d" }
]
}
 Register your IoT device
• POST
<idas_host>:<idas_port>/iot/devices
Headers: …
Payload:
{
"devices": [
{
"device_id": ”[DEV_ID]",
"entity_name": ”[ENTITY_ID]",
"entity_type": "thing",
“timezone": ”Europe/Madrid",
"attributes": [
{
"object_id": "t",
"name": "temperature",
"type": "int“
} ],
"static_attributes": …
}
]}23
Playing with IoT devices 2
 Send Observations related to
your IoT device
• POST <idas_host>:
<idas_port>/d?k= <apikey>&i=
<device_ID
Headers:
{
'content-type': 'application/text’;
'X-Auth-Token' : [TOKEN];
"Fiware-Service: OpenIoT”;
"Fiware-ServicePath: /“
}
Payload: ‘ t|25‘
 Reading measurements sent by
your IoT device
• GET
<cb_host>:<cb_port>/v1/contextEntit
ies/type/thing/id/[ENTITY_ID]
24
Powerful framework for publication of
datasets and APIs
 Leveraging on CKAN (welcome on board !)
 Support to self-publication by third parties
 Integration with FIWARE Store GE in order to
support how access rights are obtained by users
25
Publish Open Data Sets in the FIWARE Data portal
(http://data.lab.fiware.org)
 Add Dataset
 Provide basic information
 Upload data
 Provide metadata
26
Integration of FIWARE Advanced Web-based
User Interface GEs with NGSI
 Shared Context Information
 End-to-End connection from UI to IoT resources
27
Develop Interactive applications
28
A reference FIWARE Cloud
Native App Architecture
 Cloud Patterns
 Cloud Patterns in FIWARE
Let’s start from the basic:
cattle and pets
30
Cloud Native Applications Legacy Applications
Let’s bring in a couple more
of cloud patterns
 Horizontal Auto-Scaling Pattern  Queue Centric Workflow Pattern
31
Let’s mix them with a couple of
FIWARE ingredients
32
Queue Centric Workflow
(HA Orion Context Broker)
Auto-scaling front-end
(consumers)
Workers
(consumers/
producers)
CDN
(Object
Storage)
NGSI
NGSI
Find out more
 Example Apps
 FIWARE Catalogue
 FIWARE University
 FIWARE ASK
 #MYFIWARESTORY
Example Apps
 SmallSignals  FoneSense
34
FIWARE Catalogue
(http://catalogue.fiware.org)
35
FIWARE University
(http://edu.fiware.org)
36
FIWARE ASK (http://ask.fiware.org)
37
#MYFIWARESTORY
Which is yours?
38
Don’t miss the Lab Session this afternoon!
Be aware!!! Build a Context
Aware Application using FIWARE
Presented by Attilio Broglio
Room BL27.0.6
14:10 - 16:00
http://fiware.org
http://lab.fiware.org
Follow @Fiware on Twitter !
Join us!
MILAN 20/21.11.2015 - SPEAKER’S NAME
Leave your feedback on Joind.in!
https://m.joind.in/event/codemotion-milan-2015

Weitere ähnliche Inhalte

Was ist angesagt?

Context Information Management in IoT enabled smart systems - the basics
Context Information Management in IoT enabled smart systems - the basicsContext Information Management in IoT enabled smart systems - the basics
Context Information Management in IoT enabled smart systems - the basicsFernando Lopez Aguilar
 
FIWARE Developers Week_FIWARE IoT: Beginner's tutorial_conference
 FIWARE Developers Week_FIWARE IoT: Beginner's tutorial_conference FIWARE Developers Week_FIWARE IoT: Beginner's tutorial_conference
FIWARE Developers Week_FIWARE IoT: Beginner's tutorial_conferenceFIWARE
 
FI-WARE Basic Guide
FI-WARE Basic GuideFI-WARE Basic Guide
FI-WARE Basic GuideFIWARE
 
Cosmos, Big Data GE implementation in FIWARE
Cosmos, Big Data GE implementation in FIWARECosmos, Big Data GE implementation in FIWARE
Cosmos, Big Data GE implementation in FIWAREFernando Lopez Aguilar
 
FIWARE Developers Week_IoT basic exercises
FIWARE Developers Week_IoT basic exercisesFIWARE Developers Week_IoT basic exercises
FIWARE Developers Week_IoT basic exercisesFIWARE
 
A Complete IoT Backend Infrastructure in FIWARE
A Complete IoT Backend Infrastructure in FIWAREA Complete IoT Backend Infrastructure in FIWARE
A Complete IoT Backend Infrastructure in FIWAREFIWARE
 
FIWARE IoT Proposal & Community
FIWARE IoT Proposal & CommunityFIWARE IoT Proposal & Community
FIWARE IoT Proposal & CommunityFIWARE
 
FIWARE Developers Week_BootcampWeBUI_presentation1
FIWARE Developers Week_BootcampWeBUI_presentation1FIWARE Developers Week_BootcampWeBUI_presentation1
FIWARE Developers Week_BootcampWeBUI_presentation1FIWARE
 
Developing an IoT System FIWARE Based from the Scratch
Developing an IoT System FIWARE Based from the ScratchDeveloping an IoT System FIWARE Based from the Scratch
Developing an IoT System FIWARE Based from the ScratchFIWARE
 
Fiware Developers Week Iot exercises (Advanced)
Fiware Developers Week Iot exercises (Advanced)Fiware Developers Week Iot exercises (Advanced)
Fiware Developers Week Iot exercises (Advanced)dmoranj
 
Orion Context Broker webminar 2014 01-22
Orion Context Broker webminar 2014 01-22Orion Context Broker webminar 2014 01-22
Orion Context Broker webminar 2014 01-22Fermin Galan
 
FIWARE Overview of Generic Enablers
FIWARE Overview of Generic EnablersFIWARE Overview of Generic Enablers
FIWARE Overview of Generic EnablersMiguel González
 
Fiware io t_ul20_cpbr8
Fiware io t_ul20_cpbr8Fiware io t_ul20_cpbr8
Fiware io t_ul20_cpbr8FIWARE
 
Setting up your virtual infrastructure using FIWARE Lab Cloud
Setting up your virtual infrastructure using FIWARE Lab CloudSetting up your virtual infrastructure using FIWARE Lab Cloud
Setting up your virtual infrastructure using FIWARE Lab CloudFernando Lopez Aguilar
 
FIWARE: Managing Context Information at large scale
FIWARE: Managing Context Information at large scaleFIWARE: Managing Context Information at large scale
FIWARE: Managing Context Information at large scaleFermin Galan
 

Was ist angesagt? (20)

Context Information Management in IoT enabled smart systems - the basics
Context Information Management in IoT enabled smart systems - the basicsContext Information Management in IoT enabled smart systems - the basics
Context Information Management in IoT enabled smart systems - the basics
 
FIWARE Developers Week_FIWARE IoT: Beginner's tutorial_conference
 FIWARE Developers Week_FIWARE IoT: Beginner's tutorial_conference FIWARE Developers Week_FIWARE IoT: Beginner's tutorial_conference
FIWARE Developers Week_FIWARE IoT: Beginner's tutorial_conference
 
FIWARE Internet of Things
FIWARE Internet of ThingsFIWARE Internet of Things
FIWARE Internet of Things
 
FI-WARE Basic Guide
FI-WARE Basic GuideFI-WARE Basic Guide
FI-WARE Basic Guide
 
Fiware, the future internet
Fiware, the future internetFiware, the future internet
Fiware, the future internet
 
Cosmos, Big Data GE implementation in FIWARE
Cosmos, Big Data GE implementation in FIWARECosmos, Big Data GE implementation in FIWARE
Cosmos, Big Data GE implementation in FIWARE
 
Introduction to FIWARE Open Ecosystem
Introduction to FIWARE Open EcosystemIntroduction to FIWARE Open Ecosystem
Introduction to FIWARE Open Ecosystem
 
FIWARE Developers Week_IoT basic exercises
FIWARE Developers Week_IoT basic exercisesFIWARE Developers Week_IoT basic exercises
FIWARE Developers Week_IoT basic exercises
 
A Complete IoT Backend Infrastructure in FIWARE
A Complete IoT Backend Infrastructure in FIWAREA Complete IoT Backend Infrastructure in FIWARE
A Complete IoT Backend Infrastructure in FIWARE
 
FIWARE IoT Proposal & Community
FIWARE IoT Proposal & CommunityFIWARE IoT Proposal & Community
FIWARE IoT Proposal & Community
 
FIWARE Developers Week_BootcampWeBUI_presentation1
FIWARE Developers Week_BootcampWeBUI_presentation1FIWARE Developers Week_BootcampWeBUI_presentation1
FIWARE Developers Week_BootcampWeBUI_presentation1
 
Developing an IoT System FIWARE Based from the Scratch
Developing an IoT System FIWARE Based from the ScratchDeveloping an IoT System FIWARE Based from the Scratch
Developing an IoT System FIWARE Based from the Scratch
 
Fiware Developers Week Iot exercises (Advanced)
Fiware Developers Week Iot exercises (Advanced)Fiware Developers Week Iot exercises (Advanced)
Fiware Developers Week Iot exercises (Advanced)
 
Orion Context Broker webminar 2014 01-22
Orion Context Broker webminar 2014 01-22Orion Context Broker webminar 2014 01-22
Orion Context Broker webminar 2014 01-22
 
Fiware, the future internet
Fiware, the future internetFiware, the future internet
Fiware, the future internet
 
FIWARE IoT Introduction 1
FIWARE IoT Introduction 1FIWARE IoT Introduction 1
FIWARE IoT Introduction 1
 
FIWARE Overview of Generic Enablers
FIWARE Overview of Generic EnablersFIWARE Overview of Generic Enablers
FIWARE Overview of Generic Enablers
 
Fiware io t_ul20_cpbr8
Fiware io t_ul20_cpbr8Fiware io t_ul20_cpbr8
Fiware io t_ul20_cpbr8
 
Setting up your virtual infrastructure using FIWARE Lab Cloud
Setting up your virtual infrastructure using FIWARE Lab CloudSetting up your virtual infrastructure using FIWARE Lab Cloud
Setting up your virtual infrastructure using FIWARE Lab Cloud
 
FIWARE: Managing Context Information at large scale
FIWARE: Managing Context Information at large scaleFIWARE: Managing Context Information at large scale
FIWARE: Managing Context Information at large scale
 

Ähnlich wie FIWARE Primer - Learn FIWARE in 60 Minutes

Interoute Virtual Data Centre api 101
Interoute Virtual Data Centre api 101Interoute Virtual Data Centre api 101
Interoute Virtual Data Centre api 101jon_graham1977
 
Eclipse Kura Shoot a-pi
Eclipse Kura Shoot a-piEclipse Kura Shoot a-pi
Eclipse Kura Shoot a-piEclipse Kura
 
Fiware IoT Proposal & Community
Fiware IoT Proposal & Community Fiware IoT Proposal & Community
Fiware IoT Proposal & Community TIDChile
 
how to use openstack api
how to use openstack apihow to use openstack api
how to use openstack apiLiang Bo
 
Citrix Octoblu Architecture Breakdown
Citrix Octoblu Architecture BreakdownCitrix Octoblu Architecture Breakdown
Citrix Octoblu Architecture BreakdownJohn Moody
 
Dockercon eu tour 2015 - Devoxx Casablanca
Dockercon eu tour 2015 - Devoxx CasablancaDockercon eu tour 2015 - Devoxx Casablanca
Dockercon eu tour 2015 - Devoxx CasablancaMichel Courtine
 
Red Hat and kubernetes: awesome stuff coming your way
Red Hat and kubernetes:  awesome stuff coming your wayRed Hat and kubernetes:  awesome stuff coming your way
Red Hat and kubernetes: awesome stuff coming your wayJohannes Brännström
 
RoR Workshop - Web applications hacking - Ruby on Rails example
RoR Workshop - Web applications hacking - Ruby on Rails exampleRoR Workshop - Web applications hacking - Ruby on Rails example
RoR Workshop - Web applications hacking - Ruby on Rails exampleRailwaymen
 
Kube con china_2019_7 missing factors for your production-quality 12-factor apps
Kube con china_2019_7 missing factors for your production-quality 12-factor appsKube con china_2019_7 missing factors for your production-quality 12-factor apps
Kube con china_2019_7 missing factors for your production-quality 12-factor appsShikha Srivastava
 
Building Your Own IoT Platform using FIWARE GEis
Building Your Own IoT Platform using FIWARE GEisBuilding Your Own IoT Platform using FIWARE GEis
Building Your Own IoT Platform using FIWARE GEisFIWARE
 
Devnet 1005 Getting Started with OpenStack
Devnet 1005 Getting Started with OpenStackDevnet 1005 Getting Started with OpenStack
Devnet 1005 Getting Started with OpenStackCisco DevNet
 
Codetainer: a Docker-based browser code 'sandbox'
Codetainer: a Docker-based browser code 'sandbox'Codetainer: a Docker-based browser code 'sandbox'
Codetainer: a Docker-based browser code 'sandbox'Jen Andre
 
Using Data Science & Serverless Python to find apartment in Toronto
Using Data Science & Serverless Python to find apartment in TorontoUsing Data Science & Serverless Python to find apartment in Toronto
Using Data Science & Serverless Python to find apartment in TorontoDaniel Zivkovic
 
FIWARE Wednesday Webinars - How to Debug IoT Agents
FIWARE Wednesday Webinars - How to Debug IoT AgentsFIWARE Wednesday Webinars - How to Debug IoT Agents
FIWARE Wednesday Webinars - How to Debug IoT AgentsFIWARE
 
Introduction to Things board (An Open Source IoT Cloud Platform)
Introduction to Things board (An Open Source IoT Cloud Platform)Introduction to Things board (An Open Source IoT Cloud Platform)
Introduction to Things board (An Open Source IoT Cloud Platform)Amarjeetsingh Thakur
 
Build A Cloud Day London - Introduction
Build A Cloud Day London - IntroductionBuild A Cloud Day London - Introduction
Build A Cloud Day London - IntroductionShapeBlue
 
PowerShell: A Language for the Internet of Things #ATLPUG
PowerShell: A Language for the Internet of Things #ATLPUGPowerShell: A Language for the Internet of Things #ATLPUG
PowerShell: A Language for the Internet of Things #ATLPUGTaylor Riggan
 
Docker Orchestration: Welcome to the Jungle! JavaOne 2015
Docker Orchestration: Welcome to the Jungle! JavaOne 2015Docker Orchestration: Welcome to the Jungle! JavaOne 2015
Docker Orchestration: Welcome to the Jungle! JavaOne 2015Patrick Chanezon
 

Ähnlich wie FIWARE Primer - Learn FIWARE in 60 Minutes (20)

Fiware cloud developers week brussels
Fiware cloud developers week brusselsFiware cloud developers week brussels
Fiware cloud developers week brussels
 
Interoute Virtual Data Centre api 101
Interoute Virtual Data Centre api 101Interoute Virtual Data Centre api 101
Interoute Virtual Data Centre api 101
 
citus™ iot ecosystem
citus™ iot ecosystemcitus™ iot ecosystem
citus™ iot ecosystem
 
Eclipse Kura Shoot a-pi
Eclipse Kura Shoot a-piEclipse Kura Shoot a-pi
Eclipse Kura Shoot a-pi
 
Fiware IoT Proposal & Community
Fiware IoT Proposal & Community Fiware IoT Proposal & Community
Fiware IoT Proposal & Community
 
how to use openstack api
how to use openstack apihow to use openstack api
how to use openstack api
 
Citrix Octoblu Architecture Breakdown
Citrix Octoblu Architecture BreakdownCitrix Octoblu Architecture Breakdown
Citrix Octoblu Architecture Breakdown
 
Dockercon eu tour 2015 - Devoxx Casablanca
Dockercon eu tour 2015 - Devoxx CasablancaDockercon eu tour 2015 - Devoxx Casablanca
Dockercon eu tour 2015 - Devoxx Casablanca
 
Red Hat and kubernetes: awesome stuff coming your way
Red Hat and kubernetes:  awesome stuff coming your wayRed Hat and kubernetes:  awesome stuff coming your way
Red Hat and kubernetes: awesome stuff coming your way
 
RoR Workshop - Web applications hacking - Ruby on Rails example
RoR Workshop - Web applications hacking - Ruby on Rails exampleRoR Workshop - Web applications hacking - Ruby on Rails example
RoR Workshop - Web applications hacking - Ruby on Rails example
 
Kube con china_2019_7 missing factors for your production-quality 12-factor apps
Kube con china_2019_7 missing factors for your production-quality 12-factor appsKube con china_2019_7 missing factors for your production-quality 12-factor apps
Kube con china_2019_7 missing factors for your production-quality 12-factor apps
 
Building Your Own IoT Platform using FIWARE GEis
Building Your Own IoT Platform using FIWARE GEisBuilding Your Own IoT Platform using FIWARE GEis
Building Your Own IoT Platform using FIWARE GEis
 
Devnet 1005 Getting Started with OpenStack
Devnet 1005 Getting Started with OpenStackDevnet 1005 Getting Started with OpenStack
Devnet 1005 Getting Started with OpenStack
 
Codetainer: a Docker-based browser code 'sandbox'
Codetainer: a Docker-based browser code 'sandbox'Codetainer: a Docker-based browser code 'sandbox'
Codetainer: a Docker-based browser code 'sandbox'
 
Using Data Science & Serverless Python to find apartment in Toronto
Using Data Science & Serverless Python to find apartment in TorontoUsing Data Science & Serverless Python to find apartment in Toronto
Using Data Science & Serverless Python to find apartment in Toronto
 
FIWARE Wednesday Webinars - How to Debug IoT Agents
FIWARE Wednesday Webinars - How to Debug IoT AgentsFIWARE Wednesday Webinars - How to Debug IoT Agents
FIWARE Wednesday Webinars - How to Debug IoT Agents
 
Introduction to Things board (An Open Source IoT Cloud Platform)
Introduction to Things board (An Open Source IoT Cloud Platform)Introduction to Things board (An Open Source IoT Cloud Platform)
Introduction to Things board (An Open Source IoT Cloud Platform)
 
Build A Cloud Day London - Introduction
Build A Cloud Day London - IntroductionBuild A Cloud Day London - Introduction
Build A Cloud Day London - Introduction
 
PowerShell: A Language for the Internet of Things #ATLPUG
PowerShell: A Language for the Internet of Things #ATLPUGPowerShell: A Language for the Internet of Things #ATLPUG
PowerShell: A Language for the Internet of Things #ATLPUG
 
Docker Orchestration: Welcome to the Jungle! JavaOne 2015
Docker Orchestration: Welcome to the Jungle! JavaOne 2015Docker Orchestration: Welcome to the Jungle! JavaOne 2015
Docker Orchestration: Welcome to the Jungle! JavaOne 2015
 

Mehr von Federico Michele Facca

Mehr von Federico Michele Facca (16)

Docker Swarm secrets for creating great FIWARE platforms
Docker Swarm secrets for creating great FIWARE platformsDocker Swarm secrets for creating great FIWARE platforms
Docker Swarm secrets for creating great FIWARE platforms
 
FIWARE Data Management in High Availability
FIWARE Data Management in High AvailabilityFIWARE Data Management in High Availability
FIWARE Data Management in High Availability
 
FIWARE Meetup Trento: Latest News
FIWARE Meetup Trento: Latest NewsFIWARE Meetup Trento: Latest News
FIWARE Meetup Trento: Latest News
 
Join FIWARE Lab
Join FIWARE LabJoin FIWARE Lab
Join FIWARE Lab
 
Fiware Overiew - Trento FI-PPP info day
Fiware Overiew - Trento FI-PPP info dayFiware Overiew - Trento FI-PPP info day
Fiware Overiew - Trento FI-PPP info day
 
CommunityCloud4PA
CommunityCloud4PACommunityCloud4PA
CommunityCloud4PA
 
Fi ware, fi-lab e il trentino
Fi ware, fi-lab e il trentinoFi ware, fi-lab e il trentino
Fi ware, fi-lab e il trentino
 
Trento IoT Day: Build IoT apps with FI-WARE, FI-Lab and FI-Ops
Trento IoT Day: Build IoT apps with FI-WARE, FI-Lab and FI-OpsTrento IoT Day: Build IoT apps with FI-WARE, FI-Lab and FI-Ops
Trento IoT Day: Build IoT apps with FI-WARE, FI-Lab and FI-Ops
 
FI Business: Value proposition for cities, access to data and ICT infrastruct...
FI Business: Value proposition for cities, access to data and ICT infrastruct...FI Business: Value proposition for cities, access to data and ICT infrastruct...
FI Business: Value proposition for cities, access to data and ICT infrastruct...
 
XIFI: how we did federate different FI infrastructures
XIFI: how we did federate different FI infrastructuresXIFI: how we did federate different FI infrastructures
XIFI: how we did federate different FI infrastructures
 
Xipi Overview
Xipi OverviewXipi Overview
Xipi Overview
 
Mobicap
MobicapMobicap
Mobicap
 
Infinity Wire Frame
Infinity Wire FrameInfinity Wire Frame
Infinity Wire Frame
 
Infinity's Overview
Infinity's OverviewInfinity's Overview
Infinity's Overview
 
Shape Project Overview
Shape Project OverviewShape Project Overview
Shape Project Overview
 
Silicon Valley Semantic Web Meet Up
Silicon Valley Semantic Web Meet UpSilicon Valley Semantic Web Meet Up
Silicon Valley Semantic Web Meet Up
 

Kürzlich hochgeladen

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 

Kürzlich hochgeladen (20)

Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 

FIWARE Primer - Learn FIWARE in 60 Minutes

  • 1. MILAN 20/21.11.2015 FIWARE Primer Learn FIWARE in 60 Minutes Federico M. Facca CREATE-NET. FIWARE Evangelist federico.facca@create-net.org, @chicco785 (twitter)
  • 3. What is FIWARE?  FIWARE’s offer • Building blocks • Platform • Lab • Ops
  • 5.
  • 6. FIWARE Platform  An OpenStack-based cloud platform that allows the easy deployment and composition of FIWARE services to create new applications
  • 7. FIWARE Lab Nodes 16 FIWARE Lab Nodes • Currently 16 nodes in Europe providing up to 3000+ cores, 6TB+ Ram, 750TB+ HD • 1 node in Mexico providing 1200+ cores • 1 node in Brazil is being deployed in these days …and more to follow! • Discussions with several European regions and with Brazil and Chile already started • Discussions with other regions and countries with high potential • Open Call deadline on 16th November
  • 8. FIWARE Smart Cities: Santander 7  Real-time open data coming from large deployment of sensors (4500 IoT devices, 150 mobile sensor units, 2500 RFIDs) offered through standard FI- WARE APIs  Open data sets captured from sensors since August 2013 uploaded on Big Data platform and ready for analysis  Reference FI-WARE application examples available (e.g. Management of Parque de las Llamas public lighting) 60+ cities from 12 countries joined the Open and Agile Smart Cities (OASC) initative commiting to adopt common principles: •Open APIs •Standard Data Models •Open Data/APIs publication platform •Driven by implementation
  • 9. FIWARE OPS Deployment Federation Management Connectivity Management Service Offer Management 1 2 3 4
  • 10. Budget for FIWARE/FIWARE Lab (phases 1 & 2) 126 M€ = (89 + 37) M€ countries 270 150 companiespartners 400 M€ = (300 + 100) M€ Budget (RTD + funding for entrepreneurs) >1.000 SMEs and start-ups 27 facts 9
  • 11.
  • 13. Where to start from? 12
  • 14. Common Authorization, Access Control and Privacy management framework for all FIWARE GE interfaces  Authorization, Access Control framework in the short term  Privacy Management capabilities to be integrated next 13
  • 15. Creating your identity in FIWARE  Access the Account Portal and click in “Sign Up” option 14
  • 16. Sending Protected Requests to a FIWARE Service  Authentication Example  GET /GE_URL_path HTTP/1.1 Host: GE_hostname X-Auth-Token: access_token  Secure your backend  Install PEP Proxy • git clone https://github.com/ging/fi‐ware- pep‐proxy.git • cd fi‐ware‐pep‐proxy/ npm install • //Hostname to forward authenticated requests config.app_host = 'www.google.es'; //Port where the HTTP server is running config.app_port = '80'; • sudo node server 15
  • 17. Support cloud native applications development using cutting edge cloud technologies 16  OpenStack-based IaaS to provide computing and storage capacity across multiple data centers  Docker-based PaaS to deploy and compose scalable applications
  • 18. Deploying FIWARE GEs on the FIWARE Lab (using a Virtual Machine)  Launch a GE from the cloud portal (http://cloud.lab.fiware.org) • Click on images • Launch the selected GE  Configure the VM • Set flavor • Set security groups • Set network 17
  • 19. Deploying FIWARE GEs on the FIWARE Lab (using Docker Compose)  Configure the Lab • Create a security group “docker- machine-sg” with ports 2376 and 22 open • Allocate at least one floating IP to your project. • Take a look a the VM images that are used to when creating a docker host.  Set-up docker on your local workstation • install docker $ wget -qO- https://get.docker.com/ | sh • install docker machine $ curl -L https://github.com/docker/machine/releases/download/v0.5. 0/docker-machine_linux-amd64.zip >machine.zip && unzip machine.zip && rm machine.zip && mv docker- machine* /usr/local/bin  Set-up a docker machine • Set Openstack environment variables >export OS_REGION_NAME='Spain2‘ >export OS_TENANT_NAME='john-smith cloud' >export OS_USERNAME='jsmith@gmail.com'' >export OS_PASSWORD='secret'' >export OS_AUTH_URL='http://cloud.lab.fi-ware.org:4730/v2.0/' >export OS_AUTH_STRATEGY='keystone‘ • Create docker machine >docker-machine create -d openstack --openstack-flavor-id="2" -- openstack-image-name="Ubuntu Server 14.04.1 (x64)" -- openstack-net-name="node-int-net-01" --openstack-floatingip- pool="public-ext-net-01" --openstack-sec-groups="docker- machine-sg" docker-host  Launch composition • Describe docker-compose.yml mongo: image: mongo:2.6 command: --smallfiles orion: image: fiware/orion links: - mongo ports: - ":1026“ command: -dbhost mongo • Deploy composition >docker-compose up –d18
  • 20. NGSI: the SNMP of the Internet of Things  Measures as values of attributes characterizing context entities  Just need to change the value of an attribute to trigger an action on a device 19
  • 21. Playing with Context information 1  Updating context POST <cb_host>:<cb_port>/v1/contextEntities/type/Rating/id/LeBistro::Client1234 { "attributes" : [{ "name" : "score", "type" : "integer", "value" : "4" } ] }  Querying a context GET <cb_host>:<cb_port>/v1/contextEntities/type/Restaurant/id/LeBistro //getting a JSON response such as the following one: { "contextElement": { "attributes": [ { "name": "name", "type": "string", "value": "Le Bistro" },…], }, "statusCode": { "code": "200", "reasonPhrase": "OK" } } 20
  • 22. Playing with Context information 2  Subscribe to context changes POST <cb_host>:<cb_port>/v1/subscribeContext { "entities": [ { "type": "Rating", "isPattern": "true", "id": ".*" } ], "attributes": [ "score" ], "reference": "http://backend.niceeating.foo.com:1028/ratings", "duration": "P1M", "notifyConditions": [ { "type": "ONCHANGE", "condValues": [ "score" ] } ] } 21
  • 23. IoT: Plug, Configure & Play 22  Connection of devices supporting most popular protocols (MQTT, CoAP, …) should just imply to plug, configure & play  Provide a framework that eases the incorporation of new protocols
  • 24. Playing with IoT devices 1  Create an IDAS Service POST <idas_host>:<idas_port>/iot/services Headers: {'content-type': 'application/json’; 'X-Auth-Token' : [TOKEN]; "Fiware-Service: OpenIoT”; "Fiware-ServicePath: /"} Payload: { "services": [ { "apikey": "4jggokgpepnvsb2uv4s40d59ov", "token": "token2", "cbroker": "http://0.0.0.0:1026", "entity_type": "thing", "resource": "/iot/d" } ] }  Register your IoT device • POST <idas_host>:<idas_port>/iot/devices Headers: … Payload: { "devices": [ { "device_id": ”[DEV_ID]", "entity_name": ”[ENTITY_ID]", "entity_type": "thing", “timezone": ”Europe/Madrid", "attributes": [ { "object_id": "t", "name": "temperature", "type": "int“ } ], "static_attributes": … } ]}23
  • 25. Playing with IoT devices 2  Send Observations related to your IoT device • POST <idas_host>: <idas_port>/d?k= <apikey>&i= <device_ID Headers: { 'content-type': 'application/text’; 'X-Auth-Token' : [TOKEN]; "Fiware-Service: OpenIoT”; "Fiware-ServicePath: /“ } Payload: ‘ t|25‘  Reading measurements sent by your IoT device • GET <cb_host>:<cb_port>/v1/contextEntit ies/type/thing/id/[ENTITY_ID] 24
  • 26. Powerful framework for publication of datasets and APIs  Leveraging on CKAN (welcome on board !)  Support to self-publication by third parties  Integration with FIWARE Store GE in order to support how access rights are obtained by users 25
  • 27. Publish Open Data Sets in the FIWARE Data portal (http://data.lab.fiware.org)  Add Dataset  Provide basic information  Upload data  Provide metadata 26
  • 28. Integration of FIWARE Advanced Web-based User Interface GEs with NGSI  Shared Context Information  End-to-End connection from UI to IoT resources 27
  • 30. A reference FIWARE Cloud Native App Architecture  Cloud Patterns  Cloud Patterns in FIWARE
  • 31. Let’s start from the basic: cattle and pets 30 Cloud Native Applications Legacy Applications
  • 32. Let’s bring in a couple more of cloud patterns  Horizontal Auto-Scaling Pattern  Queue Centric Workflow Pattern 31
  • 33. Let’s mix them with a couple of FIWARE ingredients 32 Queue Centric Workflow (HA Orion Context Broker) Auto-scaling front-end (consumers) Workers (consumers/ producers) CDN (Object Storage) NGSI NGSI
  • 34. Find out more  Example Apps  FIWARE Catalogue  FIWARE University  FIWARE ASK  #MYFIWARESTORY
  • 35. Example Apps  SmallSignals  FoneSense 34
  • 40. Don’t miss the Lab Session this afternoon! Be aware!!! Build a Context Aware Application using FIWARE Presented by Attilio Broglio Room BL27.0.6 14:10 - 16:00
  • 42. MILAN 20/21.11.2015 - SPEAKER’S NAME Leave your feedback on Joind.in! https://m.joind.in/event/codemotion-milan-2015

Hinweis der Redaktion

  1. Highlight role of FIWARE Lab in the picture: - The Lab is not only cloud hosting, is an ecosystem, while users may not care much if their App is in Italy or Spain, having a node in your Region help you to learn the technology and get direct interaction with users Highlight role of FIWARE Ops: - We also have a set of tools to support operations, included automated deployment
  2. So what you get when deploying a FIWARE Lab node? Access for your users to all the building blocks Generic Enablers are automatically installed on nodes
  3. -> Recall customization of some elements of OpenStack (which it is the meaning of the cloud bullet across fiware and openstack)
  4. How it looks today FIWARE Lab?
  5. Old stuff but we haven’t work out the new one. Action on this.
  6. [DEV_ID] the device identifier at IDAS. [ENTITY_ID] the entity ID to be used at the ContextBroker will be “thing:[ENTITY_ID]” "attributes" they should include an alias (a letter representing this attribute).  "static_attributes" only if your device needs to define static attributes (sent in every observation)