45 lines
1.7 KiB
Python
Executable File
45 lines
1.7 KiB
Python
Executable File
import os
|
|
|
|
#path, name_only = save_data_and_config(default_dir=DATA_DIR, default_name=None, save_dialog=True)
|
|
|
|
bml_save_current_settings()
|
|
output_file = os.path.join(os.path.dirname(path), "Monocam_AU_"+name_only + ".jpg")
|
|
|
|
#cmd = ["curl http://root:monocam-4@129.129.121.54/axis-cgi/jpg/image.cgi -o ", output_file]
|
|
cmd = "curl http://root:monocam-4@129.129.121.54/axis-cgi/jpg/image.cgi -o " + output_file
|
|
|
|
os.system(cmd)
|
|
|
|
#from javax.swing import JFileChooser
|
|
#from javax.swing.filechooser import FileNameExtensionFilter
|
|
#from java.io import File
|
|
#
|
|
#frame = JFrame()
|
|
#frame.setAlwaysOnTop(True) # Dialog erscheint im Vordergrund
|
|
#
|
|
#chooser = JFileChooser()
|
|
#
|
|
#default_dir = "/sls/X11MA/data/X11MA/scans/2511" # <-- deinen Pfad hier eintragen
|
|
#chooser.setCurrentDirectory(File(default_dir))
|
|
#
|
|
## Nur *.json anzeigen
|
|
#json_filter = FileNameExtensionFilter("JSON Dateien (*.json)", ["json"])
|
|
#chooser.setFileFilter(json_filter)
|
|
## Dialog anzeigen
|
|
#result = chooser.showSaveDialog(frame)
|
|
#
|
|
#if result == JFileChooser.APPROVE_OPTION:
|
|
# filename = chooser.getSelectedFile().getAbsolutePath()
|
|
# print("Speichere Datei unter:", filename)
|
|
#else:
|
|
# print("Speichern abgebrochen.")
|
|
|
|
# os.system("curl http://root:monocam-4@129.129.121.54/axis-cgi/jpg/image.cgi -o /sls/X11MA/data/X11MA/scratch/kleibert/Rz_0000_test.jpg")
|
|
|
|
|
|
|
|
#add_device(Positioner("FE_TRXW", "X11MA-FE-SL1:TRXW", "X11MA-FE-SL1:TRXW.RBV"), True)
|
|
#FE_TRXW.monitored=True
|
|
#http://129.129.121.54/axis-cgi/mjpg/video.cgi?id=0 true
|
|
#http://root:monocam-4@129.129.121.54/axis-cgi/mjpg/video.cgi?id=0 true
|
|
#os.system("curl http://root:monocam-4@129.129.121.54/axis-cgi/jpg/image.cgi -o /sls/X11MA/data/X11MA/scratch/kleibert/Rz_0000_test.jpg") |