Commit 3a95aeb0 authored by gijs's avatar gijs

Some final edits

parent 64fe576b
......@@ -33,12 +33,12 @@ app = Flask(__name__)
@app.route("/api/ploteps/")
def ploteps():
epsfile = request.args.get('epsfile')
hpglfile = '{}.hpgl'.format(os.path.splitext(epsfile)[0])
hpglfile = './eps/{}.hpgl'.format(os.path.splitext(epsfile)[0])
# converting eps to hpgl
subprocess.call([
'./eps2hpgl.sh',
'./{0}'.format(epsfile)
'./eps/{0}'.format(epsfile)
])
handle = open(hpglfile)
......@@ -63,4 +63,4 @@ def ploteps():
return '100'
if __name__ == "__main__":
app.run(host="localhost", port=5555, debug=True)
\ No newline at end of file
app.run(host="localhost", port=5555, debug=True)
../pad/eps
\ No newline at end of file
% To run the API
screen -S api
cd /home/pi/Documents/osp.work.metahoguet/plotter
. /home/pi/venvs/metahoguet/bin/activate
python wsgi.py
% !!! ctr+a d
% To run the plotter
screen -S plotter
cd /home/pi/Documents/osp.work.metahoguet/plotter
. /home/pi/venvs/metahoguet/bin/activate
python runner.py
% !!! ctr+a d
% To run the mpost downloaded
screen -S mpost
cd /home/pi/Documents/osp.work.metahoguet/pad
bash exportMeta.sh
% !!! ctr+a d
screen -r api
python wsgi.py
% !!! ctr+a d
screen -r plotter
python runner.py
% !!! ctr+a d
screen -S mpost
bash exportMeta.sh
% !!! ctr+a d
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