#! /usr/bin/python
__author__ = "J Dean Brock"

import Adafruit_BMP.BMP085 as BMP085
import json

def main():
    myBMP180 = BMP085.BMP085()
    temp = myBMP180.read_temperature()
    press = myBMP180.read_pressure()
    jsonret = json.dumps({'pressure':press,'temperature':temp})
    print jsonret
    return

if __name__ == "__main__":
    main()
