/data-acquisition-nodejs-mongodb

Remote Data Acquisition from a Solar Plant with MongoDB and NodeJS

Primary LanguageJavaScript

Solar Cloud

Data Acquisition NodeJS, MongoDB and CR1000 datalogger

Requirements:

  • nodejs
  • mongo
  • ruby
  • lamp

Installation:

Checkout github repostory

git clone git@github.com:teodortalov/data-acquisition-nodejs-mongodb.git solarcloud

Navigate into the app folder

cd solarcloud

Install dependencies

sudo npm install

Install js-yaml (see issue #1)

sudo npm install js-yaml

Run Fetcher

node fetcher

 

Run fetcher in background

nohup node fetcher&

Tools:

Install Genghis to manage MongoDB data

See installation instructions at: https://github.com/bobthecow/genghis

Running Genghis from command line

genghisapp

You should see response like this:

[2013-12-02 00:05:29 -0500] Starting 'genghisapp'...
[2013-12-02 00:05:29 -0500] 'genghisapp' is already running at http://0.0.0.0:5678

You can access the application at:

your-host.com:5678

MongoDB shortcuts

Get last 3 or n records

db.readings.find().sort( { _id : -1 } ).limit(3).pretty()