I am using an xbee gateway to connect to the device cloud. I see my raw data, but I need to convert it to show the temperature readings. How do you convert the raw data. Where do I insert the conversion factor?
Which gateway model are you using exactly? What is sending the temperature (i.e. XBee LTH, external temp. sensor, etc…)?
Model: XBee Gateway-ZB, Ethernet
Its sending a reading form ADC-0 connected to an LM34.
I am getting raw data, but I need to convert to temp reading. How can I run it to a conversion factor?
You might want to have a look at the XBee Gateway Dashboard:
https://xbeegateway.herokuapp.com
You would place a group of python files on your gateway and configure the xbgw_main.py file to auto-start.
Documentation for using the kit, can be found here:
http://ftp1.digi.com/support/documentation/html/90001399/90001399_A/Files/kit-getting-started.html
The following shows temperature configuration in the dashboard application along with the formula to convert the temperature on a TMP36 temperature sensor (the LM34 specifications may be different):
http://examples.digi.com/xbee-gateway/temperature-example-xbee-cloud-kit/5/
If you are proficient with Python, you can design your own application using Digi ESP:
http://www.digi.com/support/productdetail?pid=3632&type=drivers
Additional Python examples can be found on the Digi developer wiki: