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
Conversation
Conflicts: DailyXKCD.js README.md
Found some last bugs. Can someone else also verify, that everything works for them as intended? For example, set Then I think @Blastitt could merge this. |
invertColors: true | ||
title: true | ||
invertColors: true, | ||
title: true, |
There was a problem hiding this comment.
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") { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.