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

Option to limit comic height #5

Merged
merged 11 commits into from Nov 10, 2016
Merged

Option to limit comic height #5

merged 11 commits into from Nov 10, 2016

Conversation

Jopyth
Copy link
Contributor

@Jopyth Jopyth commented Oct 25, 2016

If the comic is larger, it scrolls downwards in a configurable interval. Since this eats a little bit of CPU, this pauses, if the module is hidden, and also listens for a USER_PRESENCE event to automatically stop scrolling from a possible PIR sensor.

Also added options to change appearance in the config, for title and alt text, and to optionally use random comics on days, when there is no new one.

@Jopyth
Copy link
Contributor Author

Jopyth commented Oct 27, 2016

Found some last bugs. Can someone else also verify, that everything works for them as intended? For example, set limitComicHeight: 100 and see if it scrolls correctly?

Then I think @Blastitt could merge this.

invertColors: true
title: true
invertColors: true,
title: true,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch ;)

* Use this method to conveniently suspend your module when no user is present.
*/
checkUserPresence: function(notification, payload, sender) {
if (sender && notification === "USER_PRESENCE") {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there another module that can detect user presence and broadcast a notification?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The MMM-PIR-Sensor module (github / forum).

@Blastitt Blastitt merged commit 75f423c into Blastitt:master Nov 10, 2016
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

Successfully merging this pull request may close these issues.

None yet

3 participants