Compare commits

...

1 Commits

Author SHA1 Message Date
Claude 69e09c2708 Fix API paths and add missing settings
- Fix PHP syntax error in auto-screenshot.php (cron comment)
- Change fetch paths from absolute /api/ to relative api/
- Add missing settings to settings.json (weekly_timelapse_enabled, auto_screenshot, sharing)
2026-01-30 20:55:52 +00:00
3 changed files with 15 additions and 4 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
* Auto-Screenshot API * Auto-Screenshot API
* *
* Kann als Cron-Job aufgerufen werden: * Kann als Cron-Job aufgerufen werden:
* */10 * * * * curl -s http://localhost/api/auto-screenshot.php?key=YOUR_SECRET_KEY * Beispiel: 0,10,20,30,40,50 * * * * curl -s http://localhost/api/auto-screenshot.php?key=YOUR_SECRET_KEY
* *
* Oder via Webhook/Timer * Oder via Webhook/Timer
*/ */
+2 -2
View File
@@ -3444,7 +3444,7 @@ const VideoSearch = {
resultsDiv.style.display = 'block'; resultsDiv.style.display = 'block';
contentDiv.innerHTML = '<div style="text-align:center;padding:20px;"><span style="font-size:2rem;">🔄</span><br>Suche läuft...</div>'; contentDiv.innerHTML = '<div style="text-align:center;padding:20px;"><span style="font-size:2rem;">🔄</span><br>Suche läuft...</div>';
fetch('/api/video-search.php?' + params.toString()) fetch('api/video-search.php?' + params.toString())
.then(r => r.json()) .then(r => r.json())
.then(data => { .then(data => {
if (data.success) { if (data.success) {
@@ -3602,7 +3602,7 @@ const ShareModal = {
resultDiv.innerHTML = '<div style="color:#666;padding:10px;text-align:center;">🔄 Wird gesendet...</div>'; resultDiv.innerHTML = '<div style="color:#666;padding:10px;text-align:center;">🔄 Wird gesendet...</div>';
resultDiv.style.display = 'block'; resultDiv.style.display = 'block';
fetch('/api/share.php', { fetch('api/share.php', {
method: 'POST', method: 'POST',
headers: { 'Content-Type': 'application/json' }, headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ path, type, email, message, sender_name: senderName }) body: JSON.stringify({ path, type, email, message, sender_name: senderName })
+12 -1
View File
@@ -25,7 +25,18 @@
"zoom_timelapse": { "zoom_timelapse": {
"show_zoom_controls": true, "show_zoom_controls": true,
"max_zoom_level": 4.0, "max_zoom_level": 4.0,
"timelapse_reverse_enabled": true "timelapse_reverse_enabled": true,
"weekly_timelapse_enabled": true
},
"auto_screenshot": {
"enabled": false,
"interval_minutes": 10,
"max_images": 144,
"save_to_gallery": true
},
"sharing": {
"email_enabled": false,
"share_link_expiry_hours": 24
}, },
"content": { "content": {
"guestbook_enabled": true, "guestbook_enabled": true,