Sample Flow read Data with Serial USB JeeLink and send its Data to Debug console.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>de.wenzlaff.mqtt.client</groupId> | |
<artifactId>de.wenzlaff.mqtt.client</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<repositories> | |
<repository> | |
<id>Eclipse Paho Repo</id> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package de.wenzlaff.mqtt.client; | |
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder; | |
/** | |
* Java to Json Beispiel. | |
* | |
* Maven Abhängigkeit für Gson ergänzen: | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package de.wenzlaff.mqtt.client; | |
import java.io.Serializable; | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
import java.util.Date; | |
/** | |
* Farben Klasse. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Setze Dateirechte /etc/openhab auf 777" | |
sudo chmod -R 777 /etc/openhab | |
sudo ls -la /etc/openhab* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<version>2.10</version> | |
<executions> | |
<execution> | |
<id>analyze</id> | |
<goals> | |
<goal>analyze-only</goal> | |
</goals> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Thomas Wenzlaff - www.wenzlaff.info - www.wenzlaff.de - 8.8.2017 | |
// | |
// Groovy Script welches die Maven Api nach Klassennamen, GroupId und allgemein abfragt | |
// und das Ergebnis auf der Konsole ausgibt. Maximal 1000 Ergebnisse. | |
// | |
// Aufruf: groovy MavenApi.groovy [Suchparameter] | |
// Z.B. groovy MavenApi.groovy wenzlaff | |
// Liefert: | |
// Suche in der Maven API nach Begriff: wenzlaff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Testserver der die Systemumgebung ausgibt. | |
* | |
* Thomas Wenzlaff (c) 2017 wenzlaff.info | |
* | |
* Aufruf: | |
* | |
* http://localhost:4567/info | |
*/ | |
@Grab(group = 'com.sparkjava', module = 'spark-core', version = '2.1') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node{ | |
try{ | |
stage('Flugdaten HAJ abfragen') { | |
echo 'Max Summe Flugzeuge in EDDV' | |
httpRequest consoleLogResponseBody: true, ignoreSslErrors: true, outputFile: 'flugdaten.txt', responseHandle: 'NONE', timeout: 10, url: 'https://api.thingspeak.com/channels/44177/feeds/last.json' | |
} | |
stage('Kaffee verbrauch abfragen') { | |
echo 'Kaffee verbrauch Summe' | |
httpRequest consoleLogResponseBody: true, ignoreSslErrors: true, outputFile: 'kaffeedaten.txt', responseHandle: 'NONE', timeout: 10, url: 'https://api.thingspeak.com/channels/242708/feeds/last.json' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.junit.Test; | |
import org.junit.jupiter.api.DisplayName; | |
/** | |
* Test von Ausnahmen in JUnit. | |
* | |
* @author Thomas Wenzlaff www.wenzlaff.de | |
*/ | |
public class Ausnahmen { |