Library to read data from http://www.aika168.com and other cloud services to track cars with GPS trackers installed
Project description
GPS OBD2 tracker
This project is for Chinese GPS tracker for cars.
Which GPS ODB2 trackers are supported?
This is good question and very hard to find proper answer. It was developed and tested on devices bought on AliExpress which looks like this one: After reading attached instruction - I have found error - they say to connect to 3.tkstargps.net side but app is AIKA. What I found - that device is connecting (after sending SMS to it) to XX.aika168.com - and communication between mobile app and server is open (no ssl). This was an invitation to create this library. Other GPS OBD2 Trackers that work with AIKA mobile app should work with this library too. How to check that? Look at pictures of mobile app that usuary is shown on pages where somebody is selling device. If you see something like:
Map with blue top bar with reload button on right and back arrow on left. This is AIKA app. And here is a link to Google app store: AIKA app.
How to use this code?
It's a library. To integrate with your code you have to write something like this:
from obdtracker import api, device_status, obd, location
import logging
def main():
la = api.API("http://www.aika168.com/")
la.registerUpdater(location.Location(la))
la.registerUpdater(device_status.DeviceStatus(la))
loop = asyncio.get_event_loop()
loop.run_until_complete(la.doLogin('<Your device id>', '<Your server password>') )
loop.run_until_complete(la.doUpdate())
attrs = vars(la)
print(', '.join("%s: %s" % item for item in attrs.items()))
if __name__ == "__main__":
main()
NEW: list of UNSUPPORTED mobile applications
If you are going to buy GPS OBD2 Tracker checkout this list to see which mobile apps are unsupported. Acually it means that those mobile apps use cloud service that is not supported with this tool: (Unsupported cloud / OBD2 GPS Trackers)[/doc/unsupported.md]
Supported apps / cloud services:
- aika168.com / www.aika168.com - developed using this cloud service - works
- gpscj.net / gps18.com - not sure - possibly it is working
What is next step?
Right now I'm working on:
- Home Assistant device tracker
- App for getting information about protocol between device and gateway at XX.aika168.com
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file obdtracker-0.2.6.tar.gz
.
File metadata
- Download URL: obdtracker-0.2.6.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.27.1 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a932b046476bca355786adbba552abbd5a2f2134e1e06006492f6b4fdbe1c07d |
|
MD5 | ca91dbef23b81bfbabde1cf76930ea83 |
|
BLAKE2b-256 | 26140f00be8530d003b732628803d2b3d315a4898b2bc8f15409108ae31f97f5 |
File details
Details for the file obdtracker-0.2.6-py3-none-any.whl
.
File metadata
- Download URL: obdtracker-0.2.6-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.27.1 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8be9fee5859b5ffea40a170def4143659fa8ef81be56ba67860151f186bec90 |
|
MD5 | bb83f4a4c01bc2ef9e822d62428d747f |
|
BLAKE2b-256 | 42df02ec46fa90743d4400338a1ccd1ce8f30161354dc5b15c8e37dfa67588c8 |