$ cd ServerProgramming/myapp
$ npm install
- Replace GatewayAPI url in ./ServerProgramming/myapp/routes/hapi.js
[14] const CATurl = "http://10.0.0.10";
$ node dataGetter.js
$ npm start
###################################################################
# Methods|| URL || Page #
###################################################################
# [GET ] || / || Index #
# [GET ] || /users || Participant #
# [GET ] || /hapi/ || hapi_home #
# [GET ] || /hapi/teams/all/ || All Teams Data #
# [GET ] || /hapi/teams/:teamID || Team Data #
# [GET ] || /hapi/:sensor || Sensor Data #
# [GET ] || /hapi/predicted || Predicted Data #
# [GET ] || /hapi/sendpredicted || report Predicted Form #
# [POST] || /hapi/sendpredicted || Save Predicted to DB #
###################################################################
{"team_id": "my_team_id", "description": "Forest fire detected!"}
- Isara Naranirattisai (Dream): Server Programming
- Peerawat Pipattanakulchai (Nay): Hardware Programming
- Siridej Phanathanate (Pao): Hardware Programming
- Patcharapon Jantana (Peach): Data Analysis
- Thanatcha Sangpetch (Eao): Data Analysis