Update fc_block_decode.py add config string

pull/370/head
Alan Johnston 6 months ago committed by GitHub
parent 9ee7f27262
commit f29ae21d75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -44,10 +44,14 @@ system_and_print("sudo rm " + image_dir + image)
#system_and_print("sudo rm " + html_dir + "*") #system_and_print("sudo rm " + html_dir + "*")
system_and_print("sudo rm " + html_dir + "images/*") system_and_print("sudo rm " + html_dir + "images/*")
with open('/home/pi/fctelem/fcdecode.conf', 'r') as config:
config_string = config.read()
print(config_string)
#system_and_print("cp /home/pi/CubeSatSim/sstv/sstv_image_1_320_x_256.jpg " + html_dir + "image_file.jpeg") #system_and_print("cp /home/pi/CubeSatSim/sstv/sstv_image_1_320_x_256.jpg " + html_dir + "image_file.jpeg")
head_string = '<HEAD><meta http-equiv="refresh" content="5"><title>FunCube CubeSatSim Telemetry</title></HEAD>\n<HTML>\n<H2>FunCube CubeSatSim Telemetry</H2>' + \ head_string = '<HEAD><meta http-equiv="refresh" content="5"><title>FunCube CubeSatSim Telemetry</title></HEAD>\n<HTML>\n<H2>FunCube CubeSatSim Telemetry</H2>' + \
'<p><pre> <img height="256" width="320" src="' + image + '.jpeg"><br> <A HREF="images" target="_blank">All images</a><br>' config_string + '<p><pre> <img height="256" width="320" src="' + image + '.jpeg"><br> <A HREF="images" target="_blank">All images</a><br>'
foot_string = '</HTML>' foot_string = '</HTML>'
telem_string_format = " Image: {image_id:3d} count: {image_count:2d}<p>" + \ telem_string_format = " Image: {image_id:3d} count: {image_count:2d}<p>" + \
" Vx(mV): {Vx:5d} Vy(mV): {Vy:5d} Vz(mV): {Vz:5d}<p>" + \ " Vx(mV): {Vx:5d} Vy(mV): {Vy:5d} Vz(mV): {Vz:5d}<p>" + \

Loading…
Cancel
Save

Powered by TurnKey Linux.