PhoneGap used to bridge the web application and mobile device. It uses IBM bluemix's IOT platform to run the simulation of the IOT device. Node-red was used to generate simulated smart meter IOT device that sends us data in form of JSON string which then was visualized by using PhoneGap and google charts. It was done as a part of hackathon held in SPIT college on Feb 15, 2017.
Phonegap
IBM
NODE-RED
Google charts
You can get started using the platform at: IOT Node-red used for simulation : NODE-RED
The hello-world template is the default when you create a new application using the [phonegap-cli][phonegap-cli-url].
phonegap create my-app
Create an app using this template specifically:
phonegap create my-app --template hello-world
To see a list of other available PhoneGap templates:
phonegap template list
First, head over to nodejs.org and install Node.js.
Go ahead and clone the repository onto your disk. Clone it inside your newly created phonegap project.
$ git clone https://github.com/spyashu/smartmeter.git && cd wwwInstall bower globally
$ npm install -g bowerInstall necessary dependencies.
$ npm run installGo ahead and run the server as follows:
$ npm startYour app must now be running on localhost.


