Giter VIP home page Giter VIP logo

fordpass-scriptable's Introduction

Hi there 👋

Tonesto7's GitHub stats

fordpass-scriptable's People

Contributors

actions-user avatar tonesto7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fordpass-scriptable's Issues

Oil Life: No Data

Oil life shows correctly in FordPass app but the widget shows no data. Has been that way since I added the widget, no update.

Error on line 1811:23: Expected value of type string but got value of type null

I received this error after I copied down the latest script code ver1.2.3

Error log text
2021-12-17 19:54:41: Script Update Available: false
2021-12-17 19:54:41: missing: fpDeviceLanguage,fpLanguage,fpTz,fpPressureUnits,fpSpeedUnits
2021-12-17 19:54:43: (Config Menu) Done was pressed
2021-12-17 19:54:44: Error on line 1811:23: Expected value of type string but got value of type null.

IMG_0185

Thank you,

Tim

Not working for Mach-E

When I run it (for the first time) for Mach-E:

Exception Occurred
Error on line 1428:49: TypeError: null is not an object (evaluating 'vehicleStatus.fuel.distanceTo-Empty')

Window Status not displaying correctly

On my 2019 F150 at least, the window status was showing the red 'X' for all 4 windows. Looking at the debug info and comparing it to the script, it looks like the script is missing the underscore. So "Fully closed position" should be "Fully_closed_position". Likewise the "Undefined window position" should be "Undefined_window_position". Since the pre '21s don't have the ability to show the rear windows, can you make it hide those?

Battery instead Tank

i have an mild hybrid and thers is shown the Battery instead the Tank how can i change thi
Inkedfordpass_01_LI
s

Error on line 1923:108

Exception occurred: Error on line 1923:108 TypeError: null is not an object(evaluating ‘windows.driverWindowsPosition’)

I get this error after trying to tap on icon

Error on line 2574:51 TypeError: undefined is not an object

I cleared my data using the debug menu. Then, I entered my username, password and vin when I tried to start again and now I get the error "Exception Occured, Error on line 2573:51: TypeError: undefined is not an object (evaluating 'vehicle.batterFillLevel').

I ran the Charles Proxy to see what was going on. Here are some interesting findings...

Check out the unexpedly short response below

{
status: "COMPLETE",
method: "GET",
protocolVersion: "HTTP/1.1",
scheme: "https",
host: "usapi.cv.ford.com",
actualPort: 443,
path: "/api/vehicles/v4/MYVIN/status",
query: null,
tunnel: false,
keptAlive: false,
webSocket: false,
remoteAddress: "usapi.cv.ford.com/40.71.221.102",
clientAddress: "198.1...",
times: {
start: "2022-01-17T22:55:38.765-05:00",
requestBegin: "2022-01-17T22:55:38.775-05:00",
requestComplete: "2022-01-17T22:55:38.777-05:00",
responseBegin: "2022-01-17T22:55:38.837-05:00",
end: "2022-01-17T22:55:38.852-05:00"
},
durations: {
dns: 82,
connect: 27,
ssl: 151
},
totalSize: "1493",
ssl: {
protocol: "TLSv1.2",
cipherSuite: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
},
request: {
sizes: {
body: "0",
headers: 1278
},
mimeType: "application/json",
charset: null,
contentEncoding: null,
header: {
firstLine: "GET /api/vehicles/v4/MYVIN/status HTTP/1.1",
headers: [
{
name: "Host",
value: "usapi.cv.ford.com"
},
{
name: "Content-Type",
value: "application/json"
},
{
name: "Application-Id",
value: "71A3AD0A-CF46-4CCF-B473-FC7FE5BC4592"
},
{
name: "Cookie",
value: "_REDACteD"
},
{
name: "auth-token",
value: "eyJ0e...8Vg0w"
},
{
name: "Accept",
value: "*/*"
},
{
name: "User-Agent",
value: "FordPass/5 CFNetwork/1327.0.4 Darwin/21.2.0"
},
{
name: "Accept-Language",
value: "en-US,en;q=0.9"
},
{
name: "Accept-Encoding",
value: "gzip, deflate, br"
},
{
name: "Connection",
value: "keep-alive"
}
]
}
},
response: {
sizes: {
body: "42",
headers: 173
},
mimeType: "application/json",
charset: "utf-8",
contentEncoding: null,
header: {
firstLine: "HTTP/1.1 200 OK",
headers: [
{
name: "Content-Length",
value: "42"
},
{
name: "Content-Type",
value: "application/json; charset=utf-8"
},
{
name: "ActivityId",
value: "c9131f17-21cb-4772-ac30-41254cd4e69a"
},
{
name: "Date",
value: "Tue, 18 Jan 2022 03:55:38 GMT"
}
]
},
body: {
text: "{"$id":"1","status":401,"version":"1.0.0"}",
charset: "utf-8"
}
}

Required Settings Missing

I updated to 1.3.0, and now every time I run the script, it comes up with a message saying Required Settings Missing. It has the screen to put in my Fordpass username and password and the vehicle VIN. All three are already filled out, but I have to click save every time. The widget doesn’t display. Instead, it says “Alerts are not supported in a widget.” I imagine it’s happening because it’s doesn’t think it has the Fordpass credentials.

"Advanced Controls" Issue

v1.1.0

"Trail Light Check Control" brings up "SecuriAlert" functions
"Abort" brings up "Trailer Light Check" functions

Possible issue: "Abort" quits script, if it should go back to the main screen then it's an issue

Advanced Controls loop

When Advanced Controls is selected, SecuriAlert Control and Back appear. If SecurityAlert Control is selected, Zone Lighting Control comes up. If Back is selected from Advanced Controls, it goes to SecuriAlert options. To get out of Advanced Controls, Scriptable has to be stopped/killed.

Screen Shot 2021-12-17 at 8 27 51 AM

VIN not scrubbed from "relevantVin" inside "messages"

When viewing Vehicle Data Output the "vin" is scrubbed to remove personal data but it also appears in the messages returned from Ford's servers thereby exposing the users VIN number. The field is "relevantVin". If that can be scrubbed the same way as "vin" that would be great!

Example:

{
"id": "2",
"messageId": "xxxxxxxx",
"messageSubject": "Put Your FordPass™ Reward Points to Use.",
"messageBody": "Your Points can be used toward complimentary maintenance* — including your first oil change. You can even save them and use them towards the purchase of your next Ford vehicle!*Must be enrolled in FordPass Rewards to receive Points. See ",
"messageType": "EXTERNALNOTIFICATIONREQUEST",
"createdDate": "12/16/2021 09:52:57 PM",
"priority": 1,
"messageTypeId": 20001,
"highlighted": true,
"relevantVin": "3FTTW8E92NRXXXXXX",
"contentType": "Html",
"metadata": "{"DeliveryId":"1XXXXXXX|USA","PegaInteractionId":"XXXXXXX"}",
"isRead": true
},

Fuel Gauge (-6%)

Fuel displays -6% and no indicators in fuel gauge

  • iPhone Xs
  • 2021 F-150 Powerboost
  • Sync Revision Unknown

Widget doesn't load

iOS 15.3.1 iPhone 13 Pro Max

Tried resetting everything, tried using the update script, followed the video exactly again. Widget only shows default scriptable screen. Simple, detailed, medium, large. None work. Wifi or cellular.

Edit:

Ok suddenly simple / medium has showed up! Large detailed does not. I will continue to try variations.

Multi Country Support

First, you did a great work!!!

The Issue:
I use your script in Spain, in order to use it I have to change manually line 2048 (ver 1.2.1) because of the "countryCode".

From:
let req = new Request(https://www.digitalservices.ford.com/fs/api/v2/vehicles/image/full?vin=${vin}&year=${modelYear}&countryCode=USA&angle=4);

To:
let req = new Request(https://www.digitalservices.ford.com/fs/api/v2/vehicles/image/full?vin=${vin}&year=${modelYear}&countryCode=ESP&angle=4);

I think there are almost 2/3 URL that use country or countryCode, the main problem in order to be able to run your script is on line 2048

I do not know if Fordpass API info give you the "customer country", but would be a great feature in order to make it multi country without change it manually.

Another issue is with Tire Pressure:
Here in spain we use Bar and we use Metric system.
Bar = kPa / 100
I have to change line 2075 (ver 1.2.1):
from: //if (!(await usePsiUnit()) && !(await useMetricUnits())) {
to: if (!(await usePsiUnit())) {

In order to see kPA value, because with Metric and kPA selected, the script always shows psi values.

Best regards and keep the great work

Mach E, Door Objects Undefined

On the Beta version 1.1.0, for the Mach-E, I am receiving the following error:

Error on line 893:82: TypeError: undefined if not an object (evaluating 'vehicleData.statusDoors['leftFront']')

Haven't commented out to go further, but I this is the first door in the code - I am assuming that all of the doors are sowing undefined for the Mach-E.

LHD/RHD Issue

Looks like this is coded for LHD cars. When my right hand front door is open, it warns me the left front door is open. Perhaps because mine is a right hand drive car, and the code looking at ‘drivers door open’?

Low battery notification

Low battery notification does not clear, and battery voltage does not set back to the non-alert color.
Screen Shot 2021-12-15 at 7 57 53 AM
.

Not updating per defined interval?

With the latest 1.3.3 version, my widget doesn’t refresh at the default 5 min window. It’s showing many hours instead between refreshes. I’ve wiped it and redid the whole widget and still not refreshing. Anyway to down grade to 1.3.2 or 1.3.1?

Doesn‘ work

Sorry it doesn‘t work with an Mild Hybrid car

But is a Great Tool

Widget size

Could we save our preferred widget size in the settings?

Multiple Ford Pass Vehicles

It looks like the Apple Keychain settings are being overlapped when trying to setup a second Ford Pass Vehicle. Changing those keychains to be named something different was easy enough, but I can't seem to get the Vehicle Image to stick per widget/car. One of them will default to the other after a few minutes, even after clearing the keychain settings and entering again.

PSI/kPa Tire Pressure Issue

Just updated to the newest version of the script. The app is also up to date. Trying to change the tire pressure from kPa to PSI. Tried going to the widget settings prompt and clicking Pressure Units to change as it did on the previous version, this doesn’t change that issue.. still repeatedly shows only kPa, PSI does not show.

Error on line 15:70: iCloud is not supported.

Error on line 15:70: iCloud is not supported. Make sure you are logged into iCloud in the device settings.

I checked and verified that is am logged in my iCloud. I have tried installing other widget from the app gallery and those install and run just fine. I just installed scriptable this evening, so it’s the newest version.

Thank you for your help.

Oil Life shows "No Data"

"Fordpass" app shows proper value of "25%" but the widget shows "No Data". All other widget data appears correct.

Image type error.

I get the following error when running the script in scriptable on iOS 15.2.

image

Large Widget Not Working

Bronco user here trying to use the large widget. The medium and small ones work, but none of the large format's work. There are others reporting this on some of the bronco forums.

“Alerts are not supported in a widget”

First, this script is awesome, and thank you for doing this.

I’m having an issue with the widget. See the attached photo.
2A2E8F51-E5FF-491B-8868-5CA9CBB2A423

Is it related to this alert in my fordpass app?
PNG image 6

No Longer Working

I've started to receive the error below, unsure how to fix?

2022-01-15 08:05:03: FP: Token expired. Fetching new token and fetch raw data again

Error in line 1009

Hi,
I’ve got an error while converting an image .
Screenshot is attached. My car is an mache-e
0B435858-0D4D-4D31-9F61-D4988B1C45C8

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.