Read the statement by Michael Teeuw here.
Timetable with (almost) static data
-
Or maybe I derailed it when I looked at the question of “how to get the csv” after the thread already went to the iframe solution? :D
@AxLed Did you get the php page shown via iframe module?A. Show the .php page via node
A. will not be able to show the php page via node – if you mean my suggestion. It will just get all echo’d content from the php file into the js module. So in this case it’s an over-complicated way of receiving the csv file into a module.
B. use the node_helper.js to open a .csv file and loop through the datas.
The node_helper.js should send the whole package back to the module.js and there it should loop through the datas.
If you have the php knowledge to build a page that reads a csv and shows the content, it shouldn’t be too hard to get into the necessary js. To build a module for the MM, the Readme in the module folder is the first step to go to.
-
@doubleT said in Timetable with (almost) static data:
@AxLed Did you get the php page shown via iframe module?
Yes i did, see my screenshot:
Timetable and datas below is a .php Website, which runs local on RPI and is integrated in MM via MMM-iFrameAxled
-
Ah, true. If that works for you, I’d leave it at that. But then again, it’s always good to learn something new.
Do you want to try it yourself and maybe ask for help when you get stuck? Or maybe this would be an excellent case for a tutorial, I could try to do something like that. -
@AxLed, I also wanted to show today’s class schedules on my magic mirror. Those weekly schedules, e.g. at school or sports clubs, are very reliable and update only with a low frequency. So it is no big deal to change the config every now and then.
I’ve created a module MMM-WeeklySchedule to solve this for me. Feel free to give it a try. Feedback is most welcome.
Cheers.
-
@pinsdorf
Thanks for the link an the name of your module, thats that what i was looking for. I will test it. I like your implementation with “starting time only” and “actual weekday only”, so this saves a lot of space in width to fit better to the other modules.And you are right, if i change datas in an .csv or in a list in the config-file is pretty most the same.
Regards
Axled