Code Monkey home page Code Monkey logo

package-power-saver's Introduction

Import

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. Then go to any of your existing setups. It might look like this:

Before adding the sub package

Click on the Add.. button. A dialog will open:

Adding a sub package

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.

After adding the 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:

Power package options

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.

Offline

This package will not work offline if the device does not have a correct system time, as it's impossible to turn the display on/off according to the set schedule. The device needs at least NTP access to work. The screen will be turned on until the device managed to fetch a somewhat correct system time

package-power-saver's People

Contributors

dividuum avatar

Watchers

 avatar  avatar

Forkers

cainzjuss

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.