Coder Social home page Coder Social logo

fjgarciamac / fiware-edison Goto Github PK

View Code? Open in Web Editor NEW

This project forked from telefonicaid/fiware-edison

0.0 2.0 0.0 358 KB

Edison 2 FIWARE integration examples

License: GNU Affero General Public License v3.0

Arduino 27.35% C++ 13.10% HTML 28.45% JavaScript 16.54% Python 14.56%

fiware-edison's Introduction

Edison 2 FIWARE IoT Stack Integration

## Introduction This repository holds examples about how to persist your Intel Edison sensors data into FIWARE IoT Stack cloud service.

Then, it will show you how to access these data using FIWARE NGSI standard APIs and its multiple connectors with external tools as Freeboard or CartoDB.

First steps on Intel Edison

If you are new with Intel Edison, we recommend you going first to the Intel Edison getting started guide. Also, you can find a lot of examples and tutorials in the Movilforum Intel Edison Hackaton site

What is FIWARE IoT Stack?

FIWARE is an open initiative aiming to create a sustainable ecosystem to grasp the opportunities that will emerge with the new wave of digitalization caused by the integration of recent Internet technologies. Based on this FIWARE technologies, and focused on IoT area, Telefonica created and IoT Platform to help Industrial Partners and Smart Cities building its IoT services.

This FIWARE IoT Stack is also available for independent developers and startups, and will be used in this tutorial to persist your Edison data in the cloud. You can go to its ReadTheDocs to get familiar with it.

NOTE: If you are a hacker participating in the Movilforum Intel Edison Hackaton You can get your FIWARE IoT Stack credentials here

If you are not, contact us and we will give you the steps to get access.

Edison libraries tutorials

In the following examples, we will be using an Intel Edison with the Arduino expansion board, plus the Grove Starter Kit for Arduino to send both Luminosity and Button Sensors to FIWARE IoT Stack, and show both values in several Freeboard web widgets. Please make sure that you've already plugged light sensor into A0 analog input and button Sensor into A1.

There is a huge amount of sensors and actuators in the Grove Starter Kit, so once you are familiar with the example, connect more and get it data in the cloud too!

Arduino IDE

If you are an Arduino lover, this example will be straightforward for you.

Intel XDK IDE (Node.js)

If you prefer programming in Node, this is your tutorial

Eclipse (C++)

For those who priorise optimal coding, go here

Python

Even Python is not given as an option to code your Edison in the official Intel Getting Started Guide, we know you love Python (we too!), so we have also created this Python tutorial

Using FIWARE IoT Stack

You have your Edison sensors data up there in the cloud in FIWARE IoT Stack. So what?

Next step is connecting your applications with FIWARE IoT Stack to access your data and show your magic to the rest of the world.

Step #1: Sign up to get your credentials

You can get your FIWARE IoT Stack credentials at http://edisonhack.ttcloud.net/.

You will receive an email with your API and portal credentials to send data from your Edison and use FIWARE IoT Stack APIs on your App.

Please, in case you have any trouble signing up let us know at [email protected]

Step #2: FIWARE IoT Stack Management Portal

To check your data is correctly sent and stored, first thing is accessing the Management Portal. You can log-in using your given FIWARE user/password. In the "Entities" section (An Entity is a data object representation in FIWARE, so your Edison is represented as an Entity) you will find an Entity called "device:myEdison" with a list of attributes:

  • "l": Your luminosity sensor
  • "p": Your button sensor

If you have connected more sensors to your Edison, they will appear here with the given alias you selected in the Edison code.

If you want to, you can go to "Devices" section to provision a device for your Edison. For example, you could change your Entity ID (setting "home" instead of "device:myEdison" or "luminosity" instead of "l"). Check this guide for more details

Step #3 : Drag&Drop visualizations with Freeboard

If you just need a dashboard (like this one ) to show your sensors data in real time, you can create it using Freeboard without writing a line of code.

Please, read our FIWARE Orion Datasource Freedboard Tutorial if you have any trouble.

Step #4 : Use FIWARE NGSI APIs

If you want to build your own app, with your own code and UX, you are looking for an API, right?.

Integrating external apps is done via NGSI APIs. Here you have a getting started tutorial to start working with these APIs.

fiware-edison's People

Contributors

antoniojoseln avatar adrianrubio avatar luisdel87 avatar joser avatar

Watchers

James Cloos avatar Francisco Javier García Rodríguez avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.