SlideShare una empresa de Scribd logo
1 de 11
Descargar para leer sin conexión
M2M Labs Tutorial
Snappy Ubuntu Core
+ Juju Charms
+ M2MLabs Application Framework
© M2M labs creating a smart world
Contents
What we will do in the tutorial
What you need to start
The M2MLabs Charm
Define the Application
Snappy Ubuntu device
Look at the received data
© M2M labs creating a smart world
Overview
IoT
Devices
wireless
&
wireline
Snappy Ubuntu
M2MLabs
Framework Application
© M2M labs creating a smart world
What we will do in the Tutorial
Deploy the M2MLabs framework on Amazon Cloud
Deploy a sample application on a Snappy Ubuntu core system
Define the server part of the application on the M2MLabs framework
Start the application and watch it deliver data
Show the data on a graph
Run a sample device that transmits a set of random numbers
to a M2MLabs framework via REST HTTP calls. In the framework
the device is modeled and received device data is stored. An
application then queries the data and shows it on a graph.
© M2M labs creating a smart world
What you need to start
Juju Charms
Install Juju as shown in https://jujucharms.com/docs
Running on a public cloud like Amazon EC2 will require an account
on the cloud platform. Please configure Juju according to your cloud provider
(for Amazon follow the description in https://jujucharms.com/docs/config-aws)
Juju from Canonical allows to install full applications (called
Charms) on a cloud environment with just a few commands.
Snappy Ubuntu Tools
Build and remote deploy of Ubuntu Snappy applications
Install an Ubuntu core device or run it in the cloud as described in
https://developer.ubuntu.com/en/snappy
Install the Ubuntu snappy developer tools as described in
https://developer.ubuntu.com/en/snappy
© M2M labs creating a smart world
The M2MLabs Charm
juju bootstrap
creates the virtual machine running Ubuntu 14
juju deploy cs:~jim2308/trusty/m2mlabs­simple­1
installs the M2MLabs framework, please repeat juju status
until you get status “installed”. This will take 5-10 minutes.
juju expose m2mlabs­simple
opens the port 8080 for the M2MLabs server
juju status
Gives you the public IP address of the M2MLabs server
Open <public ip address>:8080/cs-ws and create the
master apikey
The charm will install a complete
M2MLabs server including the
Apache Cassandra database
and the Glassfish application
Server on the cloud machine.
© M2M labs creating a smart world
Define the application
A sensor model with one attribute called temperature of type number
A device model with one sensor called tcore
Finally a device with any name
We need to create a sensor model, a device model and finally a
Device to receive data from our Snappy Ubuntu device.
In the M2MLabs Admin Gui create:
Instructions to use the Admin Gui can be found in
https://sourceforge.net/p/m2mlabs/wiki/Tutorial
© M2M labs creating a smart world
Snappy Ubuntu device
Download the sample code from
http://sourceforge.net/projects/m2mlabs/files/samples/samples.zip/download
Edit config.txt in samples/snapps/python-m2mlabs-sample/config
and change server url, apikey and device name to your settings
Run “snappy build .” in the samples/snapps/python-m2mlabs-sample directory
Run “snappy-remote –url=ssh://<dev-address> install ./python-m2mlabs-sample_0.1_all.snap”
to perform a remote download to the Ubuntu Core device. You will be asked three times for
the password of the user on your Ubuntu Core device. Please ignore any warnings and errors
during upload.
On the Ubunto Core device run python-m2mlabs-sample.m2mlabs-send
To deploy the Snappy Ubuntu application:
© M2M labs creating a smart world
Look at the received data
The device data panel of the Admin Gui shows the received data sent
from the Ubuntu Core device
© M2M labs creating a smart world
The live view graph
Finally we run a simple graph application that provides a live data view
by querying the M2MLabs framework via REST API on
<server-url>/cs-ws/monitor.html
© M2M labs creating a smart world
Thank you
https://sourceforge.net/p/m2mlabs/wiki/Tutorial
https://sourceforge.net/p/m2mlabs/wiki/Juju
https://sourceforge.net/p/m2mlabs/wiki/UbuntoCoreSample
Thank you
Please find further information on
or contact support@m2mlabs.com

Más contenido relacionado

Similar a Snappy ubuntu+m2m labscharm

Laporan Praktikum Keamanan Siber - Tugas 1 - Kelas C - Kelompok 3.pdf
Laporan Praktikum Keamanan Siber - Tugas 1 - Kelas C - Kelompok 3.pdfLaporan Praktikum Keamanan Siber - Tugas 1 - Kelas C - Kelompok 3.pdf
Laporan Praktikum Keamanan Siber - Tugas 1 - Kelas C - Kelompok 3.pdf
IGedeArieYogantaraSu
 
Cloud Computing With AWS
Cloud Computing With AWSCloud Computing With AWS
Cloud Computing With AWS
Munish Gupta
 

Similar a Snappy ubuntu+m2m labscharm (20)

Cloudsim_openstack_aws_lastunit_bsccs_cloud computing
Cloudsim_openstack_aws_lastunit_bsccs_cloud computingCloudsim_openstack_aws_lastunit_bsccs_cloud computing
Cloudsim_openstack_aws_lastunit_bsccs_cloud computing
 
AWS ML Model Deployment
AWS ML Model DeploymentAWS ML Model Deployment
AWS ML Model Deployment
 
Laporan Praktikum Keamanan Siber - Tugas 1 - Kelas C - Kelompok 3.pdf
Laporan Praktikum Keamanan Siber - Tugas 1 - Kelas C - Kelompok 3.pdfLaporan Praktikum Keamanan Siber - Tugas 1 - Kelas C - Kelompok 3.pdf
Laporan Praktikum Keamanan Siber - Tugas 1 - Kelas C - Kelompok 3.pdf
 
Meteor
MeteorMeteor
Meteor
 
Cloudstack autoscaling
Cloudstack autoscalingCloudstack autoscaling
Cloudstack autoscaling
 
NodeJS : Communication and Round Robin Way
NodeJS : Communication and Round Robin WayNodeJS : Communication and Round Robin Way
NodeJS : Communication and Round Robin Way
 
E2E Services using Cloud Visitation Platforms
E2E Services using Cloud Visitation PlatformsE2E Services using Cloud Visitation Platforms
E2E Services using Cloud Visitation Platforms
 
Build a custom metrics on aws cloud
Build a custom metrics on aws cloudBuild a custom metrics on aws cloud
Build a custom metrics on aws cloud
 
High Performance Computing (HPC) and Engineering Simulations in the Cloud
High Performance Computing (HPC) and Engineering Simulations in the CloudHigh Performance Computing (HPC) and Engineering Simulations in the Cloud
High Performance Computing (HPC) and Engineering Simulations in the Cloud
 
High Performance Computing (HPC) and Engineering Simulations in the Cloud
High Performance Computing (HPC) and Engineering Simulations in the CloudHigh Performance Computing (HPC) and Engineering Simulations in the Cloud
High Performance Computing (HPC) and Engineering Simulations in the Cloud
 
Phil Basford - machine learning at scale with aws sage maker
Phil Basford - machine learning at scale with aws sage makerPhil Basford - machine learning at scale with aws sage maker
Phil Basford - machine learning at scale with aws sage maker
 
Machine learning at scale with aws sage maker
Machine learning at scale with aws sage makerMachine learning at scale with aws sage maker
Machine learning at scale with aws sage maker
 
Cloud Computing With AWS
Cloud Computing With AWSCloud Computing With AWS
Cloud Computing With AWS
 
9. virtualization virtualization
9. virtualization virtualization9. virtualization virtualization
9. virtualization virtualization
 
UDP Report
UDP ReportUDP Report
UDP Report
 
Reactive Application Using METEOR
Reactive Application Using METEORReactive Application Using METEOR
Reactive Application Using METEOR
 
Cloud ppt
Cloud pptCloud ppt
Cloud ppt
 
NodeJS @ ACS
NodeJS @ ACSNodeJS @ ACS
NodeJS @ ACS
 
IP Expo - What is AWS?
IP Expo - What is AWS?IP Expo - What is AWS?
IP Expo - What is AWS?
 
Distributed Services Scheduling and Cloud Provisioning
Distributed Services Scheduling and Cloud ProvisioningDistributed Services Scheduling and Cloud Provisioning
Distributed Services Scheduling and Cloud Provisioning
 

Último

pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
JOHNBEBONYAP1
 
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi EscortsRussian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Monica Sydney
 
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girlsRussian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Monica Sydney
 
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
ydyuyu
 
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
ayvbos
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
ydyuyu
 
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsIndian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Monica Sydney
 
一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理
F
 
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu DhabiAbu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Monica Sydney
 

Último (20)

Mira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
Mira Road Housewife Call Girls 07506202331, Nalasopara Call GirlsMira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
Mira Road Housewife Call Girls 07506202331, Nalasopara Call Girls
 
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdfpdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
pdfcoffee.com_business-ethics-q3m7-pdf-free.pdf
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53
 
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi EscortsRussian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
 
Call girls Service in Ajman 0505086370 Ajman call girls
Call girls Service in Ajman 0505086370 Ajman call girlsCall girls Service in Ajman 0505086370 Ajman call girls
Call girls Service in Ajman 0505086370 Ajman call girls
 
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girlsRussian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
 
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
 
Best SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency DallasBest SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency Dallas
 
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
 
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
一比一原版(Flinders毕业证书)弗林德斯大学毕业证原件一模一样
 
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime NagercoilNagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
 
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency""Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
 
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrStory Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
 
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsIndian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
 
一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理
 
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac RoomVip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
Vip Firozabad Phone 8250092165 Escorts Service At 6k To 30k Along With Ac Room
 
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu DhabiAbu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
 
Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...
Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...
Tadepalligudem Escorts Service Girl ^ 9332606886, WhatsApp Anytime Tadepallig...
 

Snappy ubuntu+m2m labscharm

  • 1. M2M Labs Tutorial Snappy Ubuntu Core + Juju Charms + M2MLabs Application Framework
  • 2. © M2M labs creating a smart world Contents What we will do in the tutorial What you need to start The M2MLabs Charm Define the Application Snappy Ubuntu device Look at the received data
  • 3. © M2M labs creating a smart world Overview IoT Devices wireless & wireline Snappy Ubuntu M2MLabs Framework Application
  • 4. © M2M labs creating a smart world What we will do in the Tutorial Deploy the M2MLabs framework on Amazon Cloud Deploy a sample application on a Snappy Ubuntu core system Define the server part of the application on the M2MLabs framework Start the application and watch it deliver data Show the data on a graph Run a sample device that transmits a set of random numbers to a M2MLabs framework via REST HTTP calls. In the framework the device is modeled and received device data is stored. An application then queries the data and shows it on a graph.
  • 5. © M2M labs creating a smart world What you need to start Juju Charms Install Juju as shown in https://jujucharms.com/docs Running on a public cloud like Amazon EC2 will require an account on the cloud platform. Please configure Juju according to your cloud provider (for Amazon follow the description in https://jujucharms.com/docs/config-aws) Juju from Canonical allows to install full applications (called Charms) on a cloud environment with just a few commands. Snappy Ubuntu Tools Build and remote deploy of Ubuntu Snappy applications Install an Ubuntu core device or run it in the cloud as described in https://developer.ubuntu.com/en/snappy Install the Ubuntu snappy developer tools as described in https://developer.ubuntu.com/en/snappy
  • 6. © M2M labs creating a smart world The M2MLabs Charm juju bootstrap creates the virtual machine running Ubuntu 14 juju deploy cs:~jim2308/trusty/m2mlabs­simple­1 installs the M2MLabs framework, please repeat juju status until you get status “installed”. This will take 5-10 minutes. juju expose m2mlabs­simple opens the port 8080 for the M2MLabs server juju status Gives you the public IP address of the M2MLabs server Open <public ip address>:8080/cs-ws and create the master apikey The charm will install a complete M2MLabs server including the Apache Cassandra database and the Glassfish application Server on the cloud machine.
  • 7. © M2M labs creating a smart world Define the application A sensor model with one attribute called temperature of type number A device model with one sensor called tcore Finally a device with any name We need to create a sensor model, a device model and finally a Device to receive data from our Snappy Ubuntu device. In the M2MLabs Admin Gui create: Instructions to use the Admin Gui can be found in https://sourceforge.net/p/m2mlabs/wiki/Tutorial
  • 8. © M2M labs creating a smart world Snappy Ubuntu device Download the sample code from http://sourceforge.net/projects/m2mlabs/files/samples/samples.zip/download Edit config.txt in samples/snapps/python-m2mlabs-sample/config and change server url, apikey and device name to your settings Run “snappy build .” in the samples/snapps/python-m2mlabs-sample directory Run “snappy-remote –url=ssh://<dev-address> install ./python-m2mlabs-sample_0.1_all.snap” to perform a remote download to the Ubuntu Core device. You will be asked three times for the password of the user on your Ubuntu Core device. Please ignore any warnings and errors during upload. On the Ubunto Core device run python-m2mlabs-sample.m2mlabs-send To deploy the Snappy Ubuntu application:
  • 9. © M2M labs creating a smart world Look at the received data The device data panel of the Admin Gui shows the received data sent from the Ubuntu Core device
  • 10. © M2M labs creating a smart world The live view graph Finally we run a simple graph application that provides a live data view by querying the M2MLabs framework via REST API on <server-url>/cs-ws/monitor.html
  • 11. © M2M labs creating a smart world Thank you https://sourceforge.net/p/m2mlabs/wiki/Tutorial https://sourceforge.net/p/m2mlabs/wiki/Juju https://sourceforge.net/p/m2mlabs/wiki/UbuntoCoreSample Thank you Please find further information on or contact support@m2mlabs.com