@Stubbsy1994 The link you provided describes how to embed youtube API into HTML sites using iframe-Tags in two ways. It seems, the module shown in the thread above uses the first method (iframe with source http:// www.youtube. com/embed/VIDEO_ID?parameters). I guess, the pure JS method ultimatively also uses an iframe since its called IFrame Player API.
As far as I can see, both have equal functionality. It’s not really documented, but it seems like you can call all the functions for the player-object listed here in the direct iframe approach (first method), too. See parameter enablejsapi=1. For example pause or seek-to (not verified for all functions!):
The biggest issue is getting the app-key. I completed the request form 3 times and it took 2-3 weeks but I received my app-key and went on.
This is my spotifyconnect.sh file. Of course you need to add your spotify premium username and password. And you might need to play around with playback devices. The -n switch defines the name you see when browsing for Spotify devices.
After everything is set, the connect service is running on your pi and you should be able to select it on your smartphone, your tablet, the browser frontend or your computer, if you are on the same network.
For more context on this, in fact my understanding above is correct. I modified both MMM-Facial-Recognition and my own module to use a lockString option, and the module is showing and hiding as I expect / want now.
However it doesn’t address my second question – could I have accomplished this without modifying MMM-Facial-Recognition?
@d3r looks like I won’t be able to add MLS. Turns out there is no public API available, and I don’t really want to go down the route of scraping a web site. Still going to add NFL, and hopefully CFL (still looking for an API).
The good news, is that I’ve set this up to be modular. Adding sports is a fairly easy thing to do when an API becomes available. If MLS decides to make available an API, it’s maybe a couple of hour’s worth of effort to get it set up.
I was able to fork and tweak @barnabycolby’s MMM-Carousel to manually switch between slides and show the page dots and navigation arrows without touching any core code. I also added the ability to move or change appearances of each module on a per-slide basis.
Wow, no replys. I have not found much, for a directory of classes you may want to look into a web page, the raspberry pi can host a local web server and display what you want… (I used https://www.w3schools.com/html/html_basic.asp to help set up the page). Then you can just display the page or put the page in your MM with iframe.
Or some kind of note module like Wunderlist, that way it will display classes, and you can change them on your phone/pc.
@Anhalter42 I spend some time going through the calendar module code, i can read it fairly well, for the syntax i dont understand there is always google. After review, I see why there are no separate fetchInterval’s for each calendar. Each calendar’s events are added to an array, then sorted together also the dom (html table) is created from scratch on each interval. Without a tremendous restructuring of code, setting up separate interval timers, persisting the ical events array, etc. the value to adding this is limited.
Your comments help me immensely, thank you. I reviewed the template module, i’l start playing with that and do a Hello World module exercise when i return home at the end of the month.