Sponsored

Android widget

Darkjeep

Well-known member
First Name
Dan
Joined
Feb 12, 2021
Threads
0
Messages
79
Reaction score
7
Location
Hastings, MN
Vehicles
F150, CR-V
Occupation
God of Tech
Oh mine is an s20 ultra on android 12.
Sponsored

 

Bob_Mac

Well-known member
First Name
Bob
Joined
Feb 6, 2022
Threads
2
Messages
370
Reaction score
231
Location
North Carolina
Vehicles
2021 Ford F-150 Platinum
Occupation
Cyber Security | Developer
Awesome work @kennelh I was going to work on DevSecOps' (more complex) version then I saw yours (less complex) and now here it is, sweet! Couple of things if I may, when you add the graphics for the truck, can you make it selectable for either a 2 or 4 door? Like others I am getting negative values unlike @DJCurtis81, so I'm trying to find a decent logcat app to help you out, any suggestions? I'm on a Samsung S21 Plus (non-rooted).

Update: I now have a percentage and this occurred after I started the vehicle from your app and it's accurate but, the DTE is not correct. Also, double tapping the icons to open/close doors and to start/shutdown the truck are sluggish, I thought at first they weren't working and then as I went into the house the truck started and the doors unlocked. Besides the selectable door configuration let me list below:

  • 2 or 4 door selection. (just saw in your OP about this) ;)
  • Instead of double tapping the start and lock icons, can you make it a long press?
  • Speed up the start & lock sequence.
  • Can you make the 'Last Refresh' date refresh the app when long pressed?
  • Can the 'OTA Status' date be displayed in red for failed and green for success with the last OTA? Again, long pressing the date would pull up the last OTA status rather than going to settings
 
Last edited:

Bob_Mac

Well-known member
First Name
Bob
Joined
Feb 6, 2022
Threads
2
Messages
370
Reaction score
231
Location
North Carolina
Vehicles
2021 Ford F-150 Platinum
Occupation
Cyber Security | Developer
@tonesto7 would you have log info for @kennelh ? If you do, can share it here in an attachment I'd love to help out. Like you, I'm a developer and know JSON and JavaScript as well as many more languages.
 
Last edited:

imnuts

Well-known member
First Name
Mark
Joined
Mar 1, 2021
Threads
7
Messages
657
Reaction score
127
Location
Dirty Jerz
Vehicles
'21 502A Powerboost 4×4
Occupation
Facilities Engineer
Looks good ? I can try to get you the logcat output you're looking for tonight if you don't get what you need sooner.

Ford F-150 Lightning Android widget Screenshot_20220223-082148
 

tonesto7

Well-known member
First Name
Anthony
Joined
Mar 7, 2021
Threads
5
Messages
313
Reaction score
387
Location
Michigan
Vehicles
2021 Lariat 502A | 3.5L EB
Occupation
IT Admin | Software Developer
@tonesto7 would you have log info for @kennelh ? If you do, can share it here in an attachment I'd love to help out. Like you, I'm a developer and know JSON and JavaScript as well as many more languages.
Sure @Bob_Mac I will share info with the widget enemy :)
Here is the raw JSON output from the status endpoint.
 

Attachments


Sponsored

imnuts

Well-known member
First Name
Mark
Joined
Mar 1, 2021
Threads
7
Messages
657
Reaction score
127
Location
Dirty Jerz
Vehicles
'21 502A Powerboost 4×4
Occupation
Facilities Engineer
For the truck image, would one from Ford's official documentation be ok? Best I found so far is an overhead of a SuperCab from the 2017 brochure. Still looking for a newer one, but it's close.
 

Bob_Mac

Well-known member
First Name
Bob
Joined
Feb 6, 2022
Threads
2
Messages
370
Reaction score
231
Location
North Carolina
Vehicles
2021 Ford F-150 Platinum
Occupation
Cyber Security | Developer
For the truck image, would one from Ford's official documentation be ok? Best I found so far is an overhead of a SuperCab from the 2017 brochure. Still looking for a newer one, but it's close.
I'm thinking 2 & 4 door types. SuperCab would only show as 2 since there's no door modules for the half doors...
 

Sponsored
OP
OP
kennelh

kennelh

Well-known member
First Name
Louise and Ken
Joined
Feb 21, 2022
Threads
2
Messages
59
Reaction score
80
Location
Northern California
Vehicles
2021 Mustang Mach-E, Premium RWD
Occupation
Retired
This web site has the most blueprint images I've seen, and thanks to Paypal donations so far I could purchase two of them, but I'd like to stretch the funds as far as possible. A less expensive web site would be better also :)
 
OP
OP
kennelh

kennelh

Well-known member
First Name
Louise and Ken
Joined
Feb 21, 2022
Threads
2
Messages
59
Reaction score
80
Location
Northern California
Vehicles
2021 Mustang Mach-E, Premium RWD
Occupation
Retired
... Besides the selectable door configuration let me list below:
  • 2 or 4 door selection. (just saw in your OP about this) ;)
  • Instead of double tapping the start and lock icons, can you make it a long press?
  • Speed up the start & lock sequence.
  • Can you make the 'Last Refresh' date refresh the app when long pressed?
  • Can the 'OTA Status' date be displayed in red for failed and green for success with the last OTA? Again, long pressing the date would pull up the last OTA status rather than going to settings
  • 2 or 4 door selection: I plan to use this guide to parse the VIN and determine the closest image to use.
  • Long press: I wanted to do this, but AFAIK there isn't a way in Android to do this easily for widgets.
  • Speed of start & lock sequence: There appears to be a lag between when the command is received and when the data updates on Ford's servers. However, right now the code isn't attempting to refresh the status on its own, so I'll add code to do that.
  • 'Last refresh' update: there is already an easter egg which does something similar; triple tap on the last refresh and it will show when the status was last updated from the servers, and also the last time the alarm was triggered for an update (these can be different if the update failed)
  • Display failed OTA in red: I can check into that also, but would need someone to send me the string for a failed OTA (I've been pretty lucky and haven't seen one in a while).
 

Static

Active member
First Name
Dan
Joined
Dec 20, 2021
Threads
0
Messages
37
Reaction score
9
Location
USA
Vehicles
F150
  • 2 or 4 door selection: I plan to use this guide to parse the VIN and determine the closest image to use.
  • Long press: I wanted to do this, but AFAIK there isn't a way in Android to do this easily for widgets.
  • Speed of start & lock sequence: There appears to be a lag between when the command is received and when the data updates on Ford's servers. However, right now the code isn't attempting to refresh the status on its own, so I'll add code to do that.
  • 'Last refresh' update: there is already an easter egg which does something similar; triple tap on the last refresh and it will show when the status was last updated from the servers, and also the last time the alarm was triggered for an update (these can be different if the update failed)
  • Display failed OTA in red: I can check into that also, but would need someone to send me the string for a failed OTA (I've been pretty lucky and haven't seen one in a while).
If you still have my data, it should include a failed OTA update, I've been stuck in a fail loop for a while now
 
OP
OP
kennelh

kennelh

Well-known member
First Name
Louise and Ken
Joined
Feb 21, 2022
Threads
2
Messages
59
Reaction score
80
Location
Northern California
Vehicles
2021 Mustang Mach-E, Premium RWD
Occupation
Retired
If you still have my data, it should include a failed OTA update, I've been stuck in a fail loop for a while now
So it does... "aggregateStatus": "failure"
(y)
 
 





Top