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.

IoT Quick Demo for Heroku & Salesforce

You can install IoT Heroku app + Salesforce app within 10 mins.

Please go to http://itodemo-developer-edition.ap0.force.com/ for more detail.

  • Login to see the comments

IoT Quick Demo for Heroku & Salesforce

  1. 1. IOT QUICK DEMO SALESFORCE YOU HAVE TO INSTALL HEROKU APPLICATIONAT FIRST!!!!!! The following site has the latest information so please check this out at first. http://itodemo-developer-edition.ap0.force.com
  2. 2. Agenda 1. Installation 2. Temperature demo • Setup • Scenario 3. Location demo • Setup • Scenario 4. Optional Features • Twilio integration • Android device
  3. 3. System Overview Heroku App Send value, lat, lon, and timestamp to heroku app every 3 secs Pusher Add-on Forward values to SFDC Streaming API websocket SFDC
  4. 4. 1. INSTARALLTION
  5. 5. http://itodemo-developer-edition.ap0.force.com/ 2 1 Before you click this Heroku button, you must have your developer account on Salesforce for free. If not, go to https://developer.salesforce.com/signup to sign-in Copy this url and paste it at your browser to install salesforce application. Ener your Salesforce userid and password 3
  6. 6. 2 1 3 4
  7. 7. 1
  8. 8. 1 3 This is your own application url. Please make sure that it looks like https://<yourapp>.herokuapp.com This is your application url you should copy 2
  9. 9. 2 1 3 4 5
  10. 10. 2 1 3 Enter your office location for now. Check http://mygeoposition.com/ to get value 4
  11. 11. 2 1 3 Add two columns to User layout 4
  12. 12. 2 1 3 Enter your own heroku application url
  13. 13. 2 1 3 Add FindSupportPerson VF to case layout
  14. 14. 2 1 3 5 4
  15. 15. 1 Your Salesforce username and password
  16. 16. 2. TEMPERATURE DEMO
  17. 17. SET UP
  18. 18. 1 2 3
  19. 19. 1 This page is device detail page showing sensor value, location, and so on
  20. 20. 2 1 In case value from device is over this threshold, then the app automatically create a case and post content based on this setting values.
  21. 21. 2 1 3 Enter your any location near the place where you are for demo Check http://mygeoposition.com/ to get value 4
  22. 22. 2 1 3 Enter you email address which your mobile can receive. 4 Web based device UI app is on iphone/android
  23. 23. SCENARIO
  24. 24. Steps 1. Map showing where you are for demo because device sends geo-location, temperature data to SFDC every 3secs 2. Gauge showing current temperature at device. It has time difference because of device -> Heroku -> SFDC - > Gauge UI. You may change temperature value on device ( not exceed threshold value you set ) 3. Send signal to device by switching button via Web- socket. 4. Show historical data 5. Change temperature value over threshold so that Chatter post and case are automatically created. 6. Show the case and the Chatter post
  25. 25. This geo-location comes form web based device UI app gets value from iphone/andorid.
  26. 26. 2 1 You can see when the data got arrived from device. Streaming API is implemented here. You can change temp value here but not one over 40 degree which is threshold.
  27. 27. 2 1 You can switch on / off at Salesforce UI and sends a signal to device via Websocket
  28. 28. It shows historical data but you need to refresh page if you show new data set.
  29. 29. All data from device are stored at SensorData custom object There is no case here.
  30. 30. 2 1 3 Change value so that it is over threshold Refresh the page You can change subject of content. Please see demo setting section.
  31. 31. 'SELECT Id,Department,Division,Email,Name,Phone,Location_Map__c FROM User WHERE DISTANCE(User_Location__c, GEOL OCATION('+record.Location__Latitude__s+','+record.Location__Longitude__s+'), 'mi') < 50'; This shows users who are within 50 mills against device location.
  32. 32. 2 1 Chatter post is created.
  33. 33. 3. LOCATION DEMO
  34. 34. Use case When our device (car, sensor, and so on) is stolen, then case and chatter post is created to notify employee. The demo shows you if the difference between the place where device was located at previous time and one where it is located now is over 10 mils, then case and chatter are created.
  35. 35. SETTING
  36. 36. 1 Change lat and long values indicating any place from where you are for demo to 10mil away.
  37. 37. SCENARIO
  38. 38. All data from device are stored at SensorData custom object There is no case here.
  39. 39. 2 1 3 Opening Web-based device UI sends geo- location to SFDC Refresh the page You can change subject of content. Please see demo setting section.
  40. 40. 'SELECT Id,Department,Division,Email,Name,Phone,Location_Map__c FROM User WHERE DISTANCE(User_Location__c, GEOL OCATION('+record.Location__Latitude__s+','+record.Location__Longitude__s+'), 'mi') < 50'; This shows users who are within 50 mills against device location.
  41. 41. 2 1 Chatter post is created.
  42. 42. 4. OPTIONAL FEATURES
  43. 43. TWILIO INTEGRATION
  44. 44. 1 4 3 2
  45. 45. https://github.com/twilio/twilio-salesforce tells you how to get account, token, to, and from values. 1 2 Uncomment out this line for calling
  46. 46. 3 2 1
  47. 47. 1 Edit twilio content field for call. In case temperature value goes up the threshold, then case and chatter post are created and you will get a call with this content.
  48. 48. ANDROID DEVICE
  49. 49. Use case If you have Android smart phone by yourself, you can give more features using js device api. (http://blog.teamtreehouse.com/exploring-javascript-device- apis) • SFDC UI can make Web-based device UI vibrated • SFDC UI can get battery level from Android smart phone • Web-based device UI gives real ambient light level to SFDC • YOU NEED Firefox on Android Smart Phone
  50. 50. 2 1 3 Enter you email address which your mobile can receive. 4 Web based device UI app is on android Thing’s record type must be Android
  51. 51. 1 3 2 Throw light on android smart phone to change this value

×