picklepete / pyicloud

A Python + iCloud wrapper to access iPhone and Calendar data.
MIT License
2.57k stars 452 forks source link

Here is a list of all Status properties. #220

Open TrevisGordan opened 5 years ago

TrevisGordan commented 5 years ago

List of all Status

(maybe implement in README)

[canWipeAfterLock] => 1
[remoteWipe] => 
[locFoundEnabled] => 
[location] => stdClass Object
    (
        [timeStamp] => 1420458331310
        [locationType] => 
        [positionType] => Cell
        [horizontalAccuracy] => ******
        [locationFinished] => 
        [isInaccurate] => 
        [longitude] => ***********
        [latitude] => *********
        [isOld] => 
    )

[deviceModel] => iphone6-*******
[remoteLock] => 
[activationLocked] => 1
[locationEnabled] => 1
[rawDeviceModel] => iPhone7,2
[modelDisplayName] => iPhone
[lostModeCapable] => 1
[id] => ********
[deviceDisplayName] => iPhone 6
[darkWake] => 
[locationCapable] => 1
[batteryLevel] => 0.6
[maxMsgChar] => 160
[name] => iPhone6Chris
[features] => stdClass Object
    (
        [CLT] => 
        [CWP] => 
        [WMG] => 1
        [XRM] => 
        [CLK] => 
        [SND] => 1
        [LST] => 1
        [KEY] => 
        [WIP] => 1
        [LOC] => 1
        [LLC] => 
        [MSG] => 1
        [LMG] => 
        [LCK] => 1
        [REM] => 
        [SVP] => 
        [TEU] => 1
        [LKL] => 
        [LKM] => 
        [PIN] => 
        [KPD] => 
    )

[deviceClass] => iPhone
[wipeInProgress] => 
[fmlyShare] => 
[passcodeLength] => *****
[mesg] => 
[isMac] => 
[snd] => stdClass Object
    (
        [statusCode] => 200
        [createTimestamp] => 1420456410736
    )

[isLocating] => 1
[deviceColor] => 3b3b3c-b4b5b9
[trackingInfo] => 
[batteryStatus] => NotCharging
[deviceStatus] => 200
[wipedTimestamp] => 
[lockedTimestamp] => 
[msg] => stdClass Object
    (
        [statusCode] => 200
        [createTimestamp] => 1420456410736
        [userText] => 
        [playSound] => 1
    )

[lostTimestamp] => 
[lostModeEnabled] => 
[thisDevice] => 
[lostDevice] => 
[prsId] => 
k2on commented 4 years ago

I looked at the Apple FindMy source code and came up with these:

{
    SEND_MESSAGE_FAILURE: 500,
    SEND_MESSAGE_MSG_DISPLAYED: 200,
    SEND_MESSAGE_MSG_SENT: 205,
    REMOTE_WIPE_FAILURE: 500,
    REMOTE_WIPE_STARTED: 200,
    REMOTE_WIPE_SENT: 205,
    REMOVE_DEVICE_SUCCESS: 200,
    UPDATE_LOCATION_PREF_FAILURE: 500,
    UPDATE_LOCATION_PREF_SUCCESS: 200,
    LOST_MODE_SENT: 205,
    LOST_MODE_SUCCESS: 200,
    PLAY_SOUND_FAILURE: 500,
    PLAY_SOUND_SUCCESS: 200,
    PLAY_SOUND_SENT: 205,
    PLAY_SOUND_NEEDS_SAFETY_CONFIRM: 203,
    LOCK_SENT: 205,
    LOCK_SUCC_PASSCODE_SET: 2200,
    LOCK_FAIL_NO_PASSCD_2: 2406,
    LOCK_FAIL_PASSCODE_NOT_SET_CONS_FAIL: 2403,
    LOCK_SUCC_PASSCODE_NOT_SET_PASSCD_EXISTS: 2201,
    LOCK_SUCCESSFUL_2: 2204,
    LOCK_SERVICE_FAILURE: 500,
    DEVICE_STATUS_ONLINE: 200,
    DEVICE_STATUS_OFFLINE: 201,
    DEVICE_STATUS_PENDING: 203,
    DEVICE_STATUS_UNREGISTERED: 204,
    DEVICE_STATUS_ERROR: 500
}