Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Apr 11 06:02

    ardevd on master

    added ability to select additio… (compare)

  • Apr 11 06:02
    ardevd closed #89
  • Apr 11 00:07
    azryn42 commented #89
  • Mar 22 08:17
    ardevd milestoned #89
  • Mar 22 08:17
    ardevd labeled #89
  • Mar 22 07:44
    ardevd commented #89
  • Mar 22 07:43
    ardevd assigned #89
  • Mar 22 04:07
    azryn42 opened #89
  • Jan 14 14:24
    ardevd milestoned #88
  • Jan 14 14:24
    ardevd assigned #88
  • Jan 14 14:24
    ardevd labeled #88
  • Jan 14 14:24
    ardevd opened #88
  • Jan 12 18:49

    ardevd on master

    Added donation link to README (compare)

  • Jan 02 22:34
    ardevd commented #87
  • Jan 02 22:33
    ardevd commented #87
  • Jan 02 20:32

    ardevd on master

    Fixed boolean typos in README (compare)

  • Dec 31 2020 17:18
    aarons2222 commented #87
  • Dec 31 2020 10:33
    ardevd labeled #87
  • Dec 31 2020 10:33
    ardevd commented #87
  • Dec 31 2020 09:54
    aarons2222 edited #87
Abu Dhabi Dude
@AbuDhabiDude_twitter
You’ll have to fill in the text fields first (username, password, UUID and VIN) first.
Hang on. Might have found the issue. I think iOS has changed the way it sets variables.
dernotte
@dernotte
On the very first POST, in the body, why do you define the "grant_type" twice ? once with "password", another one with "username". It is not required by the API, no ?
Abu Dhabi Dude
@AbuDhabiDude_twitter
For some reason it wouldn’t work without that. I suspect it’s something to do with Apple’s implementation for the Shortcuts app. I think I may have pinned this down. Apple has changed the format of a dictionary obtained from “get contents of url”. It used to produce a CSV format but now it places a “line break” between each item. I should be able to rewrite these now.
ardevd
@ardevd
Sounds like a bug/typo to me
Abu Dhabi Dude
@AbuDhabiDude_twitter
@Ardevd it looks like a typo and it shouldn’t work, but for some reason I had to insert that at the time. It may be unnecessary now (haven’t tested that) but it seems to work with it in there so I’m inclined to just leave it.
I’ve now got to the blank field being returned after device registration. So things are looking up. iOS used to return a text field which needed to be converted into a dictionary. It now seems to do that for you, so I was trying to convert a dictionary into a dictionary!
dernotte
@dernotte
Is there any IDE on the Mac to create/debug a shortcut or do you have to create/debug on the phone ?
You make making "dangerous" assumptions in your script, such as refreshToken as the first key/value of the return JSON. You have no guarantee that will always be the case. That could break any time. The API has no contract no this.
ardevd
@ardevd
I'm not of much help here since I don't have iOS at hand, but isn't there a proper JSON API you can use to handle the responses properly?
Abu Dhabi Dude
@AbuDhabiDude_twitter
@dernotte O understand why you’d say that but iOS shortcuts is not the friendliest thing to use. I’m kind of pushing it to the edge of what it’s really intended for. There is limited control over certain things. But what I can say is that up until the change (iOS 14 beta is probably responsible) the shortcuts have run every time without fail. Been using them for over a year.
dernotte
@dernotte
I have never created a shortcut before today. I was not aware for those limitation inthe language or the platform...
Abu Dhabi Dude
@AbuDhabiDude_twitter
Yes they’re both incredibly useful and incredibly annoying at the same time! I’m almost there now. Just need to work out how to handle the dictionary that is produced by vehicleStatus. Then I can rewrite all my shortcuts and get everything working again.
dernotte
@dernotte
BTW, I have ordered an "open Vehicle" ODBII kit yesterday. I will see what I can with it. I saw your question on their forum about the IPace... Nobody did it before... :-( It seems like there is no hacker in the IPace community :-)
ardevd
@ardevd
Some have played with ODB kits for the I-Pace before. There's apparently a product in development. Can't remember the name of it
And I'm working on another fun project. I'm not sure anyone else would want to go through with the same, but I'm excited nonetheless, haha
Abu Dhabi Dude
@AbuDhabiDude_twitter
It’s been hacked. Power Cruise Control is in beta at the moment and works well, giving state of health, power consumption, charging speed, battery temps etc. And ABRP have a dongle option coming soon which allows the ABRP app to receive live data from the I-Pace. I’ve been testing it for them and it’s awesome!
Patrick
@Pat28
I've been testing PCC (Power Cruise Control) as well and it really works great. Considers up/downhill, speed and I think Leonardo is even working on windspeed (head, tail wind). The product is not yet available for iOS, but works great on Android.
Abu Dhabi Dude
@AbuDhabiDude_twitter
The abrp one works on both android and iOS but there is a cost involved for it. It’s incredible though. Builds a profile of your individual car and driving style, allows for weather, wind and temperature (gets them live from the internet for your whole route) and plans stops intelligently at faster chargers and sites with more chargers. They’re working on getting live charger data but some companies are reluctant. I’ve used both and I have to say it’s better. But with a cost!
dernotte
@dernotte
I don't have any android device, but maybe 10 or more IOS device at home :-), so I can't use PCC. Is it free ? if yes, why don't open source their findings on Jaguar PID ?
Abu Dhabi Dude
@AbuDhabiDude_twitter
PCC is a closed beta at the moment.
Poag
@Poag
Morning All. I see previously someone has posted some work on pushing the jlrpy output into splunk to do graphing. Has anyone done similar for pushing the data into influxdb? I've had a poke at it myself but struggling with the formatting to push all fields into influx. Its not a jlrpy problem, i'm just wondering if anyones done it already :)
ardevd
@ardevd
I made a Elasticsearch based solution and use Kibana for visualization. Have not done the same for Influxdb and I'm not sure I'd want to. The need for the ability to perform queries on textual data outweighs any edge Influxdb might have on performance.
@Poag just my 2¢. :)
I might do a write-up and some packaging to make it easy for people to reproduce my work. I'm pretty happy with the result
Poag
@Poag
No problem :) I've already got influx/grafana setup for HA stuff so didn't really want to standup a new environment for one task.
ardevd
@ardevd
A simple docker-compose is all you need to get an ELK stack up and running :)
but I get your desire to consolidate everything into a single setup
Poag
@Poag
heheh, yeah i do love me some docker containers. I'm just always trying to slim things down, finally got around to slimming 8 almost identical containers into a single container at the weekend. Now my container list only has slight scroll-itis
ardevd
@ardevd
hah, I hear you
Poag
@Poag
@ardevd I'm sort of done with a jlrpy -> influx script now. Just having a ponder tho, during my testing a i hit a 'to many requests' response. I don't suppose you know the request rate?
ardevd
@ardevd
No idea what the limit is. I've never encountered it, but I'm also pretty conservative in my usage. I don't want to annoy JLR too much
Poag
@Poag
Yeah thats fair. They aren't exactly expecting significant traffic from their apps :)
So i've uploaded the current script. It imports all fields returned by status, health and position currently. However my lack of python experience is causing me trouble with the position information. A friend gave me a little hand with lines 66-67 but this only gives position to 1dp.
I maybe cheeky here, but i dont suppose you could take a look and spot where i'm falling down could you?
https://github.com/Poag/jlrpy-influxdb/blob/master/jlr-influx.py
ardevd
@ardevd
Hmm, what do you mean by 1dp?
Poag
@Poag
I did mean 1 decimal place, but infact its parsing out as, 1.1long and 51lat atm.
so its not consistent between the two, i'm certain jlrpy is not at fault and its my lack of python knowledge getting in the way.
Poag
@Poag
So fresh eyes, ignore my statements above i was applying a filter when checking the measurements. All works perfectly :)
ardevd
@ardevd
Glad to hear it :)
Poag
@Poag
@ardevd Have you ever noticed that when a vehicle is in motion its eco and comfort ranges drop to 0?
image.png
Poag
@Poag
Sorry not in motion. In precondition. Times are out of whack.
ardevd
@ardevd
Yep, I've seen that at times too. It's an API bug and I just ignore values I know are bogus
Poag
@Poag
Yeah i'm writing something to ignore a value if its more than 10% from the previous value
Croco17
@Croco173_twitter

Hey Edvard!
Do you about the Mercedes API?

https://developer.mercedes-benz.com/products

The web API is very limited but the Android SDK allows access to like 100 more data points.
How did you reverse engineer it? Could be interesting in this case :)

Croco17
@Croco173_twitter
@ardevd
ardevd
@ardevd
I haven't looked at the Mercedes API, no :)
Croco17
@Croco173_twitter
Can you tell me how can I us e.g. their SDK and the certificate to middle man the api requests? :D
ardevd
@ardevd
That totally depends on how they've handled TLS. If documenting the Mercedes remote API is something that would be of value for a larger group of owners, I could perhaps look into it
Croco17
@Croco173_twitter
Honestly I don't know a lot about their implementations...
It's a uni project and we're trying to unify several car APIs in one application in order to offer a digital logbook across different car makes :) At least this would be very helpful to us :D