Hi,<div><br></div><div>For our upcoming antarctic balloon campaign, we will be using kst2. For this, we need to be able to easily submit plots to a log server. In the past, we have used "elog", and plan to for this campaign, though there may be better solutions long term.</div>
<div><br></div><div>kst1.x achieved this using a dedicated 'extension' which, in enabled at run time:</div><div>-added a configuration dialog to set things like the server, user name, password, etc.</div><div>-added a button to the tool bar which called up the elog submission dialog</div>
<div>-added the elog submission dialog which allowed the user to enter a text note, and decide whether to upload pngs of the plots, the .kst files, or both. Apply would send the message, along with the pngs and kst files as attachments.</div>
<div><br></div><div>This worked fine, but meant elog specific code which, while not run-time enabled, did add to the overall 'cruft' of the project. Most people don't use elog, and we won't forever.</div>
<div><br></div><div>I am considering an alternative.</div><div> -> no configuration dialog</div><div> -> don't save the kst file. I've never seen it useful.</div><div> -> by default, kst2 will store the text note and the kst file in /<logdir>/<ctime>.txt and /<logdir>/<ctime>.png.</div>
<div> -> in addition, kst2 will run an optionally provided script/command line command once the files have been saved to <logdir></div><div><br></div><div>The log dialog will have</div><div> -A filename entry to specify <logdir> (sticky)</div>
<div> -A text box entry to enter the comment</div>
<div> -A text line entry to enter the script to be run once the files have been saved to <logdir> (sticky)</div><div><br></div><div>In the text line entry for the script, the following variables will be defined:</div>
<div> -$PLOT: where the png of the plot has been saved (ie, /<logdir>/<ctime>.png)</div><div> -$MESSAGE: where the message has been saved(ie, /<logdir>/<ctime>.txt)</div><div> </div><div>So, for elog, you might enter:</div>
<div>/usr/bin/elog -h <a href="http://blastelogserver.info">blastelogserver.info</a> -u netterfield weakpasswd -f $PLOT -m $MESSAGE</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div>
Since it is sticky, the user would only have to enter it once. If different users need to upload entries to some</div><div>other place, like a wiki, they could write their own shell script to do it, and use the same interface.</div>
<div><br></div><div>-does this seem like a good approach?</div><div><br></div><div>cbn</div><div><br></div>