Capturing Data from the PHEV site

Ford Focus Electric Forum

Help Support Ford Focus Electric Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

mcowger

Active member
Joined
Jun 22, 2014
Messages
32
I wanted a way to graph some of my data from the PHEV site in a different way than ford does it (and I want to track odometer too, because I'm on a lease)...

Here's a Python snippet to do so...its pretty easy:

https://gist.github.com/mcowger/4e831afd2a71916ed2ee
 
mcowger said:
I wanted a way to graph some of my data from the PHEV site in a different way than ford does it (and I want to track odometer too, because I'm on a lease)...

Here's a Python snippet to do so...its pretty easy:

https://gist.github.com/mcowger/4e831afd2a71916ed2ee
What all data are you able to retrieve? I looked through the code but am not a programmer so I couldn't fully follow what data it's gathering. Thanks!
 
hybridbear said:
mcowger said:
I wanted a way to graph some of my data from the PHEV site in a different way than ford does it (and I want to track odometer too, because I'm on a lease)...

Here's a Python snippet to do so...its pretty easy:

https://gist.github.com/mcowger/4e831afd2a71916ed2ee
What all data are you able to retrieve? I looked through the code but am not a programmer so I couldn't fully follow what data it's gathering. Thanks!

A lot. Everything you can see on the first page when you login to https://phev.myfordmobile.com/ is in the result of the query....

Battery state of charge, distance to empty, odometer (both in km), go times, etc....


Here's a simpler formatted list of the data:

BATTERYDISPLAYTYPE: BEV,
BATTERYHEALTH: W_STATUS_GOOD,
BATTERYPERFORMANCE: W_STATUS_GOOD,
CHARGEPOINTARRIVAL: Home,
CHARGINGTIMESSTATUS: {@nil: true},
DATENOW: 2014-07-11T18:01:23.146-05:00,
ELECTRICDTE: 118.5,
FUELDTE: {@nil: true},
HASGOTIMESACCESS: 1,
HASGPSACCESS: 1,
HASREMOTECONTROLACCESS: 1,
LATITUDE: 00.832,
LONGITUDE: -100.2026,
MAINTENANCEWINDOW1: {@nil: true},
MAINTENANCEWINDOW2: {@nil: true},
MODELCODE: P3R,
MODELNAME: Focus,
MODELYEAR: 2014,
NEXTCHARGEBEGINTIME: 2014-07-10T01:02:00.000-05:00,
NEXTCHARGEENDTIME: 2014-07-10T03:14:00.000-05:00,
ODOMETER: 1501,
OVERALLDTE: {@nil: true},
REMOTESTARTDURATION: 0,
SCREENNAME: Redactd Name,
TIREPRESSURE: W_STATUS_GOOD,
active: 1,
authToken: 3183-xxx--yyy,
authorizationStatus: {@nil: true},
autoUpdateOn: 0,
chargeStatus: W_CHGSTAT_FULLCHG,
chargeprofile: W_CHGTYPE_VALCHG,
country: W_COUNTRY_US,
custId: 1YYYYYYYY,
emailAddress: redacted,
firstName: Redacted,
fuelDTE: {@nil: true},
hashtype: Z,
keyName: Matt,
keyNumber: 1,
keyPersonalizable: 1,
keyPersonalized: 1,
language: W_LANG_EN,
lastName: Redacted,
mobileCarrier: W_CARRIER_VZW,
mobileNumber: 1234567891,
motivemode: W_MOTVMODE_NONE,
nil: ,
pendingauthorization: 4,
persistent: 0,
plugStatus: W_PLUGSTAT_PLUGGED,
releaseversion: 1.2_2013-06-13_01,
sleepMode: 0,
stateOfCharge: 100,
temporaryPassword: 0,
timezone: W_ZONE_USPAC,
updated: 2014-07-10T10:30:51.716-05:00,
vehicleType: 2014 Focus,
vehiclecolor: W_VHCCOLOR_PLATWHITE,
vehiclenickname: FocusEV,
vin: XXXXXXX
 
mcowger said:
hybridbear said:
mcowger said:
I wanted a way to graph some of my data from the PHEV site in a different way than ford does it (and I want to track odometer too, because I'm on a lease)...

Here's a Python snippet to do so...its pretty easy:

https://gist.github.com/mcowger/4e831afd2a71916ed2ee
What all data are you able to retrieve? I looked through the code but am not a programmer so I couldn't fully follow what data it's gathering. Thanks!

A lot. Everything you can see on the first page when you login to https://phev.myfordmobile.com/ is in the result of the query....

Battery state of charge, distance to empty, odometer (both in km), go times, etc....


Here's a simpler formatted list of the data:

BATTERYDISPLAYTYPE: BEV,
BATTERYHEALTH: W_STATUS_GOOD,
BATTERYPERFORMANCE: W_STATUS_GOOD,
CHARGEPOINTARRIVAL: Home,
CHARGINGTIMESSTATUS: {@nil: true},
DATENOW: 2014-07-11T18:01:23.146-05:00,
ELECTRICDTE: 118.5,
FUELDTE: {@nil: true},
HASGOTIMESACCESS: 1,
HASGPSACCESS: 1,
HASREMOTECONTROLACCESS: 1,
LATITUDE: 00.832,
LONGITUDE: -100.2026,
MAINTENANCEWINDOW1: {@nil: true},
MAINTENANCEWINDOW2: {@nil: true},
MODELCODE: P3R,
MODELNAME: Focus,
MODELYEAR: 2014,
NEXTCHARGEBEGINTIME: 2014-07-10T01:02:00.000-05:00,
NEXTCHARGEENDTIME: 2014-07-10T03:14:00.000-05:00,
ODOMETER: 1501,
OVERALLDTE: {@nil: true},
REMOTESTARTDURATION: 0,
SCREENNAME: Redactd Name,
TIREPRESSURE: W_STATUS_GOOD,
active: 1,
authToken: 3183-xxx--yyy,
authorizationStatus: {@nil: true},
autoUpdateOn: 0,
chargeStatus: W_CHGSTAT_FULLCHG,
chargeprofile: W_CHGTYPE_VALCHG,
country: W_COUNTRY_US,
custId: 1YYYYYYYY,
emailAddress: redacted,
firstName: Redacted,
fuelDTE: {@nil: true},
hashtype: Z,
keyName: Matt,
keyNumber: 1,
keyPersonalizable: 1,
keyPersonalized: 1,
language: W_LANG_EN,
lastName: Redacted,
mobileCarrier: W_CARRIER_VZW,
mobileNumber: 1234567891,
motivemode: W_MOTVMODE_NONE,
nil: ,
pendingauthorization: 4,
persistent: 0,
plugStatus: W_PLUGSTAT_PLUGGED,
releaseversion: 1.2_2013-06-13_01,
sleepMode: 0,
stateOfCharge: 100,
temporaryPassword: 0,
timezone: W_ZONE_USPAC,
updated: 2014-07-10T10:30:51.716-05:00,
vehicleType: 2014 Focus,
vehiclecolor: W_VHCCOLOR_PLATWHITE,
vehiclenickname: FocusEV,
vin: XXXXXXX
Are you able to retrieve specific trip efficiency data? That's what I would be most interested in. I don't like the fact that the trip summary screen in the car doesn't show any decimal places. To get the decimal places for miles & regen I have to go to MFM. But MFM rarely shows the Wh/mi for the trip, so I have to get that from the car. The only other way I could get trip Wh/mi is by going to the graph and selecting trip and then viewing the bar graph for each trip.

I really just wish that Ford would dedicate some resources to fixing MFM so that the Wh/mi would consistently show up online. The website works great for PHEV owners...
 
It looks like you can do: a POST to webTripAndChargeLogDesktopPS
with PARAMS: { SESSIONID: <from login>, PAGENUMBER: 1, PAGESIZE: <n> }
to get some trip and charge data (the data that comes back is all in metric units).

Update: Yes: You get the SESSIONID from the login (authToken) and you can extract your trip and charge data.
 
Back
Top