## I would like to set up a motion sensor to control the outdoor lighting of homes, but also a dimming function. How complex would it be?

I am trying to improve / modify the lighting system of our house while keeping (somewhat) in mind the energy efficiency, and I would like to ask help and / or ideas on how to reach my end goal. :RE

Our house has two exterior lights to illuminate our driveway and the surrounding "back" area of ​​the house. It is connected to a single switch, as in most homes with a garage / driveway. . What I was trying to find out was whether there was a way to mount an external motion detector, such as an outside PIR to detect motion, as a trigger to turn on the lights. There are usually lights with built-in motion detectors, but I would like to know if I can mount the remote motion detector in a central location without replacing or modifying the fixtures and simply connecting the motion detector separately.

However, my idea is slightly distorted: I hoped that it would be possible to also add a dimming feature to the system. For example, I would like to be able to turn on the taillights, however at a brightness of 35% until the movement triggers the lighting at 100% for a predefined time, then I come back to a brightness 35% to save energy.

This idea was born a few years ago when I saw for the first time our local Walmart use LED fixtures in their garage with a kind of dimmer and motion detector simultaneously: the light was extinguishing and went down to about 50% brightness, and then actively. 100% trigger when approaching a car / person.

I would like to see if it would be possible to implement the same idea for our rear garage lights. If I can find something that allows me to do this, then it will be possible to install a higher or higher power light bulb, which would emit a lot of light when needed (that is to say : an unscrupulous individual walking nearby) while being deafened. always provide enough light and save energy during the night.

In simple terms, would that be a lot of work and is it even possible without being too complex? I have basic knowledge of electricity and it would not be difficult to wire something, but most of the time, it seems that my "idea" is too sophisticated or not profitable enough?

Any idea would be appreciated. :RE

## java – FXGL Dimming Problems: Can not Derive Module Descriptor for Kotlin-reflect

I'm trying to work with FXGL in Eclipse, but for the moment nothing will work for me.

The project is done with grade. In my build.gradle I added
compile com.github.almasb: fxgl: 0.5.4 & # 39;

Below is my entire build.gradle:

``````Apply the plugin: "application"
apply the plugin: & # 39; com.google.osdetector & # 39;

mainClassName = & # 39; interslice.Main & # 39;

repositories {
jcenter ()
}

buildscript {
repositories {
mavenCentral ()
}
dependencies {
}
}

ext.platform = osdetector.os == & osx & # 39; & # 39; mac & # 39; osdetector.os == & # 39; windows & # 39; & # 39; win & # 39 ;: osdetector.os

dependencies {
compile & # 39; org.apache.commons: commons-math3: 3.6.1 & # 39;
compile io.javaslang: javaslang: 2.0.5 & # 39;
compile & # 39; org.xerial: sqlite-jdbc: 3.23.1 & # 39;
compile "org.openjfx: javafx-base$$platform " compile "org.openjfx: javafx-graphics: 11:$$Platform"
compile "org.openjfx: javafx-controls: 11: \$ platform"

compile com.github.almasb: fxgl: 0.5.4 & # 39;
}

compileJava {
do it first {
options.compilerArgs = [
'--module-path', classpath.asPath,
]
}
}

run {
do it first {
jvmArgs = [
'--module-path', classpath.asPath,
]
}
}
``````

But I get this error:

``````: compileJava
: NO-SOURCE processResources
:Classes
:run
An error occurred while booting the boot layer
java.lang.module.FindException: unable to derive the module descriptor for /home/myname/.grades/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.1.3/ .. ./ kotlin-reflect-1.1.3.jar
Caused by: java.lang.module.InvalidModuleDescriptorException: provider class org.jetbrains.kotlin.load.java.FieldOverridabilityCondition not in module
``````

This has nothing to do with Eclipse because it's exactly what happens when I run from the terminal.
Has anyone ever seen this problem? Please help, I can not find a solution anywhere online. I think the answer might be that I just have to add an addiction to Kotlin that I do not have?

If this helps you, here is the grad information that appears when you run:

``````Gradle Distribution: Gradle envelope from the target build
Java home: / usr / lib / jvm / java-11-openjdk-amd4
JVM arguments: None
Program arguments: none
Building analyzes enabled: false
Offline mode enabled: false
``````

## Can not install Apache Kafka because of a dimming lock

I'm trying to build Apache Kafka cloned from here with Gradle. However, when I run ./gradlew installAll, it fails with the following error message:

* That's what did not go well:

Unable to lock the buildSrc build lock because it has already been locked by this process.

I've tried removing the ~ / .gradle / cache locks and even switching to older versions of Gradle, but nothing seems to work. What is going on here and what can I try again?