Giter Club home page Giter Club logo

iot-climate-control-sample's Introduction

IoT Climate Control Sample

IoT reference sample for Climate Control

Bluemix Deployments

Deploy the app on Bluemix

You can deploy your own instance to Bluemix. To do this, you can either use the Deploy to Bluemix button for an automated deployment or follow the steps below to create and deploy your app manually.

Using the Deploy to Bluemix button.

Use the "Deploy to Bluemix" button below, to deploy this app to Bluemix using IBM DevOps.

Deploy to Bluemix

Manually deploying to Bluemix.

  1. Create a Bluemix Account.

Sign up for Bluemix, or use an existing account.

  1. Download and install the Cloud-foundry CLI tool.

  2. Clone the app to your local environment from your terminal using the following command:

git clone https://github.com/ibm-watson-iot/iot-climate-control-sample.git
  1. cd into this newly created directory.

  2. Edit the manifest.yml file and change the <name> and <host> to something unique.

applications:
- path: .
  memory: 768M
  instances: 1
  domain: mybluemix.net
  name: node-js-1234
# host: node-js-1234
  disk_quota: 1024M

The host you use will determinate your application URL initially, for example, <host>.mybluemix.net.

  1. Connect to Bluemix in the command line tool and follow the prompts to log in:
$ cf api https://api.ng.bluemix.net
$ cf login
  1. Create the required services in Bluemix.
$ cf create-service iotf-service iotf-service-free iottool-IoT-devx
$ cf create-service cloudantNoSQLDB Lite iottool-cloudantNoSQLDB-devx
  1. Push the app to Bluemix.
$ cf push

You now have your own instance of the app running on Bluemix.

Privacy notice

This web application includes code to track deployments to IBM Bluemix and other Cloud Foundry platforms. The following information is sent to a Deployment Tracker service on each deployment:

  • Application Name (application_name)
  • Space ID (space_id)
  • Application Version (application_version)
  • Application URIs (`application_uris)``

This data is collected from the VCAP_APPLICATION environment variable in IBM Bluemix and other Cloud Foundry platforms. This data is used by IBM to track metrics around deployments of sample applications to IBM Bluemix to measure the usefulness of our examples, so that we can continuously improve the content we offer to you. Only deployments of sample applications that include code to ping the Deployment Tracker service will be tracked.

Disabling deployment tracking

Deployment tracking can be disabled by removing the require("cf-deployment-tracker-client").track(); line from the end of the 'main.js' file.

Useful links

IBM Bluemix
IBM Bluemix Documentation
IBM Bluemix Developers Community
IBM Watson Internet of Things
IBM Watson IoT Platform
IBM Watson IoT Platform Developers Community

iot-climate-control-sample's People

Contributors

jeffdare avatar amitmangalvedkar avatar mzuliani-ibm avatar

Watchers

James Cloos avatar Eliad Moosavi avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.