Compare commits

..

4 Commits

Author SHA1 Message Date
1033df0303 Support creation of immich-to-slideshow 2024-11-23 22:27:26 -07:00
766bc77e25 decreased the slide speed 2024-11-16 09:21:18 -07:00
c9585eaa88 Link for Last 2024-05-12 15:13:38 -07:00
3c8311d6d4 Sync 2024-05-12 15:01:43 -07:00
12 changed files with 85 additions and 26 deletions

3
.gitignore vendored
View File

@ -7,5 +7,8 @@ node_modules
Images-c9dbce3b-Results Images-c9dbce3b-Results
Results Results
slideshow/random-results
sync.ffs_db sync.ffs_db
NGINdeX.io

5
.vscode/mklink.md vendored
View File

@ -16,3 +16,8 @@ ln -s /var/log/nginx /var/www/html/log-nginx
cp -R /home/syncthing/Immich/upload/thumbs/fc9fd5a1-d1b3-4080-a21c-daf9b1c24593/ /var/www/html/Images-c9dbce3b-Results/thumbs cp -R /home/syncthing/Immich/upload/thumbs/fc9fd5a1-d1b3-4080-a21c-daf9b1c24593/ /var/www/html/Images-c9dbce3b-Results/thumbs
ls -la /var/www/html/Images-c9dbce3b-Results ls -la /var/www/html/Images-c9dbce3b-Results
``` ```
```bash
mklink /J "L:\Git\www\NGINdeX.io" "L:\Git\NGINdeX.io"
mklink /J "L:\Git\www\Images-c9dbce3b-Results\thumbs" "D:\7-Question\Images-c9dbce3b-Results\thumbs"
```

View File

@ -1,5 +1,6 @@
{ {
"cSpell.words": [ "cSpell.words": [
"Immich",
"onlinepngtools" "onlinepngtools"
], ],
"files.watcherExclude": { "files.watcherExclude": {

12
.vscode/tasks.json vendored
View File

@ -1,18 +1,6 @@
{ {
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{
"label": "File-Folder-Helper AOT s Set metadata",
"type": "shell",
"command": "& L:/DevOps/Mesa_FI/File-Folder-Helper/bin/Release/net7.0/win-x64/publish/File-Folder-Helper.exe .kanbn",
"problemMatcher": []
},
{
"label": "File-Folder-Helper AOT s M tasks",
"type": "shell",
"command": "& L:/DevOps/Mesa_FI/File-Folder-Helper/bin/Release/net7.0/win-x64/publish/File-Folder-Helper.exe s M .kanbn/tasks",
"problemMatcher": []
},
{ {
"label": "Kanbn Console", "label": "Kanbn Console",
"type": "npm", "type": "npm",

1
admin

@ -1 +0,0 @@
Subproject commit be05b0f61d3fcf796dae4cc3f89f8540b2359325

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -11,9 +11,10 @@
<body> <body>
<div id="deviceReady"> <div id="deviceReady">
<p><a href='slideshow/index.html?b=2024-05-12-14-48'>Slideshow</a></p> <p><a href='slideshow/index.html?b=2024-11-23-22-25'>Slideshow</a></p>
<p><a href='slideshow/index.html?a=time&b=2024-05-12-14-48'>Slideshow (Time)</a></p> <p><a href='slideshow/index.html?a=last&b=2024-11-23-22-25'>Slideshow (Last)</a></p>
<p><a href='slideshow/index.html?a=noSleep&b=2024-05-12-14-48'>Slideshow (No Sleep)</a></p> <p><a href='slideshow/index.html?a=time&b=2024-11-23-22-25'>Slideshow (Time)</a></p>
<p><a href='slideshow/index.html?a=noSleep&b=2024-11-23-22-25'>Slideshow (No Sleep)</a></p>
</div> </div>
</body> </body>

52
index.lighttpd.html Normal file
View File

@ -0,0 +1,52 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Welcome page</title>
<style type="text/css" media="screen">
body { background: #e7e7e7; font-family: Verdana, sans-serif; font-size: 11pt; }
#page { background: #ffffff; margin: 50px; border: 2px solid #c0c0c0; padding: 10px; }
#header { background: #4b6983; border: 2px solid #7590ae; text-align: center; padding: 10px; color: #ffffff; }
#header h1 { color: #ffffff; }
#body { padding: 10px; }
span.tt { font-family: monospace; }
span.bold { font-weight: bold; }
a:link { text-decoration: none; font-weight: bold; color: #C00; background: #ffc; }
a:visited { text-decoration: none; font-weight: bold; color: #999; background: #ffc; }
a:active { text-decoration: none; font-weight: bold; color: #F00; background: #FC0; }
a:hover { text-decoration: none; color: #C00; background: #FC0; }
</style>
</head>
<body>
<div id="page">
<div id="header">
<h1> Placeholder page </h1>
The owner of this web site has not put up any web pages yet. Please come back later.
</div>
<div id="body">
<h2>You should replace this page with your own web pages as soon as possible.</h2>
Unless you changed its configuration, your new server is configured as follows:
<ul>
<li>Configuration files can be found in <span class="tt">/etc/lighttpd</span>. Please read <span class="tt">/etc/lighttpd/conf-available/README</span> file.</li>
<li>The DocumentRoot, which is the directory under which all your HTML files should exist, is set to <span class="tt">/var/www/html</span>.</li>
<li>CGI scripts are looked for in <span class="tt">/usr/lib/cgi-bin</span>, which is where Ubuntu packages will place their scripts. You can enable cgi module by using command <span class="bold tt">&quot;lighty-enable-mod cgi&quot;</span>.</li>
<li>Log files are placed in <span class="tt">/var/log/lighttpd</span>, and will be rotated weekly. The frequency of rotation can be easily changed by editing <span class="tt">/etc/logrotate.d/lighttpd</span>.</li>
<li>The default directory index is <span class="tt">index.html</span>, meaning that requests for a directory <span class="tt">/foo/bar/</span> will give the contents of the file /var/www/html/foo/bar/index.html if it exists (assuming that <span class="tt">/var/www/html</span> is your DocumentRoot).</li>
<li>You can enable user directories by using command <span class="bold tt">&quot;lighty-enable-mod userdir&quot;</span></li>
</ul>
<h2>About this page</h2>
<p>
This is a placeholder page installed by the Ubuntu release of the <a href="http://packages.ubuntu.com/lighttpd">Lighttpd server package.</a>
</p>
<p>
This computer has installed the Ubuntu operating system, but it has nothing to do with the Ubuntu Project. Please do not contact the Ubuntu Project about it.
</p>
<p>
If you find a bug in this Lighttpd package, or in Lighttpd itself, please file a bug report on it. Instructions on doing this, and the list of known bugs of this package, can be found in the
<a href="https://bugs.launchpad.net/ubuntu/+source/lighttpd">Ubuntu Bug Tracking System.</a>
</p>
</div>
</div>
<!-- s:853e9a42efca88ae0dd1a83aeb215047 -->
</body>
</html>

BIN
slideshow/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -21,7 +21,7 @@
<script src="scripts/jquery-1.9.1.min.js"></script> <script src="scripts/jquery-1.9.1.min.js"></script>
<script src="scripts/bootstrap.min.js"></script> <script src="scripts/bootstrap.min.js"></script>
<script src="scripts/jquery.bgswitcher.js"></script> <script src="scripts/jquery.bgswitcher.js"></script>
<script type="text/javascript" src="scripts/index.js?nocache=2024-05-12-14-48"></script> <script type="text/javascript" src="scripts/index.js?nocache=2024-11-23-22-25"></script>
</body> </body>
</html> </html>

View File

@ -1,9 +1,17 @@
{ {
"ImageInterval": 9123, "ImageIntervalX": 9123,
"ImageIntervalXX": 21234,
"ImageInterval": 15123,
"JsonInterval": 59000, "JsonInterval": 59000,
"ImageZero": "images/1x1_00000000.png", "ImageZero": "images/1x1_00000000.png",
"DataDirectoryX": "../.random", "DataDirectoryX": "../.random",
"DataDirectory": "../Images-c9dbce3b-Results/F)Random/c9dbce3b/[]", "DataDirectoryXX": "../Images-c9dbce3b-Results/F)Random/c9dbce3b/[]",
"DataDirectory": "random-results",
"ImmichUrlX": "http://192.168.11.2:3001/api/assets/",
"ImmichUrlXX": "https://immich.phares.duckdns.org/api/assets/",
"RandomPathsUrlX": "http://192.168.11.2:5009/api/v1/assets/5f0b1052-466d-44de-a554-226d7256850d/random-paths/",
"RandomPathsUrlXX": "https://immichtoslideshow.phares.duckdns.org/api/v1/assets/5f0b1052-466d-44de-a554-226d7256850d/random-paths/",
"RootX": "../.original", "RootX": "../.original",
"Root": "../Images-c9dbce3b-Results/thumbs" "RootXX": "../Images-c9dbce3b-Results/thumbs",
} "Root": "5f0b1052-466d-44de-a554-226d7256850d/"
}

View File

@ -5,6 +5,7 @@
var _RootAlt; var _RootAlt;
var _ImageZero; var _ImageZero;
var _DataDirectory; var _DataDirectory;
var _RandomPathsUrl;
var _Pause = 0; var _Pause = 0;
var _Images = []; var _Images = [];
@ -24,13 +25,14 @@
if (window.location.href.indexOf('time') > 0) { if (window.location.href.indexOf('time') > 0) {
time.innerText = mm + '-' + dd + '.json'; time.innerText = mm + '-' + dd + '.json';
} }
var url = _DataDirectory + '/' + mm + '-' + dd + '.json?nocache=2024-05-12-14-48'; var url = _DataDirectory + '/' + mm + '-' + dd + '.json?nocache=2024-11-23-22-25';
console.log(url); console.log(url);
$.getJSON(url, function (data) { $.getJSON(url, function (data) {
console.log('success', data.length); console.log('success', data.length);
_Images = []; _Images = [];
$.each(data, function (_, value) { $.each(data, function (_, value) {
_Images.push(value.replaceAll("\\", "/")); // _Images.push(value.replaceAll("\\", "/"));
_Images.push(value);
}); });
}) })
.done(function () { console.log('second success'); }) .done(function () { console.log('second success'); })
@ -62,7 +64,7 @@
if (_Images.length > 0 && _Pause === 0) { if (_Images.length > 0 && _Pause === 0) {
var currentDate = new Date(); var currentDate = new Date();
var currentHours = currentDate.getHours(); var currentHours = currentDate.getHours();
if (currentHours >= 22 || currentHours <= 6) { if (currentHours >= 23 || currentHours <= 6) {
_DeviceReadyDiv.attr('style', 'background-color: #191717;'); _DeviceReadyDiv.attr('style', 'background-color: #191717;');
} }
else { else {
@ -167,7 +169,7 @@
} }
if (window.location.href.indexOf('last') > 0) { if (window.location.href.indexOf('last') > 0) {
var url = '../log-nginx/access.log?nocache=2024-05-12-14-48'; var url = '../log-nginx/access.log?nocache=2024-11-23-22-25';
$.get(url, function (data) { $.get(url, function (data) {
var arrayOfUrl = []; var arrayOfUrl = [];
var arrayOfIndex = []; var arrayOfIndex = [];
@ -196,7 +198,7 @@
document.addEventListener('keyup', getInput, false); document.addEventListener('keyup', getInput, false);
var url = '../slideshow/index.json?nocache=2024-05-12-14-48'; var url = '../slideshow/index.json?nocache=2024-11-23-22-25';
console.log(url); console.log(url);
var _ = $.getJSON(url, function (data) { var _ = $.getJSON(url, function (data) {
console.log(url + ' downloaded successfully'); console.log(url + ' downloaded successfully');