Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Code Ultimatum 2016
Game of Codes
Agenda
1. Introduction to Hackathon and Developer Main Journey
2. Introduction to Smart Button
3. Introduction to RPie
4. ...
Introduction to
ISayYouDo MakeAThon
Shafraz Rahim
Objective
Enable your cool crazy
ideas through Dialog
Platforms and Devices
What do you have to use?
1. Dialog Smart Button
2. Dialog Raspberry Pi
3. ISayYouDo Widget Engine
4. Idea Of Things Widget...
What do you have to build?
Build widgets in ISayYouDo you like
which would solve a problem or
create a need using our plat...
What you will get?
1. Three Smart Buttons
2. One Raspberry Pi with a charger and a SD card
3. SDKs, User Guides and Docume...
How does all these stuff connect?
Communication Layer
ISayYouDo IdeaBiz Idea Of Things
Your App
Judging Criteria
1. Concept & Creativity (20)
2. Design (20)
-Technical Design
-UI Design
3. Effective use of smart Button...
Rules and Regulations
1. Judges decision will be final
2. Need to hand over the devices after the hackathon. You can use y...
Dates to remember
• 8th November 2016 – PreHack and Introductory Session
• 15th November 2016 – Submit your idea
• 16th No...
Prizes
• Winner – Rs.125,000 Cash Prize and opportunity to fly to Mobile
World Congress 2017
• 1st runners up – Rs.100,000...
Introduction to Smart Button
Demini Dilhara
A connected device (Wi-Fi), which can
generate an event upon manually
triggering, which can then used to do
anything………
Wh...
Smart Button Developer Journey
Configure Subscribe
Capture the
Event
Button Configuration with Mobile App
1 2 3 4
Only One Ideabiz API to control the Smart Button ..
Provision
Ideabiz API:
Dialog Connected Devices V.1.0
Serial Number
Au...
Sample request for URL provisioning
https://ideabiz.lk/apicall/Dialog_Connected_Devices/v1.0/process
Response
In case you want to change URL, Let Us Know
Introduction to Raspberry Pi
Demini Dilhara
 Make PIN High/Low
 Get Pin Status
 Get Pin Inputs
 Set rules for Interrupts
 Get/Set analog values
Ideabiz API :
Dia...
SDK Capabilities
• Digital GPIO ports (ports 0-27)
1. Make a PIN HIGH/LOW (e.g. Switch ON a Bulb)
2. Get the Output PIN St...
Guidelines for SDK
1. Install Raspbian OS and Python MQTT Library
2. Set Up and Run Dialog Rpi SDK (Instructions will be g...
One Ideabiz API for multiple request handling
https://ideabiz.lk/apicall/Dialog_Connected_Devices/v1.0/process
https://ide...
https://ideabiz.lk/apicall/Dialog_Connected_Devices/v1.0/process
1. Make a Digital PIN HIGH/LOW
2. Get the Input from a Di...
https://ideabiz.lk/apicall/Dialog_Connected_Devices/v1.0/status
Get the OUTPUT pin Status
Body
“serial": "<RPi serial Numb...
Request structure
<Action Number (2 Digits)><Pin/Port No (2 Digits)><Action type/Value>
Action numbers and Action types
01...
Introduction to ISayYouDo &
Idea Of Things
Shafraz Rahim
URL : projectx.dialog.lk/staging/
username : dialog1
password : 1qaz2wsx
I Say You Do
•Let’s you connect the apps and devices you use every day, such as Facebook, Twitter,
Slack, Weather and more.
Widgets
IN Sequence
Out Sequence
Idea OF THINGS
•Allows you to connect ISAYYOUDO to your personal DIY
projects. With Idea of Things, you can connect a Reci...
Idea OF THINGS
ISAYYOU
DO
Servers
Recipe is created
Developer Server 1
Calling Developers In-End Point
Call Recipe In-Sequ...
Let’s Create Sample In sequence – (1)
Let’s Create Sample In sequence – (2)
RECEIVERS In Endpoint - JSON FORMAT
{
"activeStatus":200,
"outputObject":{
},
"connectToken":"",
"inputObject":{
"filterCr...
RECEIVERS DELETE Endpoint - JSON
FORMAT
{
"activeStatus":403,
"outputObject":{
},
"inputObject":{
},
"notifyURL":" http://...
Let’s Create Sample In sequence – (3)
Mapping UI ELEMENTS
[
{
"type": "heading",
"size": "1",
"value": "HEADING",
"alignment": "left",
"validation": [
{
"requir...
Request for In Sequence execution
- JSON FORMAT
URL : http://ip:port/serviceUrl
Action : POST
{
"notifyURL":null,
"session...
Request for DELETION
CONFIRMATION - JSON FORMAT
URL : http://ip:port/serviceUrl
Action : POST
{
"notifyURL":null,
"session...
Introduction to IdeaBiz
and APIs
Malinda Rathnayake &
Tharindu Karunanayake
Use Cases
Getting Started
• Download the guides and SDKs – www.goo.gl/N3Ft0X
• We will send you the login URLs and Login Passwords
•...
Q/A
Code Ultimatum 2016 Pre Hack Presentation
Code Ultimatum 2016 Pre Hack Presentation
Code Ultimatum 2016 Pre Hack Presentation
Code Ultimatum 2016 Pre Hack Presentation
Code Ultimatum 2016 Pre Hack Presentation
Code Ultimatum 2016 Pre Hack Presentation
Code Ultimatum 2016 Pre Hack Presentation
Code Ultimatum 2016 Pre Hack Presentation
Code Ultimatum 2016 Pre Hack Presentation
Code Ultimatum 2016 Pre Hack Presentation
Code Ultimatum 2016 Pre Hack Presentation
Code Ultimatum 2016 Pre Hack Presentation
Code Ultimatum 2016 Pre Hack Presentation
Code Ultimatum 2016 Pre Hack Presentation
Upcoming SlideShare
Loading in …5
×

Code Ultimatum 2016 Pre Hack Presentation

375 views

Published on

Code Ultimatum 2016 - Things you need to know

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Code Ultimatum 2016 Pre Hack Presentation

  1. 1. Code Ultimatum 2016 Game of Codes
  2. 2. Agenda 1. Introduction to Hackathon and Developer Main Journey 2. Introduction to Smart Button 3. Introduction to RPie 4. Introduction to ISYD and Idea Of Things 5. Introduction to IdeaBiz and Subscribing to ISYD, Smart Button and RPie APIs 6. Getting Started 7. Q/A 8. Refreshments
  3. 3. Introduction to ISayYouDo MakeAThon Shafraz Rahim
  4. 4. Objective Enable your cool crazy ideas through Dialog Platforms and Devices
  5. 5. What do you have to use? 1. Dialog Smart Button 2. Dialog Raspberry Pi 3. ISayYouDo Widget Engine 4. Idea Of Things Widget Creator 5. IdeaBiz APIs 6. Your own devices, programs 7. Your brains
  6. 6. What do you have to build? Build widgets in ISayYouDo you like which would solve a problem or create a need using our platforms, APIs and devices
  7. 7. What you will get? 1. Three Smart Buttons 2. One Raspberry Pi with a charger and a SD card 3. SDKs, User Guides and Documentation 4. Access to ISayYouDo and Idea Of Things website 5. Access to IdeaBiz APIs
  8. 8. How does all these stuff connect? Communication Layer ISayYouDo IdeaBiz Idea Of Things Your App
  9. 9. Judging Criteria 1. Concept & Creativity (20) 2. Design (20) -Technical Design -UI Design 3. Effective use of smart Button and RPi (10) 4. Effective use of Dialog APIs and Platforms (20) 5. Number of useful widgets created (10) 6. Business Value (10) 7. Completeness (10)
  10. 10. Rules and Regulations 1. Judges decision will be final 2. Need to hand over the devices after the hackathon. You can use your own devices as well. 3. 5 members maximum per team and 1 person minimum 4. You can start developing your applications now. 5. Use Ideamart APIs, IdeaBiz APIs and you might or not use ISYD and devices. Please refer to judging criteria.
  11. 11. Dates to remember • 8th November 2016 – PreHack and Introductory Session • 15th November 2016 – Submit your idea • 16th November 2016 – Informing the selected teams • 19th and 20th November 2016 – Hackathon
  12. 12. Prizes • Winner – Rs.125,000 Cash Prize and opportunity to fly to Mobile World Congress 2017 • 1st runners up – Rs.100,000 Cash Prize • 2nd Runners up – Rs.50,000 Cash Prize • Opportunity to be a part of GSMA Ecosystem Accelerator Program
  13. 13. Introduction to Smart Button Demini Dilhara
  14. 14. A connected device (Wi-Fi), which can generate an event upon manually triggering, which can then used to do anything……… What is Dialog Smart Button? Platform Button Trigger Event Call Back App URL Call Back Ideabiz APIs
  15. 15. Smart Button Developer Journey Configure Subscribe Capture the Event
  16. 16. Button Configuration with Mobile App 1 2 3 4
  17. 17. Only One Ideabiz API to control the Smart Button .. Provision Ideabiz API: Dialog Connected Devices V.1.0 Serial Number Auth Code Call back URL Event Serial Number : Printed on the Button Auth Code : You will be given corresponding Auth Code Call Back URL : Your application URL on Ideamart Hosting space Event : “PRESSED”
  18. 18. Sample request for URL provisioning https://ideabiz.lk/apicall/Dialog_Connected_Devices/v1.0/process
  19. 19. Response In case you want to change URL, Let Us Know
  20. 20. Introduction to Raspberry Pi Demini Dilhara
  21. 21.  Make PIN High/Low  Get Pin Status  Get Pin Inputs  Set rules for Interrupts  Get/Set analog values Ideabiz API : Dialog Connected Devices V.1.0 Hosting Server Developer Application Sensors and Actuators Dialog Communication Platform
  22. 22. SDK Capabilities • Digital GPIO ports (ports 0-27) 1. Make a PIN HIGH/LOW (e.g. Switch ON a Bulb) 2. Get the Output PIN Status (e.g. Get the Status of a Bulb) 3. Get the Input from a PIN (e.g. Get a water Level input) 4. Get an interrupt from a PIN (e.g. To detect whether a Switch is pressed) • Logical Ports/ Analog Ports (ports 28-35) 1. Get values from a Logical Pin (e.g. Get a temperature sensor value) 2. Set Values to a Logical Pin(e.g. To control an analog servo drive)
  23. 23. Guidelines for SDK 1. Install Raspbian OS and Python MQTT Library 2. Set Up and Run Dialog Rpi SDK (Instructions will be given in the user manual) 3. Understand SDK communication structure to edit the SDK 4. Get Subscribed to Ideabiz API – Dialog Connected Devices 5. Create your App on Hosting Server 6. Connect your sensors and devices to Raspberry Pi 7. Provision your App URL via ideabiz API 8. Play with your RPi and App
  24. 24. One Ideabiz API for multiple request handling https://ideabiz.lk/apicall/Dialog_Connected_Devices/v1.0/process https://ideabiz.lk/apicall/Dialog_Connected_Devices/v1.0/rules https://ideabiz.lk/apicall/Dialog_Connected_Devices/v1.0/status
  25. 25. https://ideabiz.lk/apicall/Dialog_Connected_Devices/v1.0/process 1. Make a Digital PIN HIGH/LOW 2. Get the Input from a Digital PIN 3. Get values from a Logical Pin 4. Set Values to a Logical Pin One Resource URL for 4 different Body types 1 "serial": "<RPi serial Number>_<GPIO_PORT>", "auth_code": "<auth code>", "action":"<ON/OFF>" 2 "serial": "<RPi serial Number>_<GPIO_PORT>", "auth_code": "<auth code>", "action": "QUERY_INPUT" 3 "serial": "<RPi serial Number>_<GPIO_PORT>", "auth_code": "<auth code>", "action": "QUERY” 4 "serial": "<RPi serial Number>_<GPIO_PORT>", "auth_code": "<auth code>", "action": "<VALUE >”
  26. 26. https://ideabiz.lk/apicall/Dialog_Connected_Devices/v1.0/status Get the OUTPUT pin Status Body “serial": "<RPi serial Number>_<GPIO_PORT>", "auth_code": "<auth code>" https://ideabiz.lk/apicall/Dialog_Connected_Devices/v1.0/rules Body "serial": "<RPi serial Number>_<GPIO_PORT>", "auth_code": "<auth code>", "url":"< URL>", "event": "<LOW/HIGH>" Provision a URL for an interrupt Following Raspberry Pi details will be given to the developer for the Hackathon • Raspberry Pi Serial Number • Raspberry Pi Auth Code
  27. 27. Request structure <Action Number (2 Digits)><Pin/Port No (2 Digits)><Action type/Value> Action numbers and Action types 01-Get number of ports 02- Make a pin HIGH/LOW 03-Read an input pin 04- Activate interrupt in a pin 05-Get status of a pin 06- Get values for logical pins (4 pins) 07- Set values for logical pins (4 pins) Refer User Manual for more details… 
  28. 28. Introduction to ISayYouDo & Idea Of Things Shafraz Rahim
  29. 29. URL : projectx.dialog.lk/staging/ username : dialog1 password : 1qaz2wsx
  30. 30. I Say You Do •Let’s you connect the apps and devices you use every day, such as Facebook, Twitter, Slack, Weather and more.
  31. 31. Widgets
  32. 32. IN Sequence
  33. 33. Out Sequence
  34. 34. Idea OF THINGS •Allows you to connect ISAYYOUDO to your personal DIY projects. With Idea of Things, you can connect a Recipe to any device or service that can make or receive a web request (REST).
  35. 35. Idea OF THINGS ISAYYOU DO Servers Recipe is created Developer Server 1 Calling Developers In-End Point Call Recipe In-Sequence Execution when criteria is met Developer Server 2 Calling Developers Out-End Point Database 1 2 4 5 3 Save details for processing SMS Remainder Send SMS to User 6
  36. 36. Let’s Create Sample In sequence – (1)
  37. 37. Let’s Create Sample In sequence – (2)
  38. 38. RECEIVERS In Endpoint - JSON FORMAT { "activeStatus":200, "outputObject":{ }, "connectToken":"", "inputObject":{ "filterCriteria":"Test Message" }, "notifyURL":"http://ip:port/serviceUrl", "sessionId":1664, "userId":40 }
  39. 39. RECEIVERS DELETE Endpoint - JSON FORMAT { "activeStatus":403, "outputObject":{ }, "inputObject":{ }, "notifyURL":" http://ip:port/serviceUrl ", "sessionId":1663, "userId":0 }
  40. 40. Let’s Create Sample In sequence – (3)
  41. 41. Mapping UI ELEMENTS [ { "type": "heading", "size": "1", "value": "HEADING", "alignment": "left", "validation": [ { "required": false } ] }, { "type": "paragraph", "value": "Paragraph goes here", "alignment": "left", "validation": [ { "required": false } ] }, { "type": "text", "name": "filterCriteria", "label": "Label goes here", "place_holder": "placeholder goes here", "value": "", "column": "1", "validation": [ { "required": true } ] } ]
  42. 42. Request for In Sequence execution - JSON FORMAT URL : http://ip:port/serviceUrl Action : POST { "notifyURL":null, "sessionId":1664, "activeStatus":1, "inputObject":null, "outputObject":{ "a":"test Param AAAAA", "b":"Test Param BBBB" } }
  43. 43. Request for DELETION CONFIRMATION - JSON FORMAT URL : http://ip:port/serviceUrl Action : POST { "notifyURL":null, "sessionId":1664, "activeStatus":404, "inputObject":null, "outputObject":null }
  44. 44. Introduction to IdeaBiz and APIs Malinda Rathnayake & Tharindu Karunanayake
  45. 45. Use Cases
  46. 46. Getting Started • Download the guides and SDKs – www.goo.gl/N3Ft0X • We will send you the login URLs and Login Passwords • Request for hosting space – devsupport@ideamart.lk • Create an account in IdeaBiz – Send your username • Send us your Dialog mobile numbers to whitelist • Submit your Idea - bit.ly/CodeUltimatum2016 • Submit your issues, suggestions, queries – www.goo.gl/3Lztpt
  47. 47. Q/A

×