View Single Post
Old 08-02-2023, 11:53 AM   #2
jrw174
Connoisseur
jrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the roughjrw174 is a jewel in the rough
 
Posts: 78
Karma: 7126
Join Date: May 2023
Device: PocketBook Era
Thinking about it in psuedo code way. I'd do this

Create a sh script
Create a infinite loop based on a time interval (I don't think we can use systemDTimers or CRON)
In the loop get your data that you want
In the loop call one of the inkview apis that wake the device maybe OpenScreen() from this link https://github.com/blchinezu/pocketb...lude/inkview.h
Display with Dialogshow
Have an option to exit the script in the DialogShow

So something like
For( time interval) do
GetData()
Call Openscreen()
ShowDialog()
If DialogReponse == exit
Exit
End loop
Exit


Not sure how this would effect battery with an infinite loop. If someone knows how to set timers up please reply! I'd like to know as well
jrw174 is offline   Reply With Quote