Lumix GX80 wifi script works but gives error

Hi guys i try to describe the problem in an order.

What is the goal?
Making timelapses with a Lumix GX80 and it works, the camera connects and is making photos, but it ceeps sending errors to octopi. See pictures.

How is the Camera connected?
Since the GX80 has a PTP read only (Gphoto say itself that the camera cant shoot fotos with it)i can only connect trough the wifi of the camera.

What is the Problem?
My scripts work if i click on "Test script" but they create a error message in octolapse.
For example i have a code to "emulate" the camera app and pressing "test script" leads to a working connection. But gives me an error.
The script fot the Snapshot works aswell, but also creates an error.
And yes, i also used "sudo chmod" to make the scripts workable.

What are the Scritps?

*Script for the connection:*

#!/bin/sh
curl -X Get -G http://192.168.54.1//cam.cgi?mode=setsetting \
-d type=device_name \
-d value=SM-G903F \

sleep 1


curl -X Get -G http://192.168.54.1//cam.cgi?mode=accctrl \
-d

 type=req_acc \
-d value=4D454930-0100-1000-8001-024500021C98 \
-d value2=SM-G903 \


sleep 1

curl -X Get -G http://192.168.54.1//cam.cgi?mode=setsetting \
-d type=device_name \
-d value=SM-G903F \



*Script for the snapshot:*

#!/bin/sh
 curl -X Get -G [http://192.168.54.1/cam.cgi?mode=camcmd](https://www.youtube.com/redirect?event=comments&redir_token=QUFFLUhqa0RQU3NVSkhoakduOVE2elZPQmh0R25fNWhkd3xBQ3Jtc0tsbGY1TFFlNXRBTlprTzVpem9CeGVyMmoxaW8tR0lpR21KdEhmQ2NZcWNGT0R0U2lJZWZoTTRDS3g2aUk2Nk1DVFcxakQzdXhSQTdFR0F0WkoySXFWZ0VZdVNlZHVjZVZ4cUtRMmRJQzAwRXFzQ1Yxcw&q=http%3A%2F%2F192.168.54.1%2Fcam.cgi%3Fmode%3Dcamcmd&stzid=Ugx9Pb17qLmmp3WLhWZ4AaABAg) \
 -d value=capture \

*"Activation" of every script:*
sudo chmod 777 /home/pi/scripts/ [name of the script].sh

What are the Errors?

To make it clear again. The errors dont stop the print!

First error i got was when the print starts and tries connecting the pi to the camera that the camera shows "app has to be updated" but this only appears if the pi tries to connect while print is starting. If i try to connect with "test script" it works flawlessly. If I then press okay at the Cam and then press "test script" it connects normally again to the cam and proceeds shooting fotos, so it still executes the other script.

Here are the Screenshots of the Errors and the settings of the cam:

Error displayed:

Second displayed:

Settings of the cam:

Cutout from the logging of the last Print with the Camera:

In case you didnt saw it in the pictures, i am using the camera and a additional webcam.

Failed to connect to 192.168.54.1 port 80: Connection timed out
2021-05-04 17:27:26,743 - octolapse.script - ERROR - Error output (stderr) for 'Lumix WIFI - Before Print Camera Script':
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 78 0 78 0 0 4875 0 --:--:-- --:--:-- --:--:-- 4875
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 31 0 31 0 0 2214 0 --:--:-- --:--:-- --:--:-- 2384
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 78 0 78 0 0 13000 0 --:--:-- --:--:-- --:--:-- 13000
2021-05-04 17:27:39,874 - octolapse.script - ERROR - Error output (stderr) for 'Lumix WIFI - Snapshot Camera Script':
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 78 0 78 0 0 7090 0 --:--:-- --:--:-- --:--:-- 11142
2021-05-04 17:33:06,818 - octolapse.script - ERROR - Error output (stderr) for 'Lumix WIFI - Snapshot Camera Script':
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 78 0 78 0 0 7090 0 --:--:-- --:--:-- --:--:-- 11142
2021-05-04 17:35:08,528 - octolapse.script - ERROR - Error output (stderr) for 'Lumix WIFI - Snapshot Camera Script':
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

The Snapshot Error repeats obviously for every layer.