AutoPebble AutoPebble slow execution

Discussion in 'AutoApps' started by Daniel D, Nov 6, 2016.

  1. Daniel D

    Daniel D Member

    Joined:
    Feb 11, 2015
    Messages:
    127
    Likes Received:
    11
    Hello João,
    Recently, I've been noticing that AutoPebble actions take longer to execute than others. Then I decided to measure these times with the following task (at first this was an actual, "get in car", task).

    Code (Text):
    time (215)
        A1: Variable Set [ Name:%time1 To:%TIMEMS Do Maths:Off Append:Off ]
        A2: AutoPebble App [ Configuration:Full Screen: false
    Control App: Close
    Check Pebble Connected: false
    Other Pebble App: unknown
    No Prefix if Command: false
    Do Not Disturb: false
    Clear History: false
    Open Phone App: false
    Save Scren: false
    Don't Send Screen: false
    Go Back: false
    Go Back Multi: false Timeout (Seconds):20 ]
        A3: Variable Set [ Name:%time2 To:%TIMEMS Do Maths:Off Append:Off ]
        A4: Run Shell [ Command:input keyevent 26 Timeout (Seconds):0 Use Root:On Store Output In: Store Errors In: Store Result In: Continue Task After Error:On ] If [ %SCREEN ~ off ]
        A5: WiFi [ Set:Off ]
        A6: Secure Settings [ Configuration:GPS Enabled Timeout (Seconds):0 Continue Task After Error:On ]
        A7: Secure Settings [ Configuration:Location Mode/High Accuracy Timeout (Seconds):0 Continue Task After Error:On ]
        A8: Run Shell [ Command:svc data enable Timeout (Seconds):0 Use Root:On Store Output In: Store Errors In: Store Result In: Continue Task After Error:On ]
        A9: Variable Set [ Name:%Car To:1 Do Maths:Off Append:Off ]
        A10: Variable Set [ Name:%time3 To:%TIMEMS Do Maths:Off Append:Off ]
        A11: AutoPebble App [ Configuration:Other Pebble App: Music
    Other Pebble App Action: Open Timeout (Seconds):20 Continue Task After Error:On ]
        A12: Variable Set [ Name:%time4 To:%TIMEMS Do Maths:Off Append:Off ]
        A13: Create Scene [ Name:music ]
        A14: Launch App [ App:Waze Data: Exclude From Recent Apps:On Always Start New Copy:Off Continue Task After Error:On ]
        <profile status>
        A15: Profile Status [ Name:2.car_out Set:On ]
        A16: Profile Status [ Name:2.car_in Set:Off ]
        A17: Media Control [ Cmd:Play [Simulated Only] Simulate Media Button:On App:??? ]
        A18: Profile Status [ Name:2.poweramp_data Set:On ]
        A19: Profile Status [ Name:2.brightness_day Set:On ]
        A20: Profile Status [ Name:2.brightness_night Set:On ]
        A21: Profile Status [ Name:2.return2waze Set:On ]
        A22: Profile Status [ Name:2.hide_scene Set:On ]
        A23: Display Timeout [ Secs:0 Mins:1 Hours:0 ]
        A24: Variable Set [ Name:%time5 To:%TIMEMS Do Maths:Off Append:Off ]
        A25: AutoPebble App [ Configuration:Full Screen: false
    Check Pebble Connected: false
    Other Pebble App: Music
    Other Pebble App Action: Close
    No Prefix if Command: false
    Do Not Disturb: false
    Clear History: false
    Open Phone App: false
    Save Scren: false
    Don't Send Screen: false
    Go Back: false
    Go Back Multi: false Timeout (Seconds):20 Continue Task After Error:On ]
        A26: Variable Set [ Name:%time6 To:%TIMEMS Do Maths:Off Append:Off ]
        A27: Variable Set [ Name:%Time1 To:%time2-%time1 Do Maths:On Append:Off ]
        A28: Variable Set [ Name:%Time2 To:%time3-%time2 Do Maths:On Append:Off ]
        A29: Variable Set [ Name:%Time3 To:%time4-%time3 Do Maths:On Append:Off ]
        A30: Variable Set [ Name:%Time4 To:%time5-%time4 Do Maths:On Append:Off ]
        A31: Variable Set [ Name:%Time5 To:%time6-%time5 Do Maths:On Append:Off ]
    So here are the results...

    Code (Text):
    Time1 = 3784, 4283, 3701, 9913, 3257
    Time2 = 4032, 3731, 3420, 2641, 3948
    Time3 = 12935, 16787, 9570, 10413, 10163
    Time4 = 538, 486, 635, 295, 455
    Time5 = 3404, 7527, 4456, 4464, 5570
    Do you have any idea why this is happening? I mean it's quite obvious that AutoPebble actions take longer than any other. Is this normal? Or maybe is just my phone...
    Thanks!

    PS: The "Run shell" task seems to be a little slower too.
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    What phone do you have? On some phones it's known that the BT transfer is noticeably slower than on others... Sorry, there's really nothing I can do to fix that :(
     
  3. Daniel D

    Daniel D Member

    Joined:
    Feb 11, 2015
    Messages:
    127
    Likes Received:
    11
    It's a Sony Z5 compact, running Marshmallow (.253 build). I'll try to run a similar setup on another phone (Nexus 5, CM13).
     

Share This Page