Update fc_block_decode.py clear images at start, keep count in filename

fc-c
Alan Johnston 10 months ago committed by GitHub
parent ed6c70eb6d
commit f693494196
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -34,7 +34,7 @@ ssdv = "/home/pi/ssdv/ssdv -d -J "
system("sudo rm " + image_dir + image) system("sudo rm " + image_dir + image)
#system("sudo rm " + html_dir + "*") #system("sudo rm " + html_dir + "*")
#system("sudo rm " + html_dir + "/images/*") system("sudo rm " + html_dir + "/images/*")
#system("cp /home/pi/CubeSatSim/sstv/sstv_image_1_320_x_256.jpg " + html_dir + "image_file.jpeg") #system("cp /home/pi/CubeSatSim/sstv/sstv_image_1_320_x_256.jpg " + html_dir + "image_file.jpeg")
@ -160,7 +160,8 @@ if __name__ == "__main__":
filename = image_dir + image + str(image_id) + "." + str(image_count) + ".jpeg" filename = image_dir + image + str(image_id) + "." + str(image_count) + ".jpeg"
system(ssdv + image_dir + image + " " + filename) system(ssdv + image_dir + image + " " + filename)
system("cp " + filename + " " + html_dir + "image_file.jpeg") system("cp " + filename + " " + html_dir + "image_file.jpeg")
system("cp " + filename + " " + html_dir + "images/" + image + str(image_id) + ".jpeg") # system("cp " + filename + " " + html_dir + "images/" + image + str(image_id) + ".jpeg")
system("cp " + filename + " " + html_dir + "images/")
telem_string = fstr(telem_string_format) telem_string = fstr(telem_string_format)
with open(html_dir + "index.html", "w") as html_file: with open(html_dir + "index.html", "w") as html_file:
html_file.write(head_string) html_file.write(head_string)

Loading…
Cancel
Save

Powered by TurnKey Linux.