View Single Post
Old 12-30-2020, 03:51 PM   #706
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 876
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by geek1011 View Post
It should be as simple as something like 'menu_item:reader:Power-off in 30m:cmd_spawn:sleep 1800;qndb -m pwrShutdown'.
And as geek1011 just pointed out to me on Github, I forgot to add the sleep option. It should be in the next version of NickelDBus.

Quote:
I read this, but it's a little sparse for a n00b like me.
https://shermp.github.io/NickelDBus/
For detailed documentation on what each option does, click the API Documentation link at the top or bottom of the page. It's in 'Qt' speak I'm afraid, but all you really need from it for qndb is the name (the bit after NDB:: ) and the number and type of arguments to pass (eg: QString const& arg is an argument of type string, which is just text) An int means a whole number etc.
sherman is offline   Reply With Quote