Hi,
first of all your module works as a charme.
Would it be possible to add the html code of the created table as a reading to the device?
Background:
Node Red also has a table widget. If I would get the html code of the table, I can transform this html code to JSON-format (published to a mqtt-broker) so I can use it in Node Red.
Best would be if the abstracttable module would create a reading in JSON format :-)
Example:
HTML-Code:
<table class="block wide abstract-table"><thead><tr><th>Datum</th><th>Klasse</th><th>Stunde</th><th>Fach</th><th>Art</th><th>regulär_bei</th><th>Vertretung_durch</th><th>in_Raum</th></tr></thead><tbody><tr class="even"><td>2020-03-02</td><td>6B</td><td>1</td><td>---</td><td>Entfall</td><td>GLA</td><td>---</td><td>---</td></tr><tr class="odd"><td>2020-03-02</td><td>6B</td><td>2</td><td>---</td><td>Entfall</td><td>WIK</td><td>---</td><td>---</td></tr><tr class="even"><td>2020-03-02</td><td>6B</td><td>2</td><td>---</td><td>Entfall</td><td>GLA</td><td>---</td><td>---</td></tr><tr class="odd"><td>2020-03-02</td><td>6B</td><td>4 - 5</td><td>T</td><td>Raum-Vtr.</td><td>HID</td><td>HID</td><td>KKS-T2</td></tr><tr class="even"><td>2020-03-02</td><td>6B</td><td>4 - 5</td><td>T</td><td>Raum-Vtr.</td><td>BIS</td><td>BIS</td><td>KKS-T1</td></tr><tr class="odd"><td>2020-03-02</td><td>6B</td><td>6</td><td>---</td><td>Entfall</td><td>WEI</td><td>---</td><td>---</td></tr><tr class="even"><td>2020-03-03</td><td>6B</td><td>1</td><td>---</td><td>Entfall</td><td>WEB</td><td>---</td><td>---</td></tr><tr class="odd"><td>2020-03-03</td><td>6B</td><td>1 - 2</td><td>REL</td><td>Sondereins.</td><td>-</td><td>EWE</td><td>202</td></tr><tr class="even"><td>2020-03-03</td><td>6B</td><td>2</td><td>---</td><td>Entfall</td><td>GLA</td><td>---</td><td>---</td></tr><tr class="odd"><td>2020-03-03</td><td>6B</td><td>4</td><td>M</td><td>Statt-Vertretung</td><td>BOL</td><td>SHZ</td><td>202</td></tr></tbody></table>
JSON-Code:
[
{
"Datum": "2020-03-02",
"Klasse": "6B",
"Stunde": "1",
"Fach": "---",
"Art": "Entfall",
"regulär_bei": "GLA",
"Vertretung_durch": "---",
"in_Raum": "---"
},
{
"Datum": "2020-03-02",
"Klasse": "6B",
"Stunde": "2",
"Fach": "---",
"Art": "Entfall",
"regulär_bei": "WIK",
"Vertretung_durch": "---",
"in_Raum": "---"
},
{
"Datum": "2020-03-02",
"Klasse": "6B",
"Stunde": "2",
"Fach": "---",
"Art": "Entfall",
"regulär_bei": "GLA",
"Vertretung_durch": "---",
"in_Raum": "---"
},
{
"Datum": "2020-03-02",
"Klasse": "6B",
"Stunde": "4 - 5",
"Fach": "T",
"Art": "Raum-Vtr.",
"regulär_bei": "HID",
"Vertretung_durch": "HID",
"in_Raum": "KKS-T2"
},
{
"Datum": "2020-03-02",
"Klasse": "6B",
"Stunde": "4 - 5",
"Fach": "T",
"Art": "Raum-Vtr.",
"regulär_bei": "BIS",
"Vertretung_durch": "BIS",
"in_Raum": "KKS-T1"
},
{
"Datum": "2020-03-02",
"Klasse": "6B",
"Stunde": "6",
"Fach": "---",
"Art": "Entfall",
"regulär_bei": "WEI",
"Vertretung_durch": "---",
"in_Raum": "---"
},
{
"Datum": "2020-03-03",
"Klasse": "6B",
"Stunde": "1",
"Fach": "---",
"Art": "Entfall",
"regulär_bei": "WEB",
"Vertretung_durch": "---",
"in_Raum": "---"
},
{
"Datum": "2020-03-03",
"Klasse": "6B",
"Stunde": "1 - 2",
"Fach": "REL",
"Art": "Sondereins.",
"regulär_bei": "-",
"Vertretung_durch": "EWE",
"in_Raum": "202"
},
{
"Datum": "2020-03-03",
"Klasse": "6B",
"Stunde": "2",
"Fach": "---",
"Art": "Entfall",
"regulär_bei": "GLA",
"Vertretung_durch": "---",
"in_Raum": "---"
},
{
"Datum": "2020-03-03",
"Klasse": "6B",
"Stunde": "4",
"Fach": "M",
"Art": "Statt-Vertretung",
"regulär_bei": "BOL",
"Vertretung_durch": "SHZ",
"in_Raum": "202"
}
]
JSON created from HTML by https://www.convertjson.com/html-table-to-json.htm