Skip to content

Commit

Permalink
added showBufferImage to pictures slide show
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenverspeek committed Jan 26, 2024
1 parent 5e4706d commit df72845
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions components/Cube/Pictures.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,26 @@ const { start, stop } = useAPI();
const cubePicturesAppCommand = computed(() => {
let command;
//if (loop.value) {
// // build command and command line options;
// const cubeAppPath = hZellerDir + 'utils/led-image-viewer';
// command = ['sudo', cubeAppPath, ...cubeOptions, '-f', '-w3', '-s'];
// if (cubePictureDir.value) {
// // werkt niet door wildcard:
// command.push(appDir + `cube_pictures/${cubePictureDir.value}/\*.png`);
// //command.push(appDir + 'cube_pictures/' + cubePictureDir.value + '/Laugh-icon.png');
//}
if (loop.value) {
// build command and command line options;
const cubeAppPath = hZellerDir + 'utils/led-image-viewer';
command = ['sudo', cubeAppPath, ...cubeOptions, '-f', '-w3', '-s'];
command = ['ts-node', appSrcDir + 'cubePictures/showBufferImage.ts'];
if (cubePictureDir.value) {
command.push(appDir + `cube_pictures/${cubePictureDir.value}/\*.png`); // werkt niet door wildcard
//command.push(appDir + 'cube_pictures/' + cubePictureDir.value + '/Laugh-icon.png');
command.push('--cubePictureDir');
command.push(cubePictureDir.value);
}
command.push('--tSlide');
command.push(1);
command.push('--showTime');
command.push(20);
} else {
// build command and command line options;
command = ['ts-node', appSrcDir + 'cubePictures/showCubePictures.ts'];
Expand Down Expand Up @@ -103,10 +115,10 @@ async function showCubeMap() {
Slide Show
</label>
</div>
<!--

<div style="word-break: break-all;">{{ cubePicturesAppCommand }}</div>
<div style="word-break: break-all;">{{ cubeMapAppCommand }}</div>
-->

<div class="field is-grouped">
<p class="control">
<button @click="showCubePictures" class="button is-primary" :class="{ 'is-loading': loading }">
Expand Down

0 comments on commit df72845

Please sign in to comment.