Chiming The Hour!

Quick redo from scratch on my hourly interval macro. The idea is to add actions to enable or trigger other macros.

One oddity with the device I've got it on (the Onyx Boox Nova 3 Color) is that it pauses if the screen's off. Seems like it'll get through two chimes and then stop for a spell. Took 34 minutes to chime the 11 o'clock hour, this morning!

1644202637693.png
 

Attachments

  • Hourly.macro
    3.9 KB · Views: 20

Abalsam

Active member
Quick redo from scratch on my hourly interval macro. The idea is to add actions to enable or trigger other macros.

One oddity with the device I've got it on (the Onyx Boox Nova 3 Color) is that it pauses if the screen's off. Seems like it'll get through two chimes and then stop for a spell. Took 34 minutes to chime the 11 o'clock hour, this morning!

View attachment 2256
I do not see anything glaring. I would be curious what the system log shows. I would also double check the sunrise/sunset trigger settings as you must define the location to be used to calculate sunrise/sunset.

Also, if I were to tweak the macro to minimize resources, I would do the following:
Since the macro as written checks 4 constraints every time the loop is run and the results would be unchanged each time through the loop, I would check the constraints 1x and set a variable based on the outcome. For example:

If after sunset or before sunrise
- Set variable night=True
Else
- Set variable night=False
End if

Then in the loop do another if:
If variable night=True
- play sound Cricket
Else
- play sound Xenon
End if

This way only half of the involved constraints are tested and then only once but they are still applied each time.

I hope this helps.
 
Top