diff --git a/tcl.py b/tcl.py
index 0818842..c4165d5 100644
--- a/tcl.py
+++ b/tcl.py
@@ -144,7 +144,8 @@ class Tcl(Plugin):
url = 'https://download.data.grandlyon.com/ws/rdata/tcl_sytral.tclpassagearret/all.json?maxfeatures=2000&start=1'
- respText = "
Prochains départs " + nomArret + " :
"
+ #respText = "Prochains départs " + nomArret + " :
"
+ respText = "### Prochains départs " + nomArret + " :\n"
self.log.info(respText)
lines = []
while len(url) > 0:
@@ -198,27 +199,32 @@ class Tcl(Plugin):
newterm.add_horaire(value["delaipassage"])
newLine.add_terminus(newterm)
lines.append(newLine)
- respText += ""
+ #respText += ""
for line in lines:
self.log.info("Ligne " + line.get_name())
- respText += "Ligne " + line.get_name() + "
"
+ #respText += "Ligne " + line.get_name() + "
"
+ respText += "#### Ligne " + line.get_name() + "\n"
terms = line.get_all_terminus()
for t in terms:
self.log.info(t.get_name())
- respText += "Direction " + t.get_name() + ""
+ #respText += "Direction " + t.get_name() + ""
+ respText += "***Direction " + t.get_name() + "***\n"
hs = t.get_horaires()
hs.sort()
for idx, h in enumerate(hs):
self.log.info(h)
if h == 0:
- respText += "- Proche
"
+ #respText += "- Proche
"
+ respText += "- Proche\n"
else:
- respText += "- " + str(h) + " min
"
+ #respText += "- " + str(h) + " min
"
+ respText += "- " + str(h) + " min\n"
if idx == 2: ##On limite à 3 items
break
- respText += "
"
- respText += "
"
- await evt.respond(respText, allow_html=True)
+ respText += "\n"
+ #respText += "
"
+ #respText += "
"
+ await evt.respond(respText)#, allow_html=True)
@classmethod