Changes between Version 15 and Version 16 of Other/Summer/2024/lLM


Ignore:
Timestamp:
Jul 22, 2024, 6:53:52 PM (4 months ago)
Author:
Jose
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Other/Summer/2024/lLM

    v15 v16  
    6161}}}
    62622. **Frontend Development**:
     63We were able to develop a rough outline for what our dashboard is supposed to look like and all the features that should be included.
     64*Dashboard Outline image:[[Image(https://online.publuu.com/594674/1333216, width=500, height=400)]]
    6365
    64663. **Maestro Setup**: We got 6 Maestros setup and running within our group's local workspace. These Maestros are all set to run experiments and start collecting data. We plan roll out more Maestro devices throughout the rest of WINLAB in the coming two weeks, with the end goal of having ~25 Maestro devices throughout the facility collecting data.
     
    8789}
    8890}}}
    89 2. **Frontend Development**:
     912. **Frontend Development**: We were able to develop a script to turn off all Pis at once and also shut off specific Pis using comma separation. This was done using Paramiko to SSH into the Pi and run the "sudo shutdown —h now" command. We also created a dashboard GUI for this process so that a user could do this with ease, and we plan to integrate it into the barebones HTML file soon.
    9092
    91 3. **Termination Control**: We also worked on adding more specific termination control for Maestros. Previously, running the end_experiment script would terminate all Maestros, or at least attempt to do so. Hence, even if only one was running, it would try and connect to each every Maestro, of which there are more than 30 total, and this process was inefficient. Hence, we wanted to add a feature that could shut off specified Maestros and give the user more control and efficient workflow when interacting with the Maestros. Still a work in progress, with tr and it should be finalized by the upcoming week.
     93{{{#!python
     94client = paramiko.client.SSHClient()
     95    client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
     96    try:
     97        print(f"Connecting to {ip}...")
     98        client.connect(ip, username=username, password=password, timeout=1)
     99        print(f"Connected to {ip}. Shutting down...")
     100        client.exec_command("sudo shutdown -h now")
     101        print(f"{ip} is shutting down.")
     102    except paramiko.AuthenticationException:
     103        print(f"Authentication failed for {ip}. Check username and password.")
     104    except paramiko.SSHException as ssh_err:
     105        print(f"SSH error occurred for {ip}: {str(ssh_err)}")
     106    except socket.timeout:
     107        print(f"Connection to {ip} timed out. Check if the Pi is plugged in.")
     108    except Exception as e:
     109        print(f"Failed to connect to {ip}: {str(e)}")
     110    finally:
     111        client.close()
     112}}}
     113
     114*Shutdown Maestros image:[[Image(https://online.publuu.com/594674/1333239)]]
     115
     1163. **Termination Control**: We also worked on adding more specific termination control for Maestros. Previously, running the end_experiment script would terminate all Maestros, or at least attempt to do so. Hence, even if only one was running, it would try and connect to each every Maestro, of which there are more than 30 total, and this process was inefficient. Hence, we wanted to add a feature that could shut off specified Maestros and give the user more control and efficient workflow when interacting with the Maestros. It is still a work in progress, with tr, and it should be finalized by the upcoming week.
    92117
    931184. **GitHub Documentation**