Giter Club home page Giter Club logo

zju_sports_punchclock's Introduction

ZJU_Sports_Punchclock

Wanna punch sports clock automatically? Try this! This tutorial is for those who have both Mac and iPhone.

[TOC]

Install Xcode of the latest version

Because the development is based on iOS system, we use Xcode to construct the project and simulate the whole process. Note that if you want to do this on a real phone, you need to connect your iPhone to your Mac.

Get your location of latitude and longitude

Open Gaode API and get your intended location. Note that this location (GCJ02) is not exact because of restrictions in China. Thus, the real location should be obtained by a mathematical algorithm.

For exampl,e Tian’an men: [116.397498, 39.90916]

Use the shift algorithm from GCJ02 to WGS84

Modify the main function in the python script ./coordTransform_utils.py and run python2 ./coordTransform_utils.py to get the real location.

For exampl,e Tian’an men: [116.39125436909006, 39.907756481171596]

Construct the Program

Open Xcode, and build a new program. Create a new GPX file.

image-20211213205015924

image-20211213205033710

Copy and paste the exact location (latitude and longtitude) into the file.

image-20211213205236863

Run the program on your phone

Edit the scheme of the program to real phone and click “run”.

image-20211213205156975

Then stop running and run the program for several times, and then the location is successfully shifting from your place now to another place!

zju_sports_punchclock's People

Contributors

biechi avatar

Watchers

 avatar

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.