Rambalac / GMaster

Panasonic Lumix Camera remote control application for Windows 10 (UWP)
94 stars 23 forks source link

Is an Addon for Octoprint somewhat possible? #37

Open Sersch97 opened 3 years ago

Sersch97 commented 3 years ago

First of all, thank you. I use the GX80 as a webcam for streaming and since it doesnt have a 180° turnable screen it is handy to be able to focus on pc and adjust settings, while it is connected to pc via hdmi.

I wanted just to ask if you can create an addon for octoprint based on your work here. This would open a huge possibility for the 3d printing community since a lot of panasonic cameras have ptp but it is read only. So most cameras cant be used for timelapses of 3d prints without connecting directly to the wifi of the camera with the raspberry pi. but since most people use the raspberry pi to monitor the print for safety it seems to be a bad trade disconnecting it from the main network just to connect to the camera. but since you can connect the panasonic to the main network and then connect with your app to the cam trough the pc on the main network without losing internet connection it would allow the raspberry to stay avaible for monitoring and also making timelapses with the panasonic cameras.

there are already some trys like the following one

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 \

Photo:

!/bin/sh

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

where you can ad a script to the pi and execute it at specific timings for the camera to take a photo. But you have to be connected directly to the cams network. I tried the scripts while the pi and the cam were both at the main network but the scripts didnt work that way.

Also this doesnt provide a Preview ofcourse. So your app is far superior to that approach. Even if it is a Preview with bad quality it would make possible to see if everything works right.

Just a question if you could create such an addon. I know i ask for a lot here. This isnt meant to be disrespectful.

Greetings, Sersch