Connect Lumix Camera via Wifi

Knowing that this is not a pure Nextcloud topic:
Does someone know how I could transfer pictures from my (Panasonic Lumix TZ-101) camera to my Nextcloud or to my ubuntu host running the nextcloud?
The camera is able to connect via Wifi.

But I can’t find out, what kind of share is needed or if Nextcloud can offer this. Or if not by Nextcloud itself, maybe indirectly to a ubuntu share.

Which remote data transfer services does Panasonic Lumix TZ-101 support?

SMB/Cifs, sftp, ftp, WebDAV, ...

Nextcloud only supports WebDAV.
Also App (Android, iOS) and Web.

To be honest: Found nothing in their manuals
and was hoping, that someone uses the same combination and can answer that.

If not directly to Nextcloud, indirect to my ubuntu would also be fine.

the cam’s firmware most likely does not use any standard protocols but maybe there is some kind of proprietary program for your (proprietary) computer’s or cell’s OS.
if you have connected the cam to your wlan you could do a portscan and then test which ports you could use or “talk” to. you could install the proprietary “app” on your phone and - maybe - use that to “send” the pix to nextcloud via the nextcloud app installed on your phone; roughly the same way should work on your computer.
GOOD LUCK!

@hajo62
I found the manual for you:

Panasonic Lumix DMC-TZ101, Panasonic DMC-TZ101 Bedienungsanleitung / Handbuch / Gebrauchsanweisung / Anleitung deutsch Download PDF Free Kameras
There is a german manual. Sorry the english manual is not in english :wink:

In the part “Wifi” (german) you found something about upload pictures to a network share (i think Cifs/SMB). But there is no part for Linux. Search “Samba” and “Ubuntu”. Perhaps you can test it with a windows pc in a wlan.

The manual quotes, that there is a propretary solution called PhotofunSTUDIO, but there is another chapter for sharing without that program.

On Windows: Create a folder. Properties. Share.

When I look at the camara, a share on a Windows machine is found…

Which is fine for me. :wink:

That is fine. Then read also this:

https://wiki.ubuntuusers.de/Samba
https://wiki.ubuntuusers.de/Samba_Server

Sorry i do not use it.

So you conclude from the Windows sharing mentioned above, that it must be a Samba-share and when I would create one on my ubuntu host, it should work?

Yes. I hope it. But you can perhaps test it with a windows pc also.

It is samba. But an old verion. I had to set “Disable SMB2 minimum version”.
No connection to Nextcloud, but direct to my ubuntu host.

You can import the pictures to your nextcloud.

a.) copy in the correct directory e.g. /path/to/nextcloud/data/username/files
b.) use occ with scan for all or users or single user
Using the occ command — Nextcloud latest Administration Manual latest documentation

Camera -> smb -> /path/to/pictures
linux cp /path/to/pictures -> /path/to/nextcloud/data/username/files
nextcloud occ

Also you can use your ubuntu storage outside nextcloud e.g. as smb or local (external storage):
Configuring External Storage (GUI) — Nextcloud latest Administration Manual latest documentation

I would configure “local” in your situation.
Read Local — Nextcloud latest Administration Manual latest documentation

Camera -> smb -> /path/to/pictures
Nextcloud -> external storage (local) -> /path/to/pictures

Yes, that’s what I’m doing now. Via smb to the destination in NC and than do an occ-files:scan and an occ preview:generate-all:
Here is my small script for this. Maybe it’s useful for someone else

#bin/bash
#set -e                          # Stop batch on error
scan_root_path="me/files/Photos"
usage() { echo "Usage: [-p path]" 1>&2; exit 1; }

    while getopts ":p:" o; do
        case "${o}" in
            p)
                p=${OPTARG}
                ;;
            *)
                usage
                ;;
        esac
    done
    shift $((OPTIND-1))

    scan_path="$scan_root_path/${p}"

    cmd="docker exec --user www-data nextcloud [ -d data/$scan_path ]"

    `$cmd`
    if ! [ $? -eq 0 ]
    then
        echo "ERROR: Pfad $scan_path nicht gefunden."
        exit 1
    fi

    scan_cmd=( docker exec --user www-data nextcloud nice php occ files:scan --path=$scan_path )
    generate_all_cmd=( docker exec --user www-data nextcloud nice php occ preview:generate-all --path=/$scan_path )

    echo "${scan_cmd[@]}"
    "${scan_cmd[@]}"

    echo "${generate_all_cmd[@]}"
    "${generate_all_cmd[@]}"
1 Like

@hajo62
Thank you for the script. For other user please correct the CODE-block.
Also i only use absolute paths in scripts where possible and/or useful.

scan_root_path="me/files/Photos"
cmd="docker exec --user www-data nextcloud [ -d data/$scan_path ]"

What to correct? I don’t understand your suggestion…

scan_root_path is relative from the path where nextcloud put’s its data. If option -p is used, it’s extended by that relativ sub-path.
./nc_scan.sh -p Panasonic scans all in /<nc-data-path>/me/files/Photos/Panasonic

Is not in the CODE-block.

If absolute paths not useful all is ok. But sometimes it does not work if someone moves the script or the data paths.

1 Like

Done.

The script does not care where it is stored or runned from.
All you need to know is the path relative from where the occ-command expects the files - <username>/files took me some time to figure out :stuck_out_tongue_winking_eye:

1 Like