I got it fxed!
So for everybody who is looking for this to work see instruction below.
Startingpoint is you already have automated your doorbell in Domoticz as a trigger.
Step 1:
Download the doorcam app on the first page of this thread
Step 2:
Unzip files
step 3:
Rename folder to "doorcam"
Step 4:
Copy folder to Toon in folder: /qmf/qml/apps
Step 5:
Reboot Toon
Step 6:
After reboot, on Toon add a Tile by clicking on "Tegel toevoegen" under "Algemeen" you will now see the tile "doorcam", click on it to add the tile
Step 7:
Open Domoticz, go to Setup--> more options --> User variables
Add a new variable with the following information:
Variable Name: ShowDoorCamToon
Variable type: String
Variable value: 150
Add a second variable with the following information:
Variable Name: SendtoToon
Variable type: String
Variable value: 0
Step 8:
In Domoticz go to setup --> more options --> events
Click on the "+" To add an automation script
Select "Blockly"
Now rebuild the "if-do statement" like in the screenshot on page 1 of this thread.
UPDATE 17-12-2019: You can also use a dzVents script instead of Blockly:
Code: Select all
return
{
on =
{
devices =
{
'Deurbel',
},
},
logging =
{
level = domoticz.LOG_DEBUG,
marker = 'Deurbel',
},
execute = function(dz, item)
if item.active then
dz.log('Device ' .. item.name .. ' was pushed', dz.LOG_DEBUG)
local sendToToon = dz.variables('SendtoToon')
local showDoorCamToon = dz.variables('ShowDoorCamToon')
if sendToToon.value == '0' then
showDoorCamToon.set('200')
showDoorCamToon.set('100').afterSec(30)
sendToToon.set('1')
sendToToon.set('0').afterSec(30)
end
end
end
}
Step 9:
Open with, for example, WINSCP the folder doorcam on your Toon
Step 10:
Edit the file "Variables1.txt" with your specs.
Change {"camURL" : "URL+COMMAND for your doorcam", "domURL":"
http://DOMOTICZ IP:DOMOTICZ PORT", "idx":"IDX number of the created User Variable ShowDoorCamToon in Domoticz", "var":"ShowDoorCamToon"}
Save the file (make sure it is saved on your Toon and not local)
Step 11:
Edit the file "selectedImageURL1.txt"
Change "
http://admin:sateliet@192.168.10.188/snap.jpg" to URL+COMMAND for your doorcam (the same as in step 10)
Save the file (make sure it is saved on your Toon and not local)
Step 12:
Edit the file "DoorcamApp.qml"
Look for the rows where:
property string doorcamImageURL1 : "URL+COMMAND for your doorcam"
property string domoticzURL1 : "
http://DOMOTICZ IP:DOMOTICZ PORT"
property string domoticzIDX : "IDX number of the created User Variable ShowDoorCamToon in Domoticz"
property string domoticzVAR : "ShowDoorCamToon"
Save the file (make sure it is saved on your Toon and not local)
Step 13:
Reboot Toon again.
Step 14:
Test by triggering the doorbell
If all steps are followed correctly you should now see an image of your doorcam on Toon as pop-up.
First time I had the issue that there was no pop-up.
On Toon ga to the tile and click on doorcam. Go to "Configuratie" and validade if the settings are correctly like in Domoticz.
Somehow the settings were not saved.
One thing I changed was the duration of the popup screen instead of 20 seconds to 30 seconds.
Good luck!