AWS Community Day CPH - Three problems of Terraform
IoT Quick Demo for Heroku & Salesforce
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
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
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
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
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
27. 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.
28. 2
1
You can switch on / off at Salesforce UI and
sends a signal to device via Websocket
29. It shows historical data but you need to
refresh page if you show new data set.
30. All data from device are stored at
SensorData custom object
There is no case here.
31. 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.
35. 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.
49. 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.
51. 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
52. 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