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)
This commit is contained in:
@@ -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
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -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 })
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user