Skip to content

0lidaxiang/offlineFriends

Repository files navigation

offline-friends

Design of Wearable Electronics Applications, CS3043701 course of NTUST in 2018.

task

  1. read data from MCS and HTML5-GPS.(2018-06-10)
  2. flush every minutes.(2018-06-12)
  3. write the data into database.(2018-06-12)
  4. read the data from database.(2018-06-13)
  5. solve the https quesion about accessing GPS only by HTML5.(2018-06-17)
  6. deploy the server.(2018-06-17)
  7. compute GPS in one city.(2018-06-20)
  8. compyte stepFrequency of one user.(2018-06-20)
  9. front end pages.(2018-06-24)
  10. update the server and test.(2018-06-25)

library

sudo pip3 install mysqlclient

database

source ./documents/database/version1.0.sql;
DROP TABLE user;
DELETE FROM user where id = 3;

INSERT INTO user  (nickname, age, gender, city, location, longitude, latitude, stepFrequency, heartBeat)    VALUES  ( "A2", "22", "0", "taipei", "daan", "","", "", "" );

INSERT INTO user  (nickname, age, gender, city, location, longitude, latitude, stepFrequency, heartBeat, stepStartTime, hobby)    VALUES  ( "A1", "24", "1", "taipei", "daan", "","", "", "" , "", "read novel, draw"), ( "A2", "22", "0", "taipei", "daan", "","", "", "" , "", "read novel");

UPDATE user SET gender='1' WHERE id= 4 ;
UPDATE user SET stepFrequency='1' WHERE nickname="A1";
UPDATE user SET heartBeat='1' WHERE nickname="A1";

About

Design of Wearable Electronics Applications, CS3043701 course of NTUST in 2018.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages