Power Saver package
Very simple power saving example code. Just add this package to your existing setup and it will automatically power off your screen according its configuration.
Adding this package to your existing setups
First of all you have to install this package. The easiest way is probably to visit the package gallery, select the package and click on Import package in the top right corner. You also have to enable Advanced/developer options on the account page, otherwise the option to nest packages isn't available. Once that's done, go to your existing setup. It might look like this:
Click on the Add.. button. A dialog will open:
Give your added package a name. Using the name power is a good idea. Then click on the Add button next to the power package.
Your setup configuration screen will now look like this. As you can see the Power Saver package was added as a child Package to your existing package. Now it's time to customize the Power Saver options. Click on the wrench symbol next to the Power Saver button. The interface will show you the options for that package:
Select your time zone. Then mark each hour of each weekday. Clicking will toggle between red (the screen of your device will be turned off) and green (the screen will be active). You can keep holding your left mouse button to switch multiple hours at once.