From a16fade74e027281e22c13edc9b4b6b29b4b6434 Mon Sep 17 00:00:00 2001
From: Heiko
Date: Tue, 23 Mar 2021 10:41:56 +0100
Subject: [PATCH] pi-gpiod: improved/fixed EN localisation and added DE help
---
hardware/pigpiod/locales/de/pi-gpiod.html | 38 ++++++++++++++++++++
hardware/pigpiod/locales/de/pi-gpiod.json | 4 +--
hardware/pigpiod/locales/en-US/pi-gpiod.html | 25 +++++++------
hardware/pigpiod/locales/en-US/pi-gpiod.json | 2 +-
4 files changed, 55 insertions(+), 14 deletions(-)
create mode 100644 hardware/pigpiod/locales/de/pi-gpiod.html
diff --git a/hardware/pigpiod/locales/de/pi-gpiod.html b/hardware/pigpiod/locales/de/pi-gpiod.html
new file mode 100644
index 00000000..d9962ded
--- /dev/null
+++ b/hardware/pigpiod/locales/de/pi-gpiod.html
@@ -0,0 +1,38 @@
+
+
+
+
diff --git a/hardware/pigpiod/locales/de/pi-gpiod.json b/hardware/pigpiod/locales/de/pi-gpiod.json
index 1273663b..912ac260 100644
--- a/hardware/pigpiod/locales/de/pi-gpiod.json
+++ b/hardware/pigpiod/locales/de/pi-gpiod.json
@@ -30,7 +30,7 @@
"initpin1": "Initalzustand high (1)",
"pinname": "Pin",
"tip": {
- "pin": "Pins in Verwendung: ",
+ "pin": "Pins in Verwendung: ",
"in": "Nur digitaler Eingang unterstützt - Eingangszustand muss 0 oder 1 sein",
"dig": "Digitaler Ausgang - Node-Eingangswert muss 0 oder 1 sein",
"pwm": "PWM-Ausgang - Node-Eingangswert muss zwischen 0 und 100 sein",
@@ -53,7 +53,7 @@
"errors": {
"invalidpin": "Ungültiger GPIO-Pin",
"invalidinput": "Ungültige Eingabe",
- "error": "Fehler: __error__"
+ "error": "FEHLER: __error__"
}
}
}
diff --git a/hardware/pigpiod/locales/en-US/pi-gpiod.html b/hardware/pigpiod/locales/en-US/pi-gpiod.html
index 471b6c10..84b017b2 100644
--- a/hardware/pigpiod/locales/en-US/pi-gpiod.html
+++ b/hardware/pigpiod/locales/en-US/pi-gpiod.html
@@ -4,12 +4,14 @@
0 or 1 depending on the state of the input pin.
Requires the pi-gpiod
daemon to be running on the host computer in order to work.
- Outputs
-
- msg.payload
- number - the level of the pin (0 or 1).
- msg.topic
- string - pi/{the pin number}
-
- Details
+ Outputs
+
+ - payloadnumber
+ - the level of the pin (0 or 1)
+ - topicstring
+ - pin number
pi/{the pin number}
+
+ Details
You may also enable the input pullup resistor ↑ or the pulldown resistor ↓.
If using with Docker on Pi then the default Host IP should be 172.17.0.1
. You will also need to run sudo pigpiod
on the host.
Note: the pin numbers refer the physical pin numbers on connector P1 as they are easier to locate.
@@ -18,11 +20,12 @@