svarvel / mobile-testbed

Code for managing NYU mobile testbed
0 stars 1 forks source link

Next steps as per our last discussion (Matteo) #37

Open svarvel opened 1 year ago

svarvel commented 1 year ago

3) investigate how to automate Airalo -- (need a phone setup from Yasir) 5) Recover original Kenzo app code 7) Inform Daniel on how to run the server counterpart (web app, database, and grapha)

svarvel commented 1 year ago

[5] Web-app is running at the same server you used for the addon. Code is here: ~/mobile-testbed/src/server You can run simply as: python web-app.py  If you run with an extra param, it will switch to port 8083 instead of 8082. This is because I noticed that having too many clients on the same port was slowing down the server, probably some race condition or blocking condition I did not account for, so using two ports helped. The client randomly pick a port at each state-update.sh restart: 

_FLIP=$(($(($RANDOM%10))%2)) if [ $FLIP -eq 1 ] then       SERVER_PORT=8082 else       SERVERPORT=8083 fi

[5] You can run graphana as follows:  sudo systemctl status grafana-server The interface is then reachable here: http://23.235.205.53:3000/d/_oT43e27z/amigo-dashboard?orgId=1 with user <admin, F1n0AllaF1n3> Of course for now some of the panels make non sense since there is no data to show. 

[4] The source code of the Kenzo app is here: https://www.dropbox.com/scl/fi/gpxe8g219uzopoyctnoyt/mobile-app.tgz?rlkey=0lzv5nggy0wfno0qauskmmo53&dl=0