Synology Surveillance Camera Motion MQTT Gifs

Did they post something?

The dev of the python library is taking a look, not Synology. Hopefully it can be fixed, but he stated he would look in to it this weekend.

i am also using jpeg captures from synology, i have a php script so i do a curl to get the image

maybe someone can see whats the difference and why you are receiving errors

i use it in a php script without any issues

// Authenticate with Synology Surveillance Station WebAPI and get our SID 
$json = file_get_contents($http.'://'.$ip.':'.$port.'/webapi/auth.cgi?api=SYNO.API.Auth&method=Login&version=3&account='.$user.'&passwd='.$pass.'&session=SurveillanceStation&format=sid'); 
$obj = json_decode($json, true); 
@$sid = $obj["data"]["sid"]; 

// Setting the correct header so the PHP file will be recognised as a JPEG file 
header('Content-Type: image/jpeg'); 
// Read the contents of the snapshot and output it directly without putting it in memory first 
readfile($http.'://'.$ip.':'.$port.'/webapi/entry.cgi?camStm='.$cameraStream.'&version=3&cameraId='.$cameraID.'&api=SYNO.SurveillanceStation.Camera&preview=true&method=GetSnapshot&_sid='.$sid); 

// Log out from Surveillance Station 
file_get_contents($http.'://'.$ip.':'.$port.'/webapi/auth.cgi?api=SYNO.API.Auth&method=Logout&version=3&session=SurveillanceStation&_sid='.$sid);

ciao @fabtesta,

I’ve installed the docker container, created a config file and run it.

Gifs are created. But there’s no mqtt message. I’ve using mqtt explorer to look for the topic but there is no message.

Here is my config

{
  "data_folder": "",
  "mqtt_server": "xxx.xxx.x.xxx",
  "mqtt_port": 1883,
  "mqtt_user": "xxxxx",
  "mqtt_pwd": "xxx#xxxxxx",
  "mqtt_base_topic": "cameras/gifs",
  "ffmpeg_working_folder": "./gifs",
  "synology_base_api_url": "http://xxx.xxx.x.xxx:5000",
  "synology_user": "xxxxx",
  "synology_password": "xxxxx",
  "synology_cameras": [
    {
      "id": 2,
      "skip_first_n_secs": 5,
      "max_length_secs": 5,
      "scale": 320,
      "topic_name": "veranda"
    },
    {
      "id": 3,
      "skip_first_n_secs": 7,
      "max_length_secs": 10,
      "scale": 640,
      "topic_name": "balcone"
    }
  ]
}

can ypu please support me?

I’m following the issue you opened on github
https://github.com/fabtesta/synology-surveillance-api-motion-mqtt-gifs/issues/2