Code Monkey home page Code Monkey logo

Comments (14)

bolish avatar bolish commented on July 29, 2024 1

@gpetersen
Everthing seems to work perfectly on my side.
Notifications (Next, Play, Pause) works well.
Seems the timer issue is definetly solved.
What to say?? Works life a charm, thank you very much.
Let's get that PR into the original branch so that everybody can enjoy your work!!

from mmm-backgroundslideshow.

bolish avatar bolish commented on July 29, 2024 1

don't know what happened...I tried several time again, and worked each time...
Anyway, one more thanks for the module, it rocks.

from mmm-backgroundslideshow.

sony8943 avatar sony8943 commented on July 29, 2024 1

Hello Darik I have PIR sensor and it's working great with my magic mirror it's open the HDMI screen but this is not the issue that the problem is I want when it's open the screen HDMI to start to play the picture then when the screen it's off to put in in pause mode.
Another one question if you have from the keyboard to press to put the play mode and the pause mode.
Thank you

from mmm-backgroundslideshow.

gpetersen avatar gpetersen commented on July 29, 2024

I've been working on a fork to do something similar. E.g. right now the code will also refresh any time the module's .resume function is called, which means for modules like MMM-Carousel, the image changes every time the slide changes. I've submitted a change to fix that behavior. Wouldn't be too difficult to incorporate this as well. What would you like the notifications to look like? Something like:
BACKGROUNDSLIDESHOW_PAUSE
BACKGROUNDSLIDESHOW_PLAY

Any need to change the slideshow timer interval?

from mmm-backgroundslideshow.

bolish avatar bolish commented on July 29, 2024

@gpetersen Hi,

Implementation of
BACKGROUNDSLIDESHOW_PAUSE (stop refresh / rotation)
BACKGROUNDSLIDESHOW_PLAY (resume)
BACKGROUNDSLIDESHOW_PRV (go to next image)
BACKGROUNDSLIDESHOW_NXT (got to previous image)
BACKGROUNDSLIDESHOW_SHOW EXIF (I just noticed your other module called "Exif", should be great to have both integrated)

Would be perfect indeed. (I will look at your fork for my information)

Having an option to change the timer interval within config.js would beperfect also!

By the way, do you experience some issues with lagging or timer stability ? In some case, 4 or 5 different images are displayed wihtin 10seconds, sometimes one image during 30s, Strange...

from mmm-backgroundslideshow.

gpetersen avatar gpetersen commented on July 29, 2024

@bolish

Play, Pause, Next should be easy and I'll post an update after I finish working on EXIF. So far it's working and I'm pretty happy with it. PREV is harder since they're random and it's not yet retaining history so far as I can tell, not impossible, but would take some thought.

To answer your original question: I used to have the timer issues until I moved the refresh outside of the .resume function. I haven't seen problems since.

from mmm-backgroundslideshow.

bolish avatar bolish commented on July 29, 2024

@gpetersen
Ok. Play / pause is.priority for me. Previous could be cherry on the cake.
I will try your fork to check timer improvement!
(FYI my picture library is an remote NFS folder, maybe it can explain the lagging issue).
Keep me posted for the updates!!

from mmm-backgroundslideshow.

gpetersen avatar gpetersen commented on July 29, 2024

@bolish
My changes are posted, I also found the bug in the timer/multiple refresh issues. The problem was there were some conditions where there were multiple timers running, and this could create the situation where the images changed quickly. While implementing the Play/Pause/Next I fixed that. Tested so far on my end.

There's two modules. I haven't actually run it on Linux yet, just on my setup that runs on Windows, so there may be some issues.
https://github.com/gpetersen/MMM-BackgroundSlideshow is my fork of the BackgroundSlideshow with the new functionality, and in addition it will also send a notification when the image is updated to allow my second module: https://github.com/gpetersen/MMM-BackgroundSlideshowInfo to know the image has changed and to get the image metadata and show it.

Please test them out and submit any bugs over there. If they work well I'll request a Pull from @darickc .

from mmm-backgroundslideshow.

darickc avatar darickc commented on July 29, 2024

Thanks for working on this. I have seen the timer issue also, glad you got it fixed. I'm also glad that others have found this module useful.

from mmm-backgroundslideshow.

gpetersen avatar gpetersen commented on July 29, 2024

No problem. This module fit 80% of what I needed for my "MagicPictureFrame", but wanted a couple more features on top, a good learning exercise. Will look into other options like "PREV" in the future, but wanted to get the easy ones out sooner than later.

from mmm-backgroundslideshow.

bolish avatar bolish commented on July 29, 2024

@gpetersen @darickc
Sorry to bother again guys.
Is it normal that the module is not able to pick into subfolders?

I'm targeting the module to folder A which does only contain subfolders. Pictures are in those subfolders.
When I do that, module is not showing any picture.

I can only get it do work when pictures are at folder A root.

Strange or normal?

recursiveSubDirectories: true,......

Sorry guys...

from mmm-backgroundslideshow.

gpetersen avatar gpetersen commented on July 29, 2024

recursiveSubDirectories: true,
Should be all you need.. I have some pretty deep subdirectory trees and it works well on my system, definitely not normal.

Is the recursiveSubDirectories within the β€œconfig” section of your module config? Right next to the imagePaths:

from mmm-backgroundslideshow.

bolish avatar bolish commented on July 29, 2024

Guys, I have a new feature idea...
Maybe @gpetersen is already managing that as your project is a picture frame...
How do you manage pictures which are not in the right format (let's say your screen is portrait, and the image to display landscape)?
I believe you're using "contain" instead of "cover".

What do you think about a third mode which could be ':

  • Use "cover" but have some movement during the slideshowspeed that will move slowly the picture?

ie : screen is portrait. picture is landscape. Setting is "cover". The image height = screen height but the movement (starting from left edge) will slowly bring the picture to the right side edge.

from mmm-backgroundslideshow.

gpetersen avatar gpetersen commented on July 29, 2024

Good question, my screen is landscape, but you could have the same problem either way. I think for now it meets my needs, but may look into a more dynamic slideshow/collage at some point in the future.

from mmm-backgroundslideshow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.