Posts in IOT PLATFORM

Create Your First IoT Application by Connecting Raspberry Pi to FAVORIOT Platform

April 30th, 2017 Posted by IOT PLATFORM, TIPS 0 thoughts on “Create Your First IoT Application by Connecting Raspberry Pi to FAVORIOT Platform”

Magazine Favoriot-9.pngThis section provides tutorials on connecting Raspberry Pi to FAVORIOT platform.

code for creating a data stream

import requests
import json

url = "https://api.favoriot.com/v1/streams"
payload = json.dumps({
  "device_developer_id": "deviceDefault@favoriot.iot",
  "data": {"temp":"14"}
})
headers = {
    "apikey": "YOUR API KEY HERE",
    "content-type": "application/json",
    "cache-control": "no-cache",
    }

response = requests.request("POST", url, headers=headers, data=payload)
parsed = json.loads(response.text)
print json.dumps(parsed, indent=4, sort_keys=True)

code for getting all data stream

import requests
import json

url = "https://api.favoriot.com/v1/streams"
headers = {
    "apikey": "YOUR API KEY HERE",
    "content-type": "application/json",
    "cache-control": "no-cache"
    }
response = requests.request("GET", url, headers=headers)
parsed = json.loads(response.text)
print json.dumps(parsed, indent=4, sort_keys=True)

Raspbian comes preloaded with Python, the official programming language of the Raspberry Pi and IDLE 3, a Python Integrated Development Environment. We’re going to show you now how to get started with Raspberry Pi using Python to connect to our FAVORIOT platform.

You can use Raspberry Pi as IoT device by connecting sensors to it, or it can be used as IoT Gateway.

Replace the indevice_developer_id in the payload with your device name. Follow the syntax as given inside the payload.

import request is used to enable HTTPrequest from python. You install this library by running the command pip install request in the terminal.

import json is used to format the JSON response received from FAVORIOT and prepare the JSON data to be sent to the FAVORIOT platform.

If you are interested in becoming a Beta Developer, please send email to info@favoriot.com

If you are having trouble with connecting your device to our platform please contact us at support@favoriot.com.

Full documentation and technical tutorial – HERE.

Introduction to FAVORIOT Middleware Platform

April 30th, 2017 Posted by IOT PLATFORM, TIPS 19 thoughts on “Introduction to FAVORIOT Middleware Platform”

Overview

Internet of Things development is a complex effort. It will be a long journey job and time consuming if one have to develop it from scratch. IoT Middleware platforms offer a jumping-off point by combining many of the tools needed to manage a deployment of device management to data consumption into one service.

FAVORIOT is a middleware platform specifically designed for any the Internet of Things (IoT) and Machine to Machine (M2M) project. The platform is developed to support the integration of data from several sensors and actuators into the internet. Collecting and storing data from IOT devices become much easier. Moreover, the platform also helps developers in building vertical applications. By using the platform, the developer does not need to worry about hosting.

FAVORIOT enables the devices to push the data to the FAVORIOT middleware platform using its REST API. The external application can also pull the data from FAVORIOT middleware platform using REST API.

Components of FAVORIOT

Favoriot building block
Figure 1:  The Building Blocks of FAVORIOT Middleware Platform

As shown in figure 1 above, the FAVORIOT IOT Middleware consists of several building blocks:

  • Device Connectivity – Brings different protocols and different data format into one Application Programming Interface (API) ensuring accurate data streaming and interaction with all devices.
  • Device Management – To ensures the connected “things” are working properly. We create the abstraction of the physical devices in IOT realms within the IOT middleware
  • Scalable Database – Scalable storage of device data brings the requirements for hybrid cloud-based databases to a new level in terms of data volume, variety, velocity and veracity
  • Business Logic – Brings data to life with rule-based event-action-triggers.
  • Notification Engine – Combining business logic with notification engine enable execution of “smart” actions based on specific sensor data.
  • Dashboarding – Enables users to see patterns and observe trends from visualization dashboards where data is vividly portrayed through various type of charts.
  • Application Integration Interface – APIs that act as interfaces for third party systems.
  • Security Modul – All interaction with the IOT Middleware are secured via HTTP/TLS protocol.

How Does it Work?

Architecture
Figure 2:  The role of FAVORIOT IOT Middleware in an IOT Project

  • Connect Your IOT Device
    • Connect any type of device (Arduino, Raspberry Pi, Libelium)
    • And start your Internet of Things project with FAVORIOT middleware
  • Collecting Data
    • User our HTTP RESTful API to push JSON data generated by your device
    • Simple Data Structure
    • Secure: API Keys and HTTPS Connection
    • We store your data in our Scalable Big Data Storage.
  • Manage Devices and Data
    • Interact with your devices and data from FAVORIOT middleware.
    • Define your business logic through our RULE-BASED Engine.
    • Set Notification Action upon defining business logic.
  • Build your Application
    • Consume your data within FAVORIOT Platform using HTTPS PULL API.
    • Build your Own Application based on data pull from FAVORIOT (Visualization, Dashboarding, etc.).
    • Focus on your apps and let us carry the systems, security, and communications
    • Save development time
    • Let us take care of IT infrastructure cost, problems, and scalability for your IOT Project.

FAVORIOT Hierarchy

The device is a central entity in FAVORIOT. It is used to represent the physical devices in IOT realms within the IOT middleware. Hence the data from produced by devices can be aggregated easily. However, in FAVORIOT, IOT device and its data are managed and structured hierarchically.

  • Hierarchically, Entities such as Project, Application, Groups are used to group and structure the devices.
  • Data is associated with the stream/information produced by physical devices.
  • Rules can be defined to perform a certain action to events that raises in a device.

Malaysia Needs 100K IoT Professionals to Complement the Big Data Workforce

April 18th, 2017 Posted by IOT PLATFORM 0 thoughts on “Malaysia Needs 100K IoT Professionals to Complement the Big Data Workforce”
artificial-intelligence-2167835_1920.jpg

Don’t forget to train the rest of the IoT value chain

If Malaysia’s Asean Data Analytics Exchange (ADAX) aims to produce 20,000 data professionals (10% of them data scientists) by 2020, having already produced 1,000 data professionals and 200 data scientists last year, how many IoT professionals must Malaysia produce to support that number?

If we look at the IoT value chain, we must consider the people working in the areas of the chipset, devices, middleware (cloud), system integration and applications and if assume one professional per area, we need 5 people (minimum) to support 1 data professional. That will add up to 100K IoT professionals to be trained by 2020. It looks like a realistic figure, but how many of them will be from the University. Let’s assume 10 local universities in Malaysia are focusing on training this 100K, it will be around 10K for the next 3 years?

Thus, while we are so hyped up with the number of data professionals, we shouldn’t forget the rest of the value chain that’s responsible for developing new products, connecting the devices, collecting data and build IoT applications. Without them, we simply can’t turn Malaysia into an IoT hub for the Region.

However, Universities can’t be the only ones that shoulder the responsibilities of producing IoT professionals. We must also train the professionals that are already working now.

About the Author

Dr. Mazlan Abbas is currently the Co-Founder and CEO of FAVORIOT Sdn Bhd. He is an IOT Evangelist and a Thought Leader. He received an award as 50 Most Impactful Smart Cities Leaders by World CSR 2017. He is ranked No. 20th Thought Leader in IOT by 2014 Onalytics Report – “The Internet of Things – Top 100 Thought Leaders”, ranked Top 10 in IoT Top 100 Influencers by Postscapes 2016/2017, ranked Top 100 in Smart Cities Top Experts by Agilience Authority Index May 2016. You can reach him on LinkedIn or Twitter. Check all his presentation slides HERE.

Copyright © 2026 All rights reserved