Readit News logoReadit News
Posted by u/kcon a year ago
Show HN: Nissan's Leaf app doesn't have a home screen widget so I made my ownkevintechnology.com/posts...
Nissan's official mobile app for their LEAF electric car doesn't have a widget for quickly checking the car's battery charge status on your phone's home screen, so for a fun side project I decided to make my own using free tools like GitHub Actions, Appium, Tailscale, and Apple Shortcuts.
STELLANOVA · a year ago
Great work! I love commitment to make it at no cost as @liamwire mentioned. Still not sure why on Earth car manufacturers would not just release APIs open to all owners (basically issue API key based on VIN) and let them use it. For developers to build apps that will only require API key to be entered would be win/win for everyone....
xp84 · a year ago
> Still not sure why on Earth car manufacturers

Like all similar "why don't they have at least a self/community-supported open basic API" questions, the answer is usually the same: They're afraid someone else might create something of value, in part using their API, without them getting their own beaks wet in the process. If you want to integrate with a Nissan Leaf, even if all you wanted were the most harmless read-only access, they'd like you to request a biz dev meeting with them where they'll be happy to talk ruinous terms.

For a related story, see how Chamberlain (MyQ) torched the great, community-built Home Assistant integration it once had for no reason at all. They're afraid somehow they could stop getting the kickbacks from the likes of Walmart and Amazon delivery which they enjoy today, seeing themselves as co-owners of your garage door.

smokel · a year ago
> They're afraid someone else might create something of value, in part using their API, without them getting their own beaks wet in the process.

In most cases it's not about profit, but about having to invest serious amounts of effort to please one or two hackers, who will then DoS your API as soon as you've made a mistake.

mook · a year ago
Pretty sure Chamberlain/MyQ was because they made their API go through the cloud for no reason (that garage door opener isn't going to get out of WiFi range), so the only way to make the app reliably work was to hit their servers. Which they then had to pay for.

Had the whole setup been local first, they wouldn't ever had that issue. But again, that makes it hard to charge people for using it.

andrepd · a year ago
This is why I avoid all those "smart" devices like the plague.
baloki · a year ago
They’re API used to work via just providing a VIN however that also allowed remote control so you could just run through all the VINs Nissan uses and turn on remote heating, etc.

This was reported in the media which caused Nissan to start locking down their API something fierce.

Then the three years free of many services have started to expire for most vehicles, so locking it down more became a potentially profitable exercise so now they actual have development work against it.

0XAFFE · a year ago
Car APIs are $$$.

If you want to have some unified API check https://enode.com/connect, but that too costs a premium.

63 · a year ago
That's pretty cool! It's extremely frustrating that they go through so much effort to block third party apps, but the solution of just downloading and emulating the android app is simoultaneously very clever and very straightforward. A nice reminder not to overthink simple things. Cheers on a project well done!
liamwire · a year ago
I love the commitment to getting this to work at no cost, on principle. Many of my favourite personal projects have followed similar paths, and have often been fun challenges for that reason alone. Great article, thanks for sharing.
wizerno · a year ago
Does anyone else miss the functionality of the Android WhatsApp widget [1] on iOS? Being able to read messages without sending read receipts via the widget is a great feature. The iOS notification 'peek' is a clumsy substitute.

Is this a fundamental limitation of iOS widgets/APIs, or just something WhatsApp hasn't implemented? Curious if others have found better ways to handle this on iPhone.

[1] https://www.tomsguide.com/how-to/how-to-use-the-WhatsApp-wid...

russum · a year ago
Long-pressing the chat in your thread list gives you a quick preview seemingly without sending read receipts.
nikanj · a year ago
It is implemented in the app itself. WhatsApp > Settings > Privacy and turn off Read receipt.
bayindirh · a year ago
The use case is slightly different. I prefer to send read receipts, but I also like to peek at messages without sending them and removing unread counts because I want to add the message to my mental queue, but don't want the false impression that I didn't bother to answer the said message.
createaccount99 · a year ago
> Being able to read messages without sending read receipts via the widget is a great feature.

More like an unfair anti-feature

mort96 · a year ago
Hm? Should I as the user not be able to decide what I send or don't send?
Ambadassor · a year ago
If you're running Home Assistant and your LEAF is from before 2019, you may be able to replace the scraping part with the Nissan Leaf integration https://www.home-assistant.io/integrations/nissan_leaf/. Their iOS app also has support for custom widgets https://companion.home-assistant.io/docs/integrations/ios-wi... which might suffice for what you're trying to achieve.

It's unfortunate that newer cars are not supported.

kcon · a year ago
Thanks for sharing! Unfortunately I do have a model year newer than 2018.
djaychela · a year ago
Just like OBD, I think api access to data like this should be open to the car user. If the manufacturer is taking the data ( as they do with my renault zoe) then it should be available to the end user at a standard API which is available across all manufacturers, so if you change car you can just point your setup at a new endpoint with new credentials and all the endpoints and responses are standard, just like OBD2 is

(yes I know manufacturer tools go deeper but that's another issue)

smokel · a year ago
In the EU, this may soon be covered by the Data Act [1]. It'd be interesting to see if other continents will benefit as well, similar to how cookie banners are now a global thing.

[1] https://digital-strategy.ec.europa.eu/en/policies/data-act

Gasp0de · a year ago
Daring to call cookie banners a benefit.
kjkjadksj · a year ago
You should be able to intercept inspect and modify any data in any device you own. I’m not even sure what the reason for locking things down really is anymore. It isn’t any more secure as hackers breach into these things routinely anyhow, and everyone running the same software expands the risk envelope and reward of hacking greatly. It turns power users away who might have added to sales just buying your product to use as a dummy sensor for some other purpose vs the ones marketing come up with.

So it is arguably more dangerous and leads to fewer sales. But again businesses don’t take positions that are rational if they can take an irrational position that every other business in the sector also takes and therefore easily justify to shareholders without having to present actual numbers they might reject anyhow.

light_hue_1 · a year ago
I wish that US car manufacturers would finally realize that they're software companies with a hardware device, and pivot accordingly.

The differentiating factor between car models is not the hardware in the world of EVs. It's the software. And right now, if you aren't either on Tesla, Rivian, or Polestar the software experience is horrific.

conk · a year ago
I don’t want to drive a computer. I want to drive a machine. Give me some buttons to control the car and a decent screen for nav (CarPlay/android auto) and I’m happy.
pabs3 · a year ago
All cars are computers, since at least 20 years. At minimum they do central locking, cruise control etc.
margalabargala · a year ago
Plenty of car companies have realized the don't have core competency in software and simply run Android with some addons. Chevrolet for example does a fairly good job of this.

Tesla has some great software ideas, and awful execution. Yes, they have the ability to continuously improve vehicles after sale and they use it. But they use it to scramble the climate control location every third month, and to charge subscriptions for hardware their customers already bought.

znkynz · a year ago
This mindset gets the Demister function buried in a touchscreen. I don't want a touchscreen for most driving related functions; buttons or switches thanks.
kristopolous · a year ago
I used to be in the space. Basically everyone would install an SBC behind the dash to listen to the canbus and then report things over cell often with ways of shorting a circuit in order to do features.

It's whackadoodle. I mean how different are cars, really? They have wheels, doors, windows, odometers, go places at various speeds, need fuel ... you'd think there'd be some agreed universal baseline like MIDI ... you'd think.

And the manufacturers held on to their protocols like they had done their own Manhatten project so everyone just had to backwards engineer things.

Why is inoperability so precious? Ultimately the purchasing decision is the car's price, features, availability, terms of the deal... The phone app has nothing to do with it, let it go.

jfim · a year ago
It's coming. Ford and GM have started to build more software in house, while VW is partnering with Rivian partly to get their software expertise.
chgs · a year ago
The problem car companies have is if they are beholden to android and apple then they are at the mercy of whatever those two want to charge.
vincekerrazzi · a year ago
I had the same situation with my Polestar app up until recently. My solution was perhaps fewer moving parts? Worked well for nearly a year before I didn’t need it anymore.

-my backup phone connected to my NAS, running a signed in polestar app - a homebridge plugin that called a shell script that used adb to unlock the phone, open the app, grab the screen contents and parse it.

Boom, lock and battery status in homebridge and access to dozens of other tools for creating widgets and shortcuts.

Deleted Comment