Read the statement by Michael Teeuw here.
MMM-Podcast don't show/load the latest video
-
Re: MMM-Podcast dont´t show the latest video
Hey,
i installed the MMM-Podcast module and it works as it should. I can send a notification or simply press a button, and the video starts playing. Unfortunately its the same video since 3 days. I use the default feedURL (Tagesschau in 100 sek.)
I looked into the Podcast folder with an ftp-program an it says that the video.mp4 was created today at 05:05 am. But its the same video as 3 days before ?!?!?!
I looked at the website of this feed, and there are still newer videos. Maybe someone got the same problem or an idea and can help.
this morning i typed “pm2 flush”.
this evening i checked pm2 logs and it says:TypeError: this.socketNotificationReceived is not a function at Timeout._onTimeout (/home/pi/MagicMirror/modules/MMM-Podcast/node_helper.js:32:32) at tryOnTimeout (timers.js:232:11) at Timer.listOnTimeout (timers.js:202:5)My config:
{ module: 'MMM-Podcast', config: { updateVideoHours: 5, updateVideoMinutes: 5, feedurl: 'http://www.tagesschau.de/export/video-podcast/webxl/tagesschau-in-100-sekunden/' } },thank you :)
-
Okay… false alarm. Just forget it, it’s working now :D Sorry
-
No internet connection? ;)
-
no, but i am new to programming so it was hard for me to find out.
after i checked the pm2 log again i just gave it a try…
Because it says “this.socketNotificationReceived is not a function”i needed to change a line in the node_helper.js
default one:
else if(this.loaded){ omx.play("modules/MMM-Podcast/video.mp4", {audioOutput: 'local'}); } else{ setTimeout(function(){this.socketNotificationReceived(notification, payload)},2000); }i changed line 32 to this:
else if(this.loaded){ omx.play("modules/MMM-Podcast/video.mp4", {audioOutput: 'local'}); } else{ setTimeout(function(){self.socketNotificationReceived(notification, payload)},2000); }i think, that the download of the video.mp4 wasn’t set to “finished” from the script, so a new video would never be downloaded.
Anyhow it works now, but i noticed that the “updateVideoHours” function in the config.js has no effect at all.
The video has been downloaded several times this day (i think 3-4 times).
But thats ok for me, as the video file is updated also 3-4 times from the website. :) -
ok… i am dumb :(
i realized that the video only was downloaded a few times, cause my Mirror restarts all the time. The watchdog module recognized a few Heartbeat timeouts and restarts every time.
So maybe i need to do some troubleshooting first ^^
-
Ah, debugging. Welcome to the live of a developer. Good luck.
-
Hi,
I am not sure if I should open a new topic, but somehow it fits here as well.
My MMM-Podcast does not show any video at all.
I use the default feedURL like shown above.Is it correct that the modul does not show anything on startup or is there a picture of the linked video shown?
I do not have MMM-Button installed, but it should work with “http://IP:8080/remote?action=NOTIFICATION& notification=BUTTON_PRESSED” as well.
Sending the command my browser says “success” but nothing happens. It always shows nothing.Can anyone help?
Thank you.
Mr.Coffee
-
@MrCoffee
Did you get it running?
-
@fox
No. Unfortunately not.
I don´t know what the issue is. The area were the module should be, is just black.
Nothing happens. -
@MrCoffee
I tried also to debug this, but my error.log dont give me any information. -
@fox
Thats interessting. I just realized your screenshot above.
In my case it does not show anything.
Can you please post the part of your config?Where do I find the error.log?
Thanks
-
did you guys install the omxplayer correctly?
check it like this:
cd MagicMirror/modules/MMM-Podcastomxplayer -o hdmi video.mp4this should play the video.
I am not using a header, so my module isn’t shown on the MM, too. I think that is correct.
-
@cruunnerr
Thanks for helping us.
I tried the code. The player doesn´t show a video but says “have a nice day” in the command line.
I reinstalled it with- sudo apt-get purge omxplayer
- sudo apt-get install omxplayer
Unfortunately it does not help. It is still “have a nice day”.
Any further ideas? -
@cruunnerr
I just tried another video just to be sure: omxplayer /opt/vc/src/hello_pi/hello_video/test.h264
This time it does show some text, but still no video.
The text is:
Video codec omx-h264 width 1920 height 1080 profile 77 fps 25.000000
Subtitle count: 0, state: off, index: 1, delay:0However it does not quit. There is no “have a nice day” but it still shows nothing.
-
So after a couple of days I gave it a new try.
You were close to the solution. I did not install the dependencies right.For all with the same issue, you have to read the instructions better than I did:
- Navigate into your MagicMirror’s modules folder and execute git clone https://github.com/ptrbld/MMM-Podcast.git. A new folder will appear navigate into it. --> which means navigate into MMM-Podcast.
- Execute npm install to install the node dependencies. --> in the folder MMM-Podcast, install the omx-manager and omxdirector (see dependencies).
3. Install omxplayer. --> However, I already had the newest version installed.
Now it works fine. And it is pretty awesome.
Thanks for helping me.
Mr.Coffee
-
This post is deleted!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login