AndrOBD icon indicating copy to clipboard operation
AndrOBD copied to clipboard

Add support for tasker

Open krzyk opened this issue 7 years ago • 2 comments

It would be good to be able to:

  1. Connect to OBD
  2. Start collecting data
  3. Publish all data using MQTT
  4. Disconnect from OBD

Using Android Intents, and publish them on wiki so one can call them from tasker.

My use case is to have publish all OBD data collected published when my phone connects to my car Bluetooth (send intent to connect to OBD/start collecting data/publish data to MQTT), and stop it when my phone disconnects from bluetooth.

Example of great tasker integration is GPSLogger project, see their FAQ regarding Tasker here: https://gpslogger.app/#controllinggpslogger

krzyk avatar Apr 05 '19 15:04 krzyk

I second that.

Tasker misses some solution for OBD. We can automate anything but we can't acces OBD data. I really think that would be the first app of this kind with Tasker support.

gabriellluz avatar May 14 '19 15:05 gabriellluz

Sorry for not responding so long. I am currently working on another project, so I haven't looked into the details yet.

Couldn't this be done by the AndrOBDMqttPlugin just by a automated start of AndrOBD (by Tasker) on BT connect?

All the rest could be done by the AndrOBD startup settings.

fr3ts0n avatar May 18 '19 18:05 fr3ts0n

Any updates on this? Or did anyone find a workaround?

wunter8 avatar Jul 10 '23 16:07 wunter8

The only thing to be automated for your scenario is the automated start/stop of AndrOBD on BT connect/disconnect.

All internal settings of AndrOBD startup behaviour can be set in AndrOBD preferences. (see: https://github.com/fr3ts0n/AndrOBD/wiki/Automation-on-startup)

fr3ts0n avatar Jul 16 '23 17:07 fr3ts0n

I just tried it again today. I have all the checkboxes checked under "common settings" > "use last settings", but when I open the app, nothing happens until I click the "connect"/plug-shaped icon. Is that how it's supposed to be?

wunter8 avatar Jul 28 '23 21:07 wunter8

You are correct. The app currently requires a manual "connect" action. I'll fix that so it will auto-connect when started and auto-connect is preferred

fr3ts0n avatar Aug 06 '23 17:08 fr3ts0n

That'd be awesome! Thanks!

wunter8 avatar Aug 06 '23 17:08 wunter8

That was quick. Thanks! I'll watch for the update through F-Droid

wunter8 avatar Aug 06 '23 17:08 wunter8

Test version is available here: https://t.me/AndrOBD_dev/252

F-Droid update will be triggered soon

fr3ts0n avatar Aug 06 '23 17:08 fr3ts0n

It works great! Thanks!

wunter8 avatar Aug 11 '23 16:08 wunter8