get the last day deplacement of the georide tracker for public sharing (road trip for example)
🏠 Homepage
In this project I use georide. Georide is a gps tracker for motorcycle. Feel free to check their work.
pip install -r requirements.txt
python manage.py migrate
for dev purpose you don't need anything else.
To start the server :
python manage.py runserver
For production you need to set the parameter for your database and the secret key of your app :
- db_host : the database host
- db_name : the database name
- db_pass : the database password
- db_port : the database port (ex: 5432)
- db_user : the database user
- secret_key : a long secret key
All the informations you need can be find on the georide api documentation here.
To get a georide token :
curl --request POST \
--url https://api.georide.fr/user/login \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data 'email=[your email]&password=[your password]'
To get your tracker id :
curl --request GET \
--url https://api.georide.fr/user/trackers \
--header 'Authorization: Bearer [your token]' \
--header 'cache-control: no-cache'
To get the position history :
curl --request GET \
--url 'https://api.georide.fr/tracker/[tracker id]/trips/positions?from=[start date]&to=[end date]' \
--header 'Authorization: Bearer [your token]'
The date has to be formated like that : YYYYMMDDTHHmmSS
.
python manage.py test
👤 Jules LE BRIS
- Github: @ripoul
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Thanks goes to these wonderful people (emoji key):
Jules LE BRIS 💻 🚧 |
TristanElain 💻 |
gearsof44 💻 |
Raphaël TISON 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Give a ⭐️ if this project helped you!
Copyright © 2019 Jules LE BRIS.
This project is MIT licensed.