Hallo,
nach langem probieren habe ich es geschafft, (offline) aus iobroker heraus aus html heraus PDFs zu schreiben und per Mail zu versenden.
Nun scheitere ich am erstellen der html Datei.
Erstelle diese mit folgendem Blockly:
Doch leider scheinen im html Zeichen zu sein die den echo Befehl stören.
Wenn ich den exec mit Ergebnissen ausführe, erhalte ich nur die ersten Zeichen vom html Code.
Wenn ich den Befehl in der Konsole direkt eingebe, kommt, dass er die Datei nicht gefunden hat.
Wenn ich anstatt des HTML irgend was anderes einfüge (egal ob im Blockly oder manuell) klappt alles.
Anbei ein exemplarische HTML Code:
Spoiler
<table style="width: 100%;"> <tbody> <tr> <td><b><font size="3">Gerät</td><td ALIGN="CENTER" width=100%><b><font size="3">IP</b></td></font> <td ALIGN="CENTER"><b><font size="3">Empfang</td><td><b><font size="3">An/Aus</td></b></font> </tr><tr> <td colspan="4"> <hr> </dt> </tr><tr><td>steckdose_kuehltruhe</td><td><font size="1"> <a href="http://192.168.99.71">192.168.99.71</a></td> <td ALIGN="CENTER"><font size="3"><b><font color=red>●</font> </td><td ALIGN="CENTER"><font size="3"><b><font color=green>●</font></td></tr><tr><td>steckdose_sofa</td><td><font size="1"> <a href="http://192.168.99.64">192.168.99.64</a></td> <td ALIGN="CENTER"><font size="3"><b><font color=red>●</font> </td><td ALIGN="CENTER"><font size="3"><b><font color=green>●</font></td></tr><tr><td>steckdose_esszimmer</td><td><font size="1"> <a href="http://192.168.99.65">192.168.99.65</a></td> <td ALIGN="CENTER"><font size="3"><b><font color=green>●</font> </td><td ALIGN="CENTER"><font size="3"><b><font color=green>●</font></td></tr><tr><td>steckdose_flur_oben</td><td><font size="1"> <a href="http://192.168.99.67">192.168.99.67</a></td> <td ALIGN="CENTER"><font size="3"><b><font color=green>●</font> </td><td ALIGN="CENTER"><font size="3"><b><font color=green>●</font></td></tr><tr><td>steckdose_flur_unten</td><td><font size="1"> <a href="http://192.168.99.68">192.168.99.68</a></td> <td ALIGN="CENTER"><font size="3"><b><font color=green>●</font> </td><td ALIGN="CENTER"><font size="3"><b><font color=green>●</font></td></tr><tr><td>steckdose_heizung</td><td><font size="1"> <a href="http://192.168.99.70">192.168.99.70</a></td> <td ALIGN="CENTER"><font size="3"><b><font color=green>●</font> </td><td ALIGN="CENTER"><font size="3"><b><font color=green>●</font></td></tr><tr><td>steckdose_kueche</td><td><font size="1"> <a href="http://192.168.99.66">192.168.99.66</a></td> <td ALIGN="CENTER"><font size="3"><b><font color=green>●</font> </td><td ALIGN="CENTER"><font size="3"><b><font color=green>●</font></td></tr><tr><td>steckdose_licht_fernseher</td><td><font size="1"> <a href="http://192.168.99.69">192.168.99.69</a></td> <td ALIGN="CENTER"><font size="3"><b><font color=green>●</font> </td><td ALIGN="CENTER"><font size="3"><b><font color=green>●</font></td></tr><tr><td>steckdose_licht_kuechenzeile</td><td><font size="1"> <a href="http://192.168.99.73">192.168.99.73</a></td> <td ALIGN="CENTER"><font size="3"><b><font color=green>●</font> </td><td ALIGN="CENTER"><font size="3"><b><font color=green>●</font></td></tr></tbody> </table>
Bekomme ich den irgendwie anders in eine txt bzw. html geschrieben?