Pour information je viens de faire le test avec un Asus (Z00AD) Android 5 avec 2 Slots et ça fonctionne nickel en paramétrant le mobile correctement et en mettant la carte SIM dans le Slot1.
Cirus a écrit :Vous pouvez-être plus explicite SVP !!
sphinxou a écrit :merci je n'ai plus d'erreur mais je ne reçois pas de sms
Cirus a écrit :il faut supprimer la ligne où il y a 'sMsgx = ' car la variable sMsgx n'a pas d'affectation.
ok moi sa ne fonctionner pas pourtant avec le même paramétrage.
je Vien d'acheter l'appli elle est vraiment super
Cirus a écrit :Pour information je viens de faire le test avec un Asus (Z00AD) Android 5 avec 2 Slots et ça fonctionne nickel en paramétrant le mobile correctement et en mettant la carte SIM dans le Slot1.
Cirus a écrit :Vous pouvez-être plus explicite SVP !!
sphinxou a écrit :merci je n'ai plus d'erreur mais je ne reçois pas de sms
Domoticz 4.9700/ rfxcom /sonde diy/raspberry pi3+HDD/cirusms/contact de porte diy
function smsput( sGroup, sMsg )
sUrl="http://192.168.1.2:1200/SMS&GRP=" .. sGroup .. "&MSG="
commandArray['OpenURL']=sUrl .. string.gsub(sMsg, ' ', '%20')
end
commandArray = {}
if (otherdevices['ALARME']=='On') and (devicechanged['Porte dentre']) then
-- commandArray['OpenURL']='192.168.1.2:1200/SMS&GRP=ADMIN&MSG=Bonjour%20Test%20SMS'
smsput('ADMIN',"la porte dentre est ouverte")
end
return commandArray
Cirus a écrit :Donc dans la log Domoticz. Vous avez un pb dans votre code à l'exécution, copiez moi votre script.
sphinxou a écrit :Error: EventSystem: in ALARME: [string "..."]:5: invalid capture index
voila l'erreur dans les log
Cirus a écrit :Vous pouvez-être plus explicite SVP !!
Domoticz 4.9700/ rfxcom /sonde diy/raspberry pi3+HDD/cirusms/contact de porte diy
Merci.
Cet ASUS semble avoir un comportement normal avec la SIM1...
Envoyez moi votre code complet... je vais regarder.
sphinxou a écrit :ok moi sa ne fonctionner pas pourtant avec le même paramétrage.
je Vien d'acheter l'appli elle est vraiment super
Cirus a écrit :Pour information je viens de faire le test avec un Asus (Z00AD) Android 5 avec 2 Slots et ça fonctionne nickel en paramétrant le mobile correctement et en mettant la carte SIM dans le Slot1.
Cirus a écrit :Vous pouvez-être plus explicite SVP !!
function smsput( sGroup, sMsg )
sUrl="http://192.168.1.2:1200/SMS&GRP=" .. sGroup .. "&MSG="
commandArray['OpenURL']=sUrl .. string.gsub(sMsg, ' ', '%20')
end
commandArray = {}
if (otherdevices['ALARME']=='On') and (devicechanged['Porte dentre']) then
-- commandArray['OpenURL']='192.168.1.2:1200/SMS&GRP=ADMIN&MSG=Bonjour%20Test%20SMS'
smsput('ADMIN',"la porte dentre est ouverte")
end
return commandArray
Domoticz 4.9700/ rfxcom /sonde diy/raspberry pi3+HDD/cirusms/contact de porte diy
function smsput( sGroup, sMsg )
sUrl="http://192.168.1.2:1200/SMS&GRP=" .. sGroup .. "&MSG="
commandArray['OpenURL']=sUrl .. string.gsub(sMsg, ' ', '%20')
end
commandArray = {}
if (otherdevices['ALARME']=='On') and (devicechanged['Porte dentre']) then
-- commandArray['OpenURL']='192.168.1.2:1200/SMS&GRP=ADMIN&MSG=Bonjour%20Test%20SMS'
smsput('ADMIN',"la porte dentre est ouverte")
end
return commandArray
function smsput( sGroup, sMsg )
sUrl="http://192.168.1.2:1200/SMS&GRP=" .. sGroup .. "&MSG="
commandArray['OpenURL']=sUrl .. string.gsub(sMsg, ' ', '%20')
end
commandArray = {}
if (otherdevices['ALARME']=='On') and (devicechanged['Porte dentre']) then
-- commandArray['OpenURL']='192.168.1.2:1200/SMS&GRP=ADMIN&MSG=Bonjour%20Test%20SMS'
smsput('ADMIN',"la porte dentre est ouverte")
end
return commandArray
Domoticz 4.9700/ rfxcom /sonde diy/raspberry pi3+HDD/cirusms/contact de porte diy
function smsput( sGroup, sMsg )
sUrl="http://192.168.1.2:1200/SMS&GRP=" .. sGroup .. "&MSG="
commandArray['OpenURL']=sUrl .. string.gsub(sMsg, ' ', '%20')
end
commandArray = {}
if (otherdevices['ALARME']=='On') and (devicechanged['Porte dentre']) then
-- commandArray['OpenURL']='192.168.1.2:1200/SMS&GRP=ADMIN&MSG=Bonjour%20Test%20SMS'
smsput('ADMIN',"la porte dentre est ouverte")
end
return commandArray