PC can run without legs. π
This python script can help you to add Running Records for your personal information. And the running route is so reasonable because we change others running route and recode.
This project is not for profit, so our organization choose opensource for it. We hope our school to make a better app, it includes encrypted transmission information, use tokens for authentication, irreversible encryption account password and more secure network interface. We sincerely hope that the school software technology is getting better and better, and it is not like this. π
So if you are like a π©, we will fuck it. Thx.
You need to install python 2.7
.
And we recommend you to use terminal
or bash
in Linux, item
in macOS and powershell
in Windows.
- requests(A HTTP library for python)
We use json string to configure this app. And notice that every time you modifed device_model, mac_address or imei, you need reset customDeviceId and deviceId to a empty string. The application will re-caculate it.
- device_model: The phone's model you want to use to upload your record.
- mac_address: The phone's mac address you want to use to upload your record.
- imei: The phone's imei you want to use to upload your record.
- startLatLng: We use it to get test points like a seed. You better change it to the geo coordinate of your school.
You need to deploy environment.
git clone https://github.com/HackSwjtu/HackRunningGo-SC.git
cd HackRunningGo-SC
Write your profile id
and password
to user.data
.
bash \[id] [password] >> user.data
cat user.data
You can run following command code to update the static running route data. It will update these files: route.data
and tp.data
.
python updateRoutes.py
Run HaRunGo.py
, and be happy!
python HaRunGo.py
Copyright (c) 2016 Hack Swjtu
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.