diff --git a/Fotovoltaico.py b/Fotovoltaico.py index c691c70..1f3f312 100644 --- a/Fotovoltaico.py +++ b/Fotovoltaico.py @@ -1,5 +1,6 @@ from src.Functions_Energy_Model import * from src.Functions_General import * +import subprocess location_ita = 'Biella' # location in Italian capacity = 100 # kWp @@ -10,7 +11,13 @@ derating_factor_percent = 1 # derating factor that reduce the efficiency of the config = yaml.safe_load(open("config.yml", 'r')) path_export = str(config['filename_output_csv_gen_pv']) # path to save the results +joe = config['joe_fight'] +if(joe == True): + if shutil.which('wmplayer') is not None: + proc = subprocess.Popen(['ffplay', 'assets/joefight.mp4']) + else: + print("ffplay non installato, no joe fight.") # INIZIALIZZAZIONE PARAMETRI PER SIMULAZIONE location_eng = location_italian_to_english(location_ita) diff --git a/assets/joefight.mp4 b/assets/joefight.mp4 new file mode 100644 index 0000000..f8093eb Binary files /dev/null and b/assets/joefight.mp4 differ diff --git a/config.yml b/config.yml index a4b67e6..8e0689c 100644 --- a/config.yml +++ b/config.yml @@ -198,3 +198,7 @@ category_id: altro: N idro: O cogeneratore: G + + +# joe fight? +joe_fight: false