Camera Chinoise sans marque Onvif. Pas de souci pour le flux video mais comment obtenir le pilotage PTZ à partir de jeedom?
J’ai recup le status de camera avec node :
const onvif = require('node-onvif');
// Create an OnvifDevice object
let device = new onvif.OnvifDevice({
xaddr: 'http://192.168.0.122/onvif/device_service',
user : 'admin',
pass : ''
});
// Initialize the OnvifDevice object
device.init().then(() => {
let profile = device.getCurrentProfile();
console.log(JSON.stringify(profile, null, ' '));
}).then(() => {
console.log('Done!');
}).catch((error) => {
console.error(error);
});
Résultat :
λ node C:\Users\ericr\Downloads\status.js
{
"token": "Profile_1",
"name": "mainStream",
"snapshot": "http://192.168.0.122/onvif/snapshot",
"stream": {
"udp": "rtsp://192.168.0.122:554",
"http": "rtsp://192.168.0.122:80",
"rtsp": "rtsp://192.168.0.122:554"
},
"video": {
"source": {
"token": "VideoSourceToken",
"name": "VideoSourceConfig",
"bounds": {
"width": 1920,
"height": 1080,
"x": 0,
"y": 0
}
},
"encoder": {
"token": "VideoEncoderToken_1",
"name": "VideoEncoder_1",
"resolution": {
"width": 1920,
"height": 1080
},
"quality": 10,
"framerate": 0,
"bitrate": 0,
"encoding": "H264"
}
},
"audio": {
"source": {
"token": "AudioSourceConfigToken",
"name": "AudioSourceConfig"
},
"encoder": null
},
"ptz": {
"range": {
"x": {
"min": null,
"max": null
},
"y": {
"min": null,
"max": null
},
"z": {
"min": null,
"max": null
}
}
}
}
Done!
Ma config :
Port 80 au lieu de 554 ne change rien :
Commande vide (devrait être peuplé à la sauvegarde, si j’ai bien compris):
Pas de PTZ à l’affichage:
PTZ onvif ok sous Onvif device manager :