Aller au contenu

Juliano63

Membres
  • Compteur de contenus

    2
  • Inscription

  • Dernière visite

Messages posté(e)s par Juliano63

  1. je déterre le sujet car j'ai réussi a faire fonctionner tasker avec la dernière API Syno.

    Du coup, plus besoin de SSH, il faut juste acheter l'appli tasker (et elle vaut largement son prix).

    Je joint les profils tasker qui font ON et OFF

    ON :

    <TaskerData sr="" dvi="1" tv="4.6u1m">
    	<Task sr="task5">
    		<cdate>1420362366168</cdate>
    		<edate>1420400412258</edate>
    		<id>5</id>
    		<nme>Ds On</nme>
    		<pri>10</pri>
    		<Action sr="act0" ve="7">
    			<code>118</code>
    			<Str sr="arg0" ve="3">http://%IPFREEBOX:%DSPORT</Str>
    			<Str sr="arg1" ve="3">webapi/auth.cgi?api=SYNO.API.Auth&amp;method=Login&amp;version=2&amp;account=%DSLOGIN&amp;passwd=%DSPASSWORD&amp;session=SurveillanceStation&amp;format=sid</Str>
    			<Str sr="arg2" ve="3"/>
    			<Str sr="arg3" ve="3"/>
    			<Str sr="arg4" ve="3"/>
    			<Int sr="arg5" val="10"/>
    			<Str sr="arg6" ve="3"/>
    			<Str sr="arg7" ve="3"/>
    			<Int sr="arg8" val="0"/>
    		</Action>
    		<Action sr="act1" ve="7">
    			<code>129</code>
    			<Str sr="arg0" ve="3">var arr = JSON.parse(global("HTTPD"));
    var sid  = arr.data.sid;
    setGlobal("SID",sid);</Str>
    			<Str sr="arg1" ve="3"/>
    			<Int sr="arg2" val="1"/>
    			<Int sr="arg3" val="45"/>
    		</Action>
    		<Action sr="act2" ve="7">
    			<code>118</code>
    			<Str sr="arg0" ve="3">%IPFREEBOX:%DSPORT</Str>
    			<Str sr="arg1" ve="3">webapi/SurveillanceStation/camera.cgi?api=SYNO.SurveillanceStation.Camera&amp;method=Enable&amp;version=3&amp;cameraIds=1,2&amp;_sid=%SID</Str>
    			<Str sr="arg2" ve="3"/>
    			<Str sr="arg3" ve="3"/>
    			<Str sr="arg4" ve="3"/>
    			<Int sr="arg5" val="10"/>
    			<Str sr="arg6" ve="3"/>
    			<Str sr="arg7" ve="3"/>
    			<Int sr="arg8" val="0"/>
    		</Action>
    	</Task>
    </TaskerData>
    
    

    OFF :

    <TaskerData sr="" dvi="1" tv="4.6u1m">
    	<Task sr="task16">
    		<cdate>1420362366168</cdate>
    		<edate>1420398959945</edate>
    		<id>16</id>
    		<nme>Ds Off</nme>
    		<pri>10</pri>
    		<Action sr="act0" ve="7">
    			<code>118</code>
    			<Str sr="arg0" ve="3">http://%IPFREEBOX:%DSPORT</Str>
    			<Str sr="arg1" ve="3">webapi/auth.cgi?api=SYNO.API.Auth&amp;method=Login&amp;version=2&amp;account=%DSLOGIN&amp;passwd=%DSPASSWORD&amp;session=SurveillanceStation&amp;format=sid</Str>
    			<Str sr="arg2" ve="3"/>
    			<Str sr="arg3" ve="3"/>
    			<Str sr="arg4" ve="3"/>
    			<Int sr="arg5" val="10"/>
    			<Str sr="arg6" ve="3"/>
    			<Str sr="arg7" ve="3"/>
    			<Int sr="arg8" val="0"/>
    		</Action>
    		<Action sr="act1" ve="7">
    			<code>129</code>
    			<Str sr="arg0" ve="3">var arr = JSON.parse(global("HTTPD"));
    var sid  = arr.data.sid;
    setGlobal("SID",sid);</Str>
    			<Str sr="arg1" ve="3"/>
    			<Int sr="arg2" val="1"/>
    			<Int sr="arg3" val="45"/>
    		</Action>
    		<Action sr="act2" ve="7">
    			<code>118</code>
    			<Str sr="arg0" ve="3">%IPFREEBOX:%DSPORT</Str>
    			<Str sr="arg1" ve="3">webapi/SurveillanceStation/camera.cgi?api=SYNO.SurveillanceStation.Camera&amp;method=Disable&amp;version=3&amp;cameraIds=1,2&amp;_sid=%SID</Str>
    			<Str sr="arg2" ve="3"/>
    			<Str sr="arg3" ve="3"/>
    			<Str sr="arg4" ve="3"/>
    			<Int sr="arg5" val="10"/>
    			<Str sr="arg6" ve="3"/>
    			<Str sr="arg7" ve="3"/>
    			<Int sr="arg8" val="0"/>
    		</Action>
    	</Task>
    </TaskerData>
    
    
×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.