Posts tagged "HOW-TO"

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.

UTM Partners With FAVORIOT to Develop Smart Parking with Automated Double Park Detection System

April 19th, 2017 Posted by HOW-TO, SMARTCITY 0 thoughts on “UTM Partners With FAVORIOT to Develop Smart Parking with Automated Double Park Detection System”

miniature-2212976_1920.jpg

Double Parking Issues

The Smart Partnership

A group of researchers from Advanced Telecommunication Technology Research Group (ATT), Faculty of Electrical Engineering, Universiti Teknologi Malaysia Edward Chan Kam Fai, Gan Yi Reng, Leow Tan Chun Kit and Dr. Kamaludin Mohamad Yusof aims to solve one of the most problematic issues in cities i.e. illegal parking! The researchers also wanted a better way to manage the sensors and develop applications, and thus, they chose FAVORIOT as the IoT platform.

The Issues of Illegal Double Parking

Illegal double parking is one of the primary cause of horrible traffic congestion in many city centers. A visit is conducted from StarMetro to hotspots like Taipan Business Centre, USJ 10, Subang Jaya shows that road user blatantly ignored the No Parking and Towing Zone signboards that aimed to prevent double parking. Although Subang Jaya Municipal Council (MPSJ) has issued a total of 25,270 compound notices at 2012, the problem still hasn’t come to cease. In a report, from World Bank 12th Malaysia Economic Monitor, Malaysian typically motorist in Kuala Lumpur spends more than 250 million hours per year in traffic congestion. Traffic congestion in Kuala Lumpur also cost over RM3,100 per motorist or over 1.1% of national GDP annually for the country. Of course, Malaysia is not sitting idly with respect to this situation.

For example, as Cyberjaya braces for the influx of population by 2018, we need to start resolving current city administration issues for better management of traffic flow. At the same time, the lack of parking space in open and public parking areas within Cyberjaya has resulted in teething congestion problems during peak hours. Lack of enforcement manpower by the local council and growing double parking problems is a common sight within Cyberjaya.  The City Innovation Council is actively discussing and reviewing ways to optimizing innovative technology to resolve teething city problems and increase the quality of life in Cyberjaya.

There are many initiatives by public and even private sectors to cope this problem. Building a robust public transport, encouraging cycling culture and introducing smart traffic light system, these are the efforts to alleviate the situation. Activation of smart social solutions by resolving city administration problems such as double parking using public empowerment, connected things, and communications technology. With more installation of sensors and smarter city applications in place, more opportunities for

We would like to see how technology can be designed to resolve a double parking problem by empowering the public, building management, and local council to cooperate by means of Internet of Things (IoT) or mobile smart devices. With more installation of sensors and smarter city applications in place, more opportunities for the smart city urban public services will be made available.

screenshot_07.jpg

Figure 1.0 Operation Flow of ParkKing

The Solution – ParkKing

This project experiments innovative smart city solutions to improve urban public services. The project aims for the public, building management, and local council to cooperate, by setting up an integrated information platform with multi-source data that works with devices/things that resolve a particular city problem as a service.

The project is called Smart Parking with Automated Double Park Detection System (ParkKing) system with the objective to solve the problem of double parking (Figure 1). Apart from this, ParkKing also helps the drivers to locate the nearest available empty parking lot surround them. This will indirectly avoid the problem of double parking where drivers can find the empty parking nearby and park their vehicles properly.

In existing solution, the car detector is located at the center of the parking lot. However, ParkKing has its car detector sensor located 30cm inside from the boundary of the parking lot as shown in Figure 2. This is so that it can detect whether there is an available parking in the lot or there is a car double-parked outside. Next, there is a transceiver gateway installed at the lamp post which can connect up to 20 car detectors of parking lots. When it detect a presence of a car either it is in the parking lot or double-parked car, it will send the data to the control server of the system. For the drivers, there will be a smartphone application which will locate the nearest empty parking lot. When the ParkKing system detects a double-parked car, it will send to the FAVORIOT platform and notify the authority to tow the vehicle away.

screenshot_06.jpg

Figure 2.0 Placement of the Car Detector Sensor

We believe that the integration of ParkKing system with the existing smart traffic light system and intelligent parking system will bring us a smart management transport system for a smart city.

With the presence of our ParkKing system, we can have an automated double parking detector to ease the management or the local authority of Cyberjaya. Next, we also show the road users in Cyberjaya to the nearest available parking lot available. Thus, they will not simply double-park their car. Besides, after notifying the authority, they can tow the double parked car to warn the drivers and other road users not to double park next time. This is very significant because when there are cars double-parked, it causes traffic congestion. When traffic jam, actually government is spending more money to subsidize the petrol since traffic jam causes a higher petrol consumption.

Future Plans

Apart from what have been mentioned above, we do consider the future development of this project. In future, we can install a camera at the lamp post so that to identify the double-park car’s number plate and match with the data in Jabatan Pengangkutan Jalan Malaysia (JPJ) database using OpenCV for object recognition system. Then, it will send a penalty to the car owner. Besides, we also think of to obtain the car parking data like the period of parking. Typically, customers would want to park at the nearest space to shop. So, to help to reduce the problem of insufficient parking space, we plan to have a car park for those who wish to park extended period and limit the time of parking on the street. This can be done by obtaining the time of parking using our ParkKing system. With this, users will have a better customer experience where they get to find parking easily and bring business opportunity to the shops nearby. In our future plan, we also want to integrate our ParkKing system with an automated parking fee payment system to replace the current parking coupon system. This ParkKing system will also be a liability for the management, but we can generate income by co-operating with the shop or company nearby not only to cover the maintenance fees but become a passive income as well! For future development, this ParkKing system can contribute to traffic flow prediction by using the big data concept. By having traffic flow forecasting, we can definitely have a well thought-out town planning.

FAVORIOT offered a very affordable pricing plan as shown below:

The Beginner Plan is very suitable for University students who have been assigned or chose IoT project as their Final Year Project. A single device such as Raspberry Pi or Arduino that collects from several connected sensors can stream to the IoT platform. A simple dashboard is provided to visualize the measurements. This plan is also suitable for an individual developer or hobbyist that would like to familiarize with IoT platform, conduct self-learning or participate in IoT Hackathons. At RM 8.33 (or less than USD 2.00) per month, you can become the next Generation-IoT and on your way to be one of the rare talents in the job market today!

The Startup Plan is perfect for Freelancers or SMEs or Startups to provide IoT solution for a medium size project up to 150 devices. In fact, they can also create multiple projects or applications but limited to the total number of 150 devices.

The Business Plan is great for developing big commercial IoT project. It can support up to 300 devices for many smart applications.

However, if a company requires connecting thousands of devices, they may contact/email their customized requirements to sales@favoriot.com

screenshot_02.png

CLICK HERE to Subscribe/Request for Quotation.

Check out the COMPLETE Tutorial How to connect an Arduino to FAVORIOT Platform. You can also download a STEP-by-STEP Tutorial –  TUTORIAL – Cytron Uno with FAVORIOT Platform (60 downloads)

FAVORIOT – Here’s How You Can Rule Your IOT Devices!

March 24th, 2017 Posted by IOT PLATFORM 0 thoughts on “FAVORIOT – Here’s How You Can Rule Your IOT Devices!”

screenshot_07.jpg

Where is FAVORIOT in the IOT Value Chain, one might ask? In the diagram above, we can see that not a single player can offer the whole value chain of IoT. Even the big players, either they chose one (or more) of them or partner or acquire other smaller companies to complete their ecosystem.

As stated in the article “Internet of Things – Business Models” written by Mohit Agrawal – “IoT platform is perhaps the most misunderstood terminology in IoT. There are different kinds of IoT platforms like the connectivity/M2M platform (primarily focused on connecting the devices via telecom networks/SIM cards without much focus on analytics or data processing), Hardware specific IoT platform (these types of platforms are most likely the proprietary platforms developed by device vendors, e.g. Nest) and Pure IoT platforms (platforms that have been specifically developed for IoT keeping the scale, standards and requirements in mind). Not all kinds of platforms would have the ability to lead the IoT effort. The winning combination is a platform that offers device management, cloud based storage, analytics, data visualization and ability to integrate with 3rd party systems via API or SDK to be able to take advantage of legacy systems as well as wide variety of other IoT hardware and software.”

FAVORIOT focuses on certain verticals that the team has the most experience and also right ecosystem partners i.e. smart cities and smart health.

More Info about FAVORIOT will be announced in April 2017 – Click LIKE, SHARE, SUBSCRIBE and FOLLOW:

  1. Facebook Page
  2. Twitter
  3. Instagram
  4. Youtube
  5. Website

favorcity-15.png

Copyright © 2024 All rights reserved