NEWS
Motioneye Telegram
- 
					
					
					
					
 @crunchip Okay habe es zur Kenntnis genommen allerdings wollte ich das mit telegram mach, geht das auch? 
- 
					
					
					
					
 @thecastle ja das geht über Scripte da kannst du dir Sachen auf Telegram schicken lassen. mit diesem Block z.B.  
- 
					
					
					
					
 ja des habe ich jetzt alles geschafft, jetzt habe ich nur noch eine Frage: wo speiert er mir standardmäßig die einzelne Bilder ab ab? 
- 
					
					
					
					
 Das Ding ist ich brauche einen Speicherort das ich das Bild mit Telegram versenden kann.  
- 
					
					
					
					
 @thecastle du musst dir einen Ordner anlegen 
 Z.b.
 opt/iobroker/cam1
- 
					
					
					
					
 Habe ich alles gemacht, ich bekomme aber jetzt immer das selbe Bild, wie kann ich nur das aktuellste bekommen 
- 
					
					
					
					
 oder das das allte immer überschrieben wird 
- 
					
					
					
					
 Hey oder ist es möglich das er mir das aktuella Bild schickt? 
- 
					
					
					
					
 @thecastle wie sieht dein Blockly aus? 
  
 vllt ist das auch interessant für dich...klappt wunderbar
 https://buanet.de/2018/11/script-bilder-von-ueberwachungskamera-per-telegram/
- 
					
					
					
					
  
- 
					
					
					
					
 Ich bekomme immer nur das selbe Bild per Telegram und zwar das alarm.jpg, dass ist mir auch klar soweit. Aber es muss doch eine Möglichkeit geben das immer zu überschreiben ? Oder eine andere Möglichkeit das ich ein aktuelles Bild auf mein Smartphone per Telegram bekomme 
- 
					
					
					
					
 @thecastle zeig mal dein ganzes script...eventuell ein timeout Problem 
- 
					
					
					
					
 Er schickt ja immer die selbe Datei weil ich im das so sage, <xml xmlns="http://www.w3.org/1999/xhtml"> 
 <variables>
 <variable type="undefined" id="timeout">timeout</variable>
 <variable type="undefined" id="timeout2">timeout2</variable>
 </variables>
 <block type="procedures_defnoreturn" id="t_)mre%3].H@^udza,~" x="838" y="-362"> <field name="NAME">Foto senden</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="timeouts_settimeout" id="*%r=Y5~XNnVxrh5XHlk">
 <field name="NAME">timeout</field>
 <field name="DELAY">1000</field>
 <field name="UNIT">ms</field>
 <statement name="STATEMENT">
 <block type="exec" id="275h7oKZ+y395LT+iu#-">
 <mutation with_statement="false"></mutation>
 <field name="WITH_STATEMENT">FALSE</field>
 <field name="LOG"></field>
 <value name="COMMAND">
 <shadow type="text" id="ltM-0,OSxYcM(e^Y{`Sd">
 <field name="TEXT">wget --output-document /var/lib/motioneye/Camera1 'http://192.168.178.34:8765/picture/1/current/?'</field>
 </shadow>
 </value>
 <next>
 <block type="timeouts_settimeout" id=";^]@[~xh;=yM/dG~iQ%">
 <field name="NAME">timeout2</field>
 <field name="DELAY">1000</field>
 <field name="UNIT">ms</field>
 <statement name="STATEMENT">
 <block type="telegram" id="#7%V,l]!]C@U3;RF%x{P">
 <field name="INSTANCE"></field>
 <field name="LOG"></field>
 <field name="SILENT">FALSE</field>
 <field name="PARSEMODE">default</field>
 <value name="MESSAGE">
 <shadow type="text" id=",tsALc;|bOL4A$#yWM]{">
 <field name="TEXT">/var/lib/motioneye/Camera1/alarm.jpg</field>
 </shadow>
 </value>
 </block>
 </statement>
 </block>
 </next>
 </block>
 </statement>
 </block>
 </statement>
 </block>
 <block type="on" id="hV,U:1/V6qpawuVB.m8q" x="163" y="-312">
 <field name="OID">cloud.0.services.ifttt</field>
 <field name="CONDITION">any</field>
 <field name="ACK_CONDITION"></field>
 <statement name="STATEMENT">
 <block type="controls_if" id="It:BOaOu][{+og:8@v!w">
 <value name="IF0">
 <block type="logic_compare" id="%8rAH~R8IQ2{]_V~AoD">
 <field name="OP">EQ</field>
 <value name="A">
 <block type="get_value" id="EGzIO?FI{$Q|7rcDec$">
 <field name="ATTR">val</field>
 <field name="OID">cloud.0.services.ifttt</field>
 </block>
 </value>
 <value name="B">
 <block type="text" id="zL73Xsp,2Y3xah6462]-">
 <field name="TEXT">Bewegung_erkannt</field>
 </block>
 </value>
 </block>
 </value>
 <statement name="DO0">
 <block type="telegram" id="ERxs|dSCxN8I0:o7Dx?S">
 <field name="INSTANCE"></field>
 <field name="LOG"></field>
 <field name="SILENT">FALSE</field>
 <field name="PARSEMODE">default</field>
 <value name="MESSAGE">
 <shadow type="text" id="Z7Fqumr:htFev+?tMeKR">
 <field name="TEXT">Bewegung erkannt</field>
 </shadow>
 </value>
 <next>
 <block type="procedures_callnoreturn" id="ut|%,2}Ih[?OAk4gM[E">
 <mutation name="Foto senden"></mutation>
 </block>
 </next>
 </block>
 </statement>
 </block>
 </statement>
 </block>
 </xml>
- 
					
					
					
					
 @thecastle packs in code 
  
- 
					
					
					
					
 @thecastle du hast im Editor als Warnung stehen, dass du in den settings "exec" einschalten sollst..  
- 
					
					
					
					
 <xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="undefined" id="timeout">timeout</variable> <variable type="undefined" id="timeout2">timeout2</variable> </variables> <block type="procedures_defnoreturn" id="t_)mr`e%3].H@^udza,~" x="838" y="-362"> <field name="NAME">Foto senden</field> <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment> <statement name="STACK"> <block type="timeouts_settimeout" id="*%r=Y5~X`NnVxrh5XHlk"> <field name="NAME">timeout</field> <field name="DELAY">1000</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="exec" id="275h7oKZ+y395LT+iu#-"> <mutation with_statement="false"></mutation> <field name="WITH_STATEMENT">FALSE</field> <field name="LOG"></field> <value name="COMMAND"> <shadow type="text" id="ltM-0,OSxYcM(e^Y{`Sd"> <field name="TEXT">wget --output-document /var/lib/motioneye/Camera1 'http://192.168.178.34:8765/picture/1/current/?'</field> </shadow> </value> <next> <block type="timeouts_settimeout" id=";^]@[*~xh;=yM/dG~iQ%"> <field name="NAME">timeout2</field> <field name="DELAY">1000</field> <field name="UNIT">ms</field> <statement name="STATEMENT"> <block type="telegram" id="#7%V,l]!]C@U3;RF%x{P"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <value name="MESSAGE"> <shadow type="text" id=",tsALc;|bOL4A$#yWM]{"> <field name="TEXT">/var/lib/motioneye/Camera1/alarm.jpg</field> </shadow> </value> </block> </statement> </block> </next> </block> </statement> </block> </statement> </block> <block type="on" id="hV,U:1/V6qpawuVB.m8q" x="163" y="-312"> <field name="OID">cloud.0.services.ifttt</field> <field name="CONDITION">any</field> <field name="ACK_CONDITION"></field> <statement name="STATEMENT"> <block type="controls_if" id="It:BOaOu][{+og:8@v!w"> <value name="IF0"> <block type="logic_compare" id="%8rAH*~R8IQ2{]_V~AoD"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="E*GzIO?FI{$Q|7rcDec$"> <field name="ATTR">val</field> <field name="OID">cloud.0.services.ifttt</field> </block> </value> <value name="B"> <block type="text" id="zL73Xsp,2Y3xah6462]-"> <field name="TEXT">Bewegung_erkannt</field> </block> </value> </block> </value> <statement name="DO0"> <block type="telegram" id="ERxs|dSCxN8I0:o7Dx?S"> <field name="INSTANCE"></field> <field name="LOG"></field> <field name="SILENT">FALSE</field> <field name="PARSEMODE">default</field> <value name="MESSAGE"> <shadow type="text" id="Z7Fqumr:htFev+?tMeKR"> <field name="TEXT">Bewegung erkannt</field> </shadow> </value> <next> <block type="procedures_callnoreturn" id="ut|%,2}Ih[*?OAk4gM[E"> <mutation name="Foto senden"></mutation> </block> </next> </block> </statement> </block> </statement> </block> </xml>
- 
					
					
					
					
 @ilovegym sagte in Motioneye Telegram: @thecastle du hast im Editor als Warnung stehen, dass du in den settings "exec" einschalten sollst..   
- 
					
					
					
					
 Okay das habe ich gemacht. Hat noch jemad eine Idee 
- 
					
					
					
					
 @thecastle hast du den timeout mal erhöht, z.b.2000ms 
- 
					
					
					
					
 ja, aber das muss an mir liegen weil ich das Bild doch immer unter alarm speichere und das alle bzw... das erste immer wieder verende 
 
		
	 
		
	