Getting Started

The examples use the following hardware to acquire data.

C# 2010 Example program

The example program is written in Visual C# 2010 Express. We assumed that you are already familiar with C# and the EMANT3X0 DAQ modules. If not, you should familiarise yourself with C# and the EMANT3X0 DAQ modules before proceeding.

    Steps to Get Started
  1. Join this site using your Facebook login
  2. Goto My Configuration to generate the API Secret
  3. Goto Geocoder to get the Geolocation of your address
  4. Download the sensorcloud_cs_2010.zip example program.
  5. Modify the code to include your API Key and Secret, Geolocation
  6. API Key
  7. Run the program. The timer interval is set to 5 mins. You may want to do a Test Post - depending on web traffic, it may take a few seconds to complete this task. See the status for time of posting and results
  8. Your data will be available to you and your friends on www.sensor-cloud.com

Py4A Example program

The example program to post lux intensity data to sensor-cloud.com using Python for Android can be found at smartphonedaq.com/sensor-cloud.page

PyS60 Example program

This example is provided for legacy reasons only. We recommend using Python for the Android Smartphone

The example program is written in PyS60 for use in Nokia S60 smartphones. It requires PyS60 ver 1.9.7 or later and works only with the EMANT380 Bluetooth DAQ module. We assumed that you are already familiar with PyS60 and the EMANT380 DAQ module. If not, you should familiarise yourself with PyS60 and the EMANT380 DAQ modules before proceeding.

    Steps to get Started
  1. Join the site
  2. Goto My Configuration to generate the API Secret
  3. Goto Geocoder to get the Geolocation of your address
  4. Download the PyS60 middaq example program. You will need to login at info.emant.com
  5. Change the Network Access Point to the one you will be using
  6. Key in your api key and api secret.
  7. Key in the Mac address of your EMANT380 module
  8. The default time delay between each measurement is 10 minutes. You can change the delay here
  9. Finally enter your geolocation. You can also make use of the GPS info from the Nokia phone. Reading the internal GPS Location may require signing the shell when you are installing the PyS60 in your device. You can get the shell signed at the "Symbian Online Signing".
  10. Transfer the modified middaq.py script to your Nokia smartphone.
  11. Check if you have paired the EMANT380 to the Nokia phone. If you have not, do it now
  12. Start Python.
  13. Run the middaq.py script. When the program runs, it will connect to the EMANT380, retrieves and displays its firmware ID. Next it will write the light intensity and temperature measured to sensor-cloud.com. The status of the write will also be displayed.
  14. To exit the program, press the exit key.