Grocy: Feature Request: Keep screen on while displaying recipe

Created on 19 Oct 2019  路  4Comments  路  Source: grocy/grocy

One of the most annoying things while cooking is having to unlock the screen with dirty hands, is there an option to keep the screen on (if it's not currently happening)?

enhancement

Most helpful comment

Great, so let's add this as an option in the display menu (where also Night mode and so can be configured) as an option Keep screen on alongside with an option Only while displaying a fullscreen-card to only enable it when for example a recipe is displayed in "expanded mode"...

All 4 comments

There is currently no option for this - and grocy is only a webpage/-app, the Browser has access to your device, not grocy directly.

I don't think there is an official API for this, but maybe https://github.com/richtr/NoSleep.js looks promising which tries to solve this by playing an invisible video in the background...

There are also Browser extensions to help with that...

I am using NoSleep.js for another project, however I am using this PR which reduces the CPU load.

So far I had no issues with it and it is very simple to implement

Great, so let's add this as an option in the display menu (where also Night mode and so can be configured) as an option Keep screen on alongside with an option Only while displaying a fullscreen-card to only enable it when for example a recipe is displayed in "expanded mode"...

This is now done using NoSleep.js.

Two new options in the display menu:

firefox_2020-01-05_10-03-23

Was this page helpful?
0 / 5 - 0 ratings

Related issues

isabellaalstrom picture isabellaalstrom  路  3Comments

Festeazy picture Festeazy  路  5Comments

OmgImAlexis picture OmgImAlexis  路  4Comments

dbxx picture dbxx  路  3Comments

MrJohnZoidberg picture MrJohnZoidberg  路  3Comments