This is the main module of the Lights application. It runs as a daemon on the server. It handles the automatic switching of the lights. For an overview please see repository Lights.
The project structure is that of NetBeans 8.4/Maven.
History:
Version 1.2.1 - 06-11-2021
- Added cleaning database at upgrade time one month in the past
- Uses LightSupport version 1.2.1
Version 1.2 - 12-09-2021
- Upgraded to NetBeans 12.4/Maven/JDK 15
- Java version limited to 11 because of deployment on Raspbian
Version 1.1.1 - 18-08-2021
- Recompiled with LightSupport version 1.1.1
- Deleted old commented-out code
Version 1.1 - 10-06-2021
- Enhanced LightSensor. Instead of just counting the cycles needed to reach 'High' on the sensorpin the elapsed time (in hundredth if a millisecond) is returned. The OpenJDK runtime changes the algorithm used during execution (it gets much more efficient) so 'number of iterations' is no longer comparable.
- Deleted obsolete support for FM switches.
- Auto retry of failed calls to switches now only executed for automatic calls. Actions entered through the API are not retried.
- Automatic shut-off of supported switches is set to Light-Off time + 2 hours.
- Uses upgraded LightSupport.jar (Version 1.1)
Version 1.0.1 - 14-01-2019
- Logmessage for Time lights off enhanced
- Bug fixed in LightOffPeriod (used Settings.xPeriod instead of Settings.LightOffPeriod)
Version 1.0 - 04-12-2018
- English translation of LichtSchakel
- Changed to English protocol for esp switches
- Uses package jb.light.support
- Stopped using packages jb.licht.klassen and jb.licht.gegevens