ethLogShared


Back to API doc top page.

Click here for a complete list of operations.

GetTrendsShared

Retrieves the last 64 logged temperature/RH/lux data points from specified UUIDs of tags. The temp/RH data of the tags must be shared.

POST /ethLogShared.asmx/GetTrendsShared HTTP/1.1
Host: wirelesstags.net
Content-Type: application/json; charset=utf-8
Content-Length: length

{
    ids:[
        ...
    ],
    "withRH":boolean
    "withLux":boolean
}
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: length

{
    d:{
        trends:[
            {
                "uuid":guid
                "picture":string
                "image_md5":string
                "chipTemp":boolean
                "tagType":Basic = 2 or TCProbe = 42 or MotionSensor = 12 or MotionHTU = 13 or MotionHTUMem = 21 or LightHTUMem = 26 or Solar = 22 or Cap = 32 or CapThermister = 33 or Flat = 34 or Reed_HTU = 52 or Reed_noHTU = 53 or Thermostat = 62 or PIR = 72 or WeMo = 82 or WebCam = 92 or USB = 102 or USB_ZMOD = 106 or USB_ALS = 107
                "hasMotion":boolean
                "pbi":int
                "name":string
                temperature:[
                    double,
                    double,
                    ...
                ],
                rh:[
                    float,
                    float,
                    ...
                ],
                lux:[
                    float,
                    float,
                    ...
                ],
                filetime:[
                    long,
                    long,
                    ...
                ],
                "tempState":Disarmed = 0 or Normal = 1 or TooHigh = 2 or TooLow = 3 or ThresholdPending = 9
                "rhState":NA = 0 or Disarmed = 1 or Normal = 2 or TooDry = 3 or TooHumid = 4 or ThresholdPending = 9
                "lightState":NA = 0 or Disarmed = 1 or Normal = 2 or TooDark = 3 or TooBright = 4 or ThresholdPending = 9
                "sort":guid
            },
            {
                "uuid":guid
                "picture":string
                "image_md5":string
                "chipTemp":boolean
                "tagType":Basic = 2 or TCProbe = 42 or MotionSensor = 12 or MotionHTU = 13 or MotionHTUMem = 21 or LightHTUMem = 26 or Solar = 22 or Cap = 32 or CapThermister = 33 or Flat = 34 or Reed_HTU = 52 or Reed_noHTU = 53 or Thermostat = 62 or PIR = 72 or WeMo = 82 or WebCam = 92 or USB = 102 or USB_ZMOD = 106 or USB_ALS = 107
                "hasMotion":boolean
                "pbi":int
                "name":string
                temperature:[
                    double,
                    double,
                    ...
                ],
                rh:[
                    float,
                    float,
                    ...
                ],
                lux:[
                    float,
                    float,
                    ...
                ],
                filetime:[
                    long,
                    long,
                    ...
                ],
                "tempState":Disarmed = 0 or Normal = 1 or TooHigh = 2 or TooLow = 3 or ThresholdPending = 9
                "rhState":NA = 0 or Disarmed = 1 or Normal = 2 or TooDry = 3 or TooHumid = 4 or ThresholdPending = 9
                "lightState":NA = 0 or Disarmed = 1 or Normal = 2 or TooDark = 3 or TooBright = 4 or ThresholdPending = 9
                "sort":guid
            },
            ...
        ],
        tms:{
            "postbackInterval":int
            "temp_unit":Celsius or Fahrenheit
            "tzo":int
            "serverTime":long
            "rev":unsignedByte
            "limited":boolean
            "rxFilter":Widest or Wider or Normal or Narrower or Narrowest
            "optimizeForV2Tag":boolean
            freqTols:[
                int,
                int,
                ...
            ],
            "phoneID":string
            "loginEmail":string
            "wsRoot":string
            "noWemoSearch":boolean
            "connectSuggest":string
        },
        "serverTime":long
    }
}