Commit 2ce4fdf2 authored by colmoneill's avatar colmoneill

changes to the generation script to include a deploy

parent c2d7ea33
......@@ -2,6 +2,7 @@ import glob
import sox
from datetime import datetime
cbn = sox.Combiner()
from subprocess import call
current_datetime = datetime.now().strftime('%Y-%m-%d_%H-%M-%S')
web_recorder_dl_folder = "/home/colm/"
......@@ -37,5 +38,11 @@ list_to_concat.insert(3, backing_track_everything)
print("about to concat: ")
print(list_to_concat)
output_path = str(output_path2 + current_datetime + ".wav")
latest_path = str(output_path2 + 'latest.wav')
print("Generating : " + output_path)
cbn.build(list_to_concat, output_path, 'concatenate')
cbn.build(list_to_concat, latest_path, 'concatenate')
# this will only work if connected to project network Dearly_Beloved
cmd = "scp " + latest_path + " pi@raspberrypi.local:/home/pi/"
print(cmd)
call(cmd.split(" "))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment