piSchedule . Overview

Deutsche Version

Flexible Lighting Switching with WLAN / Tasmota . 2020-10-27

piSchedule is an application for the time-controlled switching of devices according to definable daily schedules, which can vary with sunrise / sunset as well as random times. Presence and activity can be simulated with this variably designed house lighting.

piSchedule is an easy-to-use browser application that runs on smartphones, tablets or PCs. Settings, operation, tracking of messages or calling up the documentation are carried out by means of menu control.

piSchedule is aimed at users who, after the initial installation, want to carry out time-controlled switching as well as adapting the daily schedule with the usual elements of a smartphone or PC.

See also piSchedule on Smartphone and PC

piSchedule is a Python program that is installed on a RaspberryPI (RPI) ▸ Description of the setup . After installation, the use of the RPI console is typically no longer required. The console can be used to display log messages, among other things. The console maybe used for log messages.

pilight Switching with Time Schedule -- Overview

piSchedule offers a simple menu driven concept for operation.

Job Definition

With piSchedule the user defines at what time which device has to be switched on/off -- such a definition is called a Job. For the time definitions of a 'Job' a variety of methods are available, absolute time or relative to a previous defined time (eg. to switch off after a certain time period), or also relative to sunrise/sunset. All time values can be varied randomly also. Multiple actions for the same device can be handled with one 'Job'.

Day Schedule

A Day Schedule consists of configured 'Jobs'. The Day Schedule definition relates to one day and will be named and stored as a text file (extension .ini required) -- example piSchedule.ini.

      piSchedule Start Page

This illustration shows the use of the menu control to create jobs. The daily schedule can also be created with a simple text editor (vi, nano etc).

For starting a day schedule the user selects one of those day schedule files from the menu list. That way that plan is activated and piSchedule will calculate the required switching times, taking into account the information related to sunrise, sunset and random times.

With activation of a 'Job' also the resulting time information is checked for consistency. If an already elapsed time is calculated for a job, this is ignored and logged in a piSchedule log file.

(Detailed examples and additional technical aspects of the 'piSchedule jobs' are described in ▸ Time control - examples)

Week Schedule

The week schedule can define different daily schedules for each weekday. If no day schedule for a given weekday is defined (or it's not valid) the day schedule of the previous weekday is used again. This way a definition of just two day schedules for Monday .. Friday and Saturday .. Sunday makes it easy to have a working days and a weekend schedule.

The definition is made on the "Edit Daily / Weekly Plan" page.

For each day of the week, a 'Day Schedule' is selected from the available daily schedules in the menu. The choice of '--' removes a previously selected Day Plan, so that the Dail Plan of the previous weekday is used.

piSchedule -- Settings / Preferences

With starting of piSchedule the following parameters -- the preference are retrieved:

Starting piSchedule

piSchedule will be started on the RaspberryPi console with
sudo service piSchedule start

The further operation is done via the browser (Web-GUI). The start address for piSchedule is specified during installation in the form
http://{server}:{port}/   or   {RPIname}:{port}/
The RPIname is defined in the router configuration.
At the console you can get this information with

 $ ./systemAndPort.py
        ['raspberrypi:5005', '']     (example data)

This entry in the address line of the browser starts piSchedule.

      piSchedule Start Page

Exit pischedule

piSchedule is aborted on the RaspberryPI console with
pi@raspberrypi / $ sudo service piSchedule stop,
or cancel in the browser with: http://{server}:{port}/close.
But a restart is only possible via the console!

piSchedule on Smartphone/Tablet or PC

To operate piSchedule the browser is used. The console is only necessary with very limited situation like locking into the log files.

The piSchedule start address http://{server}:{port} entered in the address field of the browser opens the piSchedule web page with the 'overview' of the known WLAN/Sonoff devices (see also above).

Note     The info info icon opens documentation on the context.

Overview Web Pages

© gNeandr     --     piSchedule ist ein freies Open Source Projekt     --     Feel free to use it.

Donate button     Spende was piSchedule Dir wert ist.
Kommentare, Fragen und Rückmeldungen im piSchedule Forum