diff --git a/starters/IoT/start_iot.md b/starters/IoT/start_iot.md index dbef18eeb..b0fd289d5 100644 --- a/starters/IoT/start_iot.md +++ b/starters/IoT/start_iot.md @@ -105,99 +105,49 @@ Configure the Node-RED device simulator. Use the device simulator to send MQTT d 8. Connect your sample IoT device to {{site.data.keyword.iot_short_notm}} to view device data. -## Creating cards in {{site.data.keyword.iot_short_notm}} to show live data -{: #createcards} -To create cards, perform the following tasks. - -### Automatically generate data every 3 seconds -1. In the Node-RED tab, double-click the Send Data node -2. Set Repeat to Interval Every 3 seconds -3. Deploy - -### Create new cards in the dashboard -1. Go to the {{site.data.keyword.iot_short_notm}} dashboard browser tab. -2. Select BOARDS. -3. Click Create New Board. -4. Give it a name like Home Environment. -5. Create. -6. Click Add New Card (for temperature). - 1. Under Devices, select Realtime chart. - 2. Card source data, check your Device "LivingRoomThermo1", then click Next. - 3. Connect new data set. - - Name: Temperature - - Event: update - - Property: temp - - Type: Float - - Unit: °C - - Precision: 2 - - Min: 0 - - Max: 50 - - Next - 4. Card preview. - - Select L - - Next - 5. Card information. - - Title: Temperature - 6. Submit. - 7. The temperature card appears on the dashboard and includes a graph of the live temperature data. -7. Click Add New Card (for humidity). - 1. Under Devices, select Show more. - 2. Select Gauge. - 3. Card source data, check your Device, then click Next. - 4. Connect new data set. - - Name: Humidity - - Event: update - - Property: humidity - - Type: Float - - Unit: "% relative humidity" - - Precision: 1 - - Min: 10 - - Max: 95 - - Next - 5. Card preview. - - Settings - - Lower threshold: 40 and fair - - Middle: good - - Upper threshold: 50% and fair - - Select M - - Next - 6. Card information. - - Title: Humidity - 7. Submit. - 8. The humidity card appears on the dashboard and includes a gauge that shows the live humidity data. -8. Click Add New Card (for location). - 1. Under Devices, select Show more. - 2. Select Value. - 3. Card source data, check your Device. "LivingRoomThermo1", then click Next. - 4. Connect new data set. - - Name: Latitude - - Event: update - - Property: location.latitude - - Type: Float - - Unit: "°N" - - Precision: 2 - - Min: -180 - - Max: 180 - 5. Connect new data set. - - Name: Longitude - - Event: update - - Property: location.longitude - - Type: Float - - Unit: "°E" - - Precision: 2 - - Min: -180 - - Max: 180 - - Next - 6. Card preview. - - Select L - - Next - 7. Card information. - - Title: Location - 8. Submit. -9. Watch your new cards update in real time with the simulator data generated by the Node-RED flow. -**Note**: Node-RED continues to send data until you stop it. -10. In the Node-RED flow editor, update the Send Data node to Repeat: none. -11. Deploy. +# Deploying your app with the command line interface +{:shortdesc} +You can use the command line interface to deploy and modify applications and service instances. + +{:prereq} +Before you begin, install the Cloud Foundry and {{site.data.keyword.Bluemix}} command line interfaces. + +

+Download Cloud Foundry command line interface + +Download {{site.data.keyword.Bluemix}} command line interface

+ +After the command line interfaces are installed, you can get started: + + 1. {: download} Download your starter code, and extract the package to a new directory to set up your development environment. + + Download starter code + + 2. Change to the directory where your code is located. + +
cd your_new_directory
+ + 3. Make changes to your app code as you see fit. We suggest making sure the app runs locally before you deploy it back to {{site.data.keyword.Bluemix}}.

One file you should take note of is the `manifest.yml` file. When deploying your app back to {{site.data.keyword.Bluemix}}, this file is used to determine your application’s URL, memory allocation, number of instances, and other crucial parameters. You can [read more about the manifest file](https://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html){: new_window} in the Cloud Foundry documentation. + + 4. Connect to {{site.data.keyword.Bluemix}}. + +
bluemix api https://api.DomainName
+ + 5. Log in to {{site.data.keyword.Bluemix_notm}}. + +
bluemix login -u username -o org_name -s space_name
+ + If you are using a federated ID, use the -sso option. + +
bluemix login -u username -o "org_name" -s "space_name" -sso
+ + 6. Deploy your app to {{site.data.keyword.Bluemix_notm}}. For more information about the cf push command, see [Uploading your application](/docs/starters/upload_app.html). + +
cf push "app_name"
+ + 7. Access your app by entering the following URL into your browser: + +
host.AppDomainName
## What's next? {: #whatsnext}