Sponsored

RedTXV

Well-known member
Joined
Apr 16, 2021
Threads
1
Messages
424
Reaction score
78
Location
Texas
Vehicles
2021 SQ Limited
If I scroll through this code to copy and paste one more time, and it doesn't, I'm going to throw this thing against a wall.
Sponsored

 

BHunted1

Well-known member
First Name
John
Joined
Mar 17, 2021
Threads
2
Messages
400
Reaction score
104
Location
Sumner County TN
Vehicles
2021 Ford-150 Platinum Hybrid
Occupation
Retired
Try using the suggestion by Tonesto7 below:

There is a flag in the script code called clearKeychainOnNextRun that can be set to wipe all data.

Once you do that then change the flag back and you should get the login again. Or re-copy and paste all the script again after.
Is there an ez way to search on the iphone script for the flag? Code is huge. I tried adding a new version of the script and it does the same thing. So what you say could be the prob. Just not ez to find stuff in it.
 

BHunted1

Well-known member
First Name
John
Joined
Mar 17, 2021
Threads
2
Messages
400
Reaction score
104
Location
Sumner County TN
Vehicles
2021 Ford-150 Platinum Hybrid
Occupation
Retired
If I scroll through this code to copy and paste one more time, and it doesn't, I'm going to throw this thing against a wall.
Seems iphone doesn't let you cut and paste that ez.
 

jameswall0

Member
First Name
James
Joined
Dec 17, 2021
Threads
0
Messages
9
Reaction score
2
Location
Atlanta, GA
Vehicles
2019 Explorer Limited, 2022 F150 Limited
Occupation
Senior Manager Tax
Is there an ez way to search on the iphone script for the flag? Code is huge. I tried adding a new version of the script and it does the same thing. So what you say could be the prob. Just not ez to find stuff in it.
I would suggest copy and pasting the script into NotePad++ on compute then search for flag and note line number then go into the iPhone and it should be the same line.

I went ahead and did it and the setting is on line 116.
 

BHunted1

Well-known member
First Name
John
Joined
Mar 17, 2021
Threads
2
Messages
400
Reaction score
104
Location
Sumner County TN
Vehicles
2021 Ford-150 Platinum Hybrid
Occupation
Retired
I would suggest copy and pasting the script into NotePad++ on compute then search for flag and note line number then go into the iPhone and it should be the same line.

I went ahead and did it and the setting is on line 116.
Fantastic! That worked great! Many thanks!
 

Sponsored

BHunted1

Well-known member
First Name
John
Joined
Mar 17, 2021
Threads
2
Messages
400
Reaction score
104
Location
Sumner County TN
Vehicles
2021 Ford-150 Platinum Hybrid
Occupation
Retired
Can't get mileage to miles. Insist on metric. Won't change in settings....
 

jameswall0

Member
First Name
James
Joined
Dec 17, 2021
Threads
0
Messages
9
Reaction score
2
Location
Atlanta, GA
Vehicles
2019 Explorer Limited, 2022 F150 Limited
Occupation
Senior Manager Tax
Can't get mileage to miles. Insist on metric. Won't change in settings....
hmm, gonna have to defer to Tonesto7 on that one if re-doing the script doesn't fix it.
 
Last edited:

kb2755

Well-known member
Joined
Jul 26, 2021
Threads
0
Messages
521
Reaction score
26
Location
Ontario, Canada
Vehicles
'22 F-150 XLT 302A Sport
Seems iphone doesn't let you cut and paste that ez.
I think it was suggested either in this thread, or somewhere in the documentation, but it's much easier to copy/paste on computer and save to iCloud Drive. I've been copying/pasting into TextEdit on Mac then overwriting the file in iCloud Drive, way easier than trying to do it on iPhone.

That being said, I'm getting a number of the errors others are having, but I think it's because I've severely jumped the gun and my truck isn't built yet! I'm in mobile product management, so this had me excited :p
 

JediNut

Well-known member
First Name
Emmett
Joined
Aug 4, 2021
Threads
14
Messages
163
Reaction score
81
Location
Rocklin, CA
Vehicles
'21 Ford F-150, '05 Harley Davidson Softail Deuce
Personally, I make changes in the "iCloud Drive/Scriptable" folder on my Mac and magically... it is changed on my iPhone. :) (iCloud sync is a wonderful thing)
 

Sponsored

Codiferous

Member
Joined
Jun 1, 2021
Threads
0
Messages
10
Reaction score
0
Location
Miami
Vehicles
2021 2.7 XLT
This is pretty neat! However, I keep getting an error after entering my credentials and VIN: "Error on line 1814:23: Expected value of type string but got value of type null"

1813 and 1814 is

async function setKeychainValue(key, value) {
await Keychain.set(key, value);

Seeing as it looks like has to do with the Keychain, am I experiencing something similar to the others that have weird passwords?
 

dalmcrantz

New member
First Name
David
Joined
Dec 6, 2021
Threads
0
Messages
2
Reaction score
1
Location
California
Vehicles
2021 F-150
I think it was suggested either in this thread, or somewhere in the documentation, but it's much easier to copy/paste on computer and save to iCloud Drive. I've been copying/pasting into TextEdit on Mac then overwriting the file in iCloud Drive, way easier than trying to do it on iPhone.

That being said, I'm getting a number of the errors others are having, but I think it's because I've severely jumped the gun and my truck isn't built yet! I'm in mobile product management, so this had me excited :p
I’m in the same boat (or should I say truck). Mines built and in transit somewhere between MI and CA. I hope to get her this weekend. So I’ll wait till I can get the FordPass app connected and then I hope the errors will go away. But major kudos to Tonesto7 for all his work on this!
 
OP
OP
tonesto7

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
Release v1.3.0
  • Modified the VIN field to store VIN as an uppercase string.
  • Added additional VIN format validations to setup prompt (Makes sure it's the right length and doesn't have any special characters).
  • Fixes and additional error handling for reported issues in the forums.
  • Modified the widget timestamp to reflect the last time the vehicle checked in and matches the last communication in the FordPass App (It's more descriptive now as well)
  • Added the ability to hardcode an id into the script to allow for multiple instances for multiple vehicles. See the SCRIPT_ID in the script header (Not fully tested).
  • Reworked the way all the window, door, and tire details are generated. They should now be laid out symmetrically.
  • Tire pressure numbers will change color based on different pressures states for low or critical. (see the widgetConfig.tirePressureThresholds parameter in the script header to define custom values)
  • Restructured the bottom of the widget to display events like low battery, deep sleep, firmware update, and any other errors. (It's also on a different line than the timestamp now).
  • Updated the widget generation logic to support the different iOS widget layouts [small, medium, large, extraLarge] (Actually layout changes coming soon).
  • Started working on the small widget layout working (needs a lot more work)

Download Link:
https://raw.githubusercontent.com/tonesto7/fordpass-scriptable/main/Fordpass Widget.js

Instructions:
tonesto7/fordpass-scriptable: FordPass Widget for Scriptable (github.com)

What's Next?

  • Slowing down on features and focusing on stability.
  • Working on small widget layout.
Community:
Discord: https://discord.gg/VPw3zw9v
 
Last edited:

JediNut

Well-known member
First Name
Emmett
Joined
Aug 4, 2021
Threads
14
Messages
163
Reaction score
81
Location
Rocklin, CA
Vehicles
'21 Ford F-150, '05 Harley Davidson Softail Deuce
Last edited:
OP
OP
tonesto7

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
This release seems to have messed up the "small screen" layout...
What iPhone do you have?

That doesn't look like the new code... The bars in between the doors/windows/tires are a table now and the divider would be perfectly straight.

I just tried this on my kid's iPhone 8 and it is formatted correctly.
Does it format the same if the widget is generated using the widget menu?
Sponsored

 
Last edited:
 





Top