Code Conversion

All the code for the AirPi was written in Python. This easily works for the Raspberry Pi, but it is more of a challenge when using the Intel Galileo. It is possible to use Python for our purposes, but the process of finding and downloading the appropriate libraries would be very tedious. This is why we have proposed to convert the code to another, more friendly environment. Node.js was the runtime environment of choice because of its smooth networking capabilities and improved package management for obtaining necessary libraries. Choosing Node.js required writing the code in JavaScript, which was a new language to learn but not difficult to pick up and understand.

The code is currently being converted from Python to JavaScript one sensor at a time. Each sensor will be tested and verified, preferably in order from the least difficult to code to the most difficult.

Code Conversion

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s