Read the statement by Michael Teeuw here.
Schedule Module with XML/Feed source
-
Hello
Iam looking for help to fulfill my girlfriends request :-)
I was able to filter out the course plan for her with feed43
http://feed43.com/5546442377204284.xml (xml example 1)
http://feed43.com/6082708764845543.xml (xml example 2)Now i need to be able to display this feed data like this module:
https://github.com/pinsdorf/MMM-WeeklySchedule
But not filled from the config file. Instead from the sources above.
I think you understand it, otherwise ask me to explain it more detailed ;)Example:
ONE Training Center
Today
8:30 - 9:25 Spinning
8:30 - 9:25 Fun Tone
9:30 - 10:25 Power Yoga
(Data from xml file 1)Tomorrow
8:30 - 9:25 Dances
9:30 - 10:25 BODYPUMP
(Data from xml file 2)So, a mix of the newsfeed and WeeklySchedule module i think ^^
I did not found a similar solution, maybe someone know one or can help me because iam not a programmer :/Thank you very much!
-
@kruemel You can make a mashup of
MMM-WeeklySchedule
for display andMMM-HTTPRequestDisplay
to fetch data which handles an XML response. -
Thank you ninjabreadman but this is to high for me ^^ i cant code
-
is there an example where we change the quoted text in WeeklySchedule to XML. the Chicago CTA api is what i’m trying to resolve to a schedule based on the array they return
like here - https://www.dmcinfo.com/latest-thinking/blog/id/8568/cta-bus-tracking-with-the-raspberry-pi
- sorry if this is super basic
-
Hi @shakir, I suggest you switch to using a JSON (vs XML) response. You just need to add
&format=json
to your query URL, according to the API documentation from CTA. Then you can look at any of the transit modules for MM, most of which handle a JSON response. It might even be easier to modify one of those thanMMM-WeeklySchedule
. Personally, I did something similar withMMM-json-feed
customizing the output to show what I wanted from the json feed for my nearest bus stop.