ECE497 Project: Node.js Weather Station

From eLinux.org
Revision as of 22:16, 11 February 2012 by Caogecym (talk | contribs) (Work Breakdown)
Jump to: navigation, search


Team members: Yuming Cao, Ziyi Zhang

Executive Summary

Give two sentence intro to the project.

Give two sentences telling what works.

Give two sentences telling what isn't working.

End with a two sentence conclusion.

The sentence count is approximate and only to give an idea of the expected length.

Installation Instructions

Give step by step instructions on how to install your project on the SPEd2 image.

0. install nodejs

opkg update
opkg install nodejs
opkg install nodejs-dev

1. install node package manager

curl http://npmjs.org/install.sh | sh

2. install socket.io module

npm install socket.io

3. install binary module

npm install binary
  • Include kernel mods.
  • If there is extra hardware needed, include links to where it can be obtained.
  • Here's the guideline to install Cloud9 easily: [1]

User Instructions

Once everything is installed, how do you use the program? Give details here, so if you have a long user manual, link to it here.

Highlights

Here is where you brag about what your project can do.

Consider including a YouTube demo.

Theory of Operation

Give a high level overview of the structure of your software. Are you using GStreamer? Show a diagram of the pipeline. Are you running multiple tasks? Show what they do and how they interact.

Work Breakdown

List the major tasks in your project and who did what.

  • We've already successfully using JavaScript read and write data to the linux gpio file.
fs.writeFileSync("/sys/class/leds/beagleboard::usr0/trigger", "heartbeat");
fs.writeFileSync("/sys/class/gpio/export", ""+5);


Also list here what doesn't work yet and when you think it will be finished and who is finishing it.

  • Even though we can access to the gpio in the above way, we still need to find someway to access to the I2C information. In the I2C exercises, in the C code provided in exercise 5, we still need to find some way in our javaScript instead of using i2c_smbus_write_byte() and i2c_smbus_read_byte(). Now there's two options for us:
  • To translate tons of the C codes into JavaScript...
  • Try to run the ./myi2c excutable file inside script...

It's seems that the second way is easier... We've already found a ActiveXObject.run method... We're working on this...

Conclusions

Give some concluding thoughts about the project. Suggest some future additions that could make it even more interesting.