Giter VIP home page Giter VIP logo

georide-position's Introduction

Welcome to georide-position 👋

All Contributors Build Status Code style: black codecov Dependabot Status Requirements Status

get the last day deplacement of the georide tracker for public sharing (road trip for example)

In this project I use georide. Georide is a gps tracker for motorcycle. Feel free to check their work.

🔨 Install

pip install -r requirements.txt
python manage.py migrate

🔧 Usage

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

⁉️ Help with georide api

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.

✅ Run tests

python manage.py test

Author

👤 Jules LE BRIS

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Thanks goes to these wonderful people (emoji key):

Jules LE BRIS
Jules LE BRIS

💻 🚧
TristanElain
TristanElain

💻
gearsof44
gearsof44

💻 ⚠️
Raphaël TISON
Raphaël TISON

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2019 Jules LE BRIS.
This project is MIT licensed.

georide-position's People

Contributors

airthee avatar allcontributors[bot] avatar dependabot-preview[bot] avatar imgbot[bot] avatar ripoul avatar tristanelain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

georide-position's Issues

Allow user to connect to see his road trip

For now, only me can see my road trip. The aim of this issue is to show the next version of the project :

  • see where we can have a free database
  • set secret key on prod and travis env (see setting.py)
  • we have to create a model : user(name, startDate, endDate, (token georide || id georide+password georide))
  • create the page to create account, modifie account
  • lint
  • edit readme
  • add header when connected
  • add function to disconect
  • add disconect button on all page
  • add welcome page with all the link and some sceen of the app
  • test all function
  • how to reset password when forgot it ?

info token

add info on token management and how to revoke a token. We can tell that the token are crypted in DB and will not be use.

We can use tooltips on token input in all forms. We can place an "info" icon in the input field : example.

V2

The main objective of the V2 is to increase performence and add some security for the owner of the bike.

  • set site in maintenance mode : django package and html template
  • Migrate to google app engine (@ripoul can do it) : an example of working django project on app engine here
  • re-add app adress in readme and github description
  • add two dates in env var to make sure the date requested is in the public trip
  • add two dates pickers for select wanted trip : the date picker default values can be the 2 env vars. You can't choose a date that is not in the dates area.
  • make real test

horraire

avec le décalage horraire de georide (2h) -> une journée va de 2h a 1h59

change password

Add the ability to change the password of an account with email vérification.

Add some information on trip page

I think there are some missing informations on the "trip" page :

  • total distance
  • total time
  • average speed
  • max speed? (I don't think it's a good idea)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.