Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Automatic refresh of image when change is detected #2

Closed
ElYoM opened this issue Feb 14, 2017 · 8 comments
Closed
Assignees

Comments

@ElYoM
Copy link

ElYoM commented Feb 14, 2017

Hello,

I am currently using your module and I was wondering if it was possible to implement an automatic image refresh system when a change is detected or after a configurable delay? I ask for this because I generate an image of the sunshine of the Earth using Xplanet every 2 minutes and then I display it using your module and I really want these changes to appear automatically without having to restart the entire MagicMirror application.

Thank you in advance.
2017-02-14_00-27-45

@frdteknikelektro
Copy link
Owner

frdteknikelektro commented Feb 16, 2017

Hi! Wow, that's awesome, could you show module config in you config js for simple-logo module?
I interested in fileUrl config, what url did you provide?

@ElYoM
Copy link
Author

ElYoM commented Feb 16, 2017

Hello, I have not modified the configuration options of the module, it is the default options that are used. I just generate an image of the Earth with Xplanet every two minutes and this image is saved instead of the module's logo.png file. ;)

{ module: 'MMM-SimpleLogo', position: 'middle_center', // This can be any of the regions. config: { // The config property is optional. // See 'Configuration options' for more information. fileUrl: 'modules/MMM-SimpleLogo/public/logo.png', width: '600px', position: 'center', } },

@frdteknikelektro
Copy link
Owner

So you just save the picture in folder 'modules/MMM-SimpleLogo/public' and save it with name 'logo.png'?
Are you generate the image of the Earth automatically?

@ElYoM
Copy link
Author

ElYoM commented Feb 18, 2017

Hello,
Yes, this is right. Xplanet automatically generates a new image every two minutes and overwrites the logo.png file located in the 'modules / MMM-SimpleLogo / public' directory. Do you think it is possible to add an automatic refresh mechanism of the image file ?

@frdteknikelektro
Copy link
Owner

Yes, of course, it's possible, let me notify you if the patch is done.

@ElYoM
Copy link
Author

ElYoM commented Feb 19, 2017

Awesome ! Thank you very much.

@ElYoM ElYoM changed the title [Request] Automatic refresh of image when change is detected [Feature Request] Automatic refresh of image when change is detected Feb 19, 2017
@frdteknikelektro frdteknikelektro self-assigned this Feb 19, 2017
frdteknikelektro added a commit that referenced this issue Feb 19, 2017
Add config refreshInterval to accomodate #2 v1.1.0
@frdteknikelektro
Copy link
Owner

frdteknikelektro commented Feb 19, 2017

Check this out v1.1.0.
See README.md

Your project is awesome, you should do a time-lapse video! Please post your project when you're done! and let me notified

@ElYoM
Copy link
Author

ElYoM commented Feb 19, 2017

Excellent work ! Thank you for everything. I will test these changes and I will come back to you in case of bug finds. I will try to make a time-lapse video of the final render.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants