Table of Contents
Please install the following packages before using this website.
- pandas
- random
- numpy
- os
- flask
- flask_util_js
- matplotlib
- requests
- datetime
- json
Replace player/user info.csv
file with the version including Fitbit tokens.
- Launch the python program
app_cookie.py
. - In the program console, there should be a website link provided as following. In your browser, go to this website link.
Running on http://YOUR_IP_ADDRESS:5000/ (Press CTRL+C to quit)
- Log in with the
username
as 12,password
as 123
The cards are drawn randomly from the folder team/card_image
. The cards are drawn by a fixed order. Adding new cards, removing cards, or renaming cards will change this order.
To add a new card, please make sure that it is in the .png
format, and placed under the same folder team/card_image
. The template static/cards_image_template.pptx
can be used. Every card can be one slide, and exported by saving the powerpoint as image page by page.
Add/remove/modify a row in the static/cards.csv
file.
Change the bonus points/cards, which can be picked up at a city, in the map/city_dic.csv
file - bonus
field. If there is no bonus, please input nothing
.
Change the distance between cities in the map/city_dis.csv
file
- dis1 refers to the shorter distance
- dis2 refers to the longer distance
- to add a direct route in the map, please add a new row. Please make sure that
city_id1<city_id2
, and both city ids are recorded in themap/city_dic.csv
file.
When making changes to previous information, please only modify individual cells in the .csv
file. Please not to add new lines or spaces or cells in those information files. Otherwise, it could break this website.
- Player miles:
player/miles/PLAYER_ID.csv
- Player commitment cards:
static/commitment_cards/(PLAYER_ID)_week(WEEK_NUMBER).csv
- Team progress(location, points,miles,cards):
team/TEAM_ID.csv
- Team basic information(team member,name, game start date):
team/team info.csv
Add a new row for the participant in the file player/user info.csv
. The required fields are the following:
- user_id
- first_name
- last_name
- permanent_token, which is token to retrieve fitbit data, and generated by the same approach as the Motivate Walking study.
- Add a new row for the team in the file
team/team info.csv
. All fields are required for the team. - Make a copy of the file
team/template.csv
, rename it asteam/TEAM_ID.csv
, whereTEAM_ID
is the same as the team_id field in theteam/team info.csv
file.