sorry for the wrong place to post, I’ll try to remember it.
I did look at the add-on’s doc. Currently, I have the thing setup with the url pointed to it. I created a string channel with a string item that get all of the content. I though maybe use regex directly on the channel and create a channel for each school I want to monitor but it seems even more harder to do.
Now I have my item with the string in it. I’m trying to find how to get the regex right.
I’m on regex101 toying with the information. I’m trying to get
“id”: 36011,
“state”: “closed”,
“datetime_start”: “2021-02-16T05:25:41-05:00”,
“datetime_end”: “2021-02-16T20:45:00-05:00”,
“closure_informations”: [
{
“name”: “Pas de transport pour la journée”
}
]
}
from this
}
]
},
{
"id": 36011,
"state": "closed",
"datetime_start": "2021-02-16T05:25:41-05:00",
"datetime_end": "2021-02-16T20:45:00-05:00",
"closure_informations": [
{
"name": "Pas de transport pour la journée"
}
]
},
{
"id": 40052,
"state": "closed",
"datetime_start": "2022-01-16T19:13:09-05:00",
"datetime_end": "2022-01-17T20:45:00-05:00",
"message": "En raison des avertissements météorologiques en vigueur.Il n’y a pas de cours à distance puisque le calendrier scolaire prévoit que cette journée de classe sera reprise au cours des prochaines semaines.",
"closure_informations": [
{
"name": "Cours suspendus"
},
{
"name": "Pas de transport pour la journée"
}
]
},
(I took a snippet from the demo file to test regex). So far, I got it matching the beginning and everything else but I can’t get it to stop.
“id”: 36011(.|\n|\r|\t)*
My goal is to have all the information and then display it like the message, date, etc.