=====Firmware Team Meeting - September 13, 15, 2022===== **Attended: Jaeden, Jon, Lyon**\\ =====Updates===== **September 13, 2022** __Gateway Setup__ * Downloaded code onto new computer * Login to github * Go into Control Tower repositiory and download zip. * Install postgresql, python3, and python3-pip using * su - (makes a sudo user) --> enter password --> "apt install sudo" * su - --> enter password --> "sudo apt-get install postgresql python3 python3-pip" * Check if the ssh daemon is installed and running is to run "sudo systemctl status sshd" * Get out of the root using exit * install openssh-server package using sudo apt-get install openssh-server * ssh into the machine from within it using "ssh localhost" * Extract "control-tower-master" from documents and place it in home(looking at Software Fall 2022 Documentation and Note: How to Open the Gateway) * cd control-tower --> cd gateway * sudo ./run_production.sh auto --> pulls from the weather box from the roof * control-tower/gateway/src and control-tower/gateway * change python to python3 in run_production.sh (control-tower/gateway/src) * make sure requirements file is in the same directory and run cat requirements.txt * Note: new computer so there are different ports * use sudo chmod a+rw to give permission for port * python3 works * Took out Python2 syntax (ex: from decoder import Decoder) and ran production without the sudo * Gave permission to user to use the port * Gateway/src working * Writes to file Node-420.csv __Port Forwarding__ * Open terminal on test gateway * Run /sbin/ifconfig * Run ip route * Want to see where default route goes to = 192.168.1.1 (selecting raspberry pi for ip address) * Make sure raspberry pi doesn't change addresses, otherwise, port forwarding dosn't work anymore * Open browser and go to address * Enter credentials (username: admin, password: same as scel user) * run ip link show eno8303 * ssh in * connected to scel server: ssh user@192.168.1.3 * otherwise: ssh user@server.scel-hawaii.org -p 11121 **September 15, 2022** * SQL tutorials to begin thinking about data vending machines while we wait for Kenny and Gian == Goals === * Opening Gateway === Meeting === * Tuesday, Thursday: 1:00-3:30pm