From 6f6b108d1b77ab5061df46d3a9bff223ae509c9e Mon Sep 17 00:00:00 2001
From: Alan Johnston \nFunCube CubeSatSim Telemetry
\n

'
foot_string = "
Vx: {Vx:5d} mV Vy: {Vy:5d} mV Vz: {Vz:5d} mV
Ix: {Ix:5d} mA Iy: {Iy:5d} mA Iz: {Iz:5d} mA" +telem_string = f"\nSequence number: {sequence:5d} Image ID: {image_id:3d} count: {image_count:2d}
Vx: {Vx:5d} mV Vy: {Vy:5d} mV Vz: {Vz:5d} mV
Ix: {Ix:5d} mA Iy: {Iy:5d} mA Iz: {Iz:5d} mA
Vb: {Vb:5d} mV Ib: {Ib:5d} mA" with open("/home/pi/CubeSatSim/groundstation/public_html/index.html", "w") as html_file: html_file.write(head_string) html_file.write(telem_string) @@ -122,7 +124,7 @@ if __name__ == "__main__": filename = "/home/pi/fctelem/image_file" + str(image_id) + "." + str(image_count) + ".jpeg" system("/home/pi/ssdv/ssdv -d -J /home/pi/fctelem/image_file " + filename) system("cp " + filename + " /home/pi/CubeSatSim/groundstation/public_html/image_file.jpeg") - telem_string = f"\nSequence number: {sequence:5d} Image ID: {image_id:3d} count: {image_count:2d}
Vx: {Vx:5d} mV Vy: {Vy:5d} mV Vz: {Vz:5d} mV
Ix: {Ix:5d} mA Iy: {Iy:5d} mA Iz: {Iz:5d} mA" + telem_string = f"\nSequence number: {sequence:5d} Image ID: {image_id:3d} count: {image_count:2d}
Vx: {Vx:5d} mV Vy: {Vy:5d} mV Vz: {Vz:5d} mV
Ix: {Ix:5d} mA Iy: {Iy:5d} mA Iz: {Iz:5d} mA
Vb: {Vb:5d} mV Ib: {Ib:5d} mA" with open("/home/pi/CubeSatSim/groundstation/public_html/index.html", "w") as html_file: html_file.write(head_string) html_file.write(telem_string)