Skip to content

Commit 59eb2bf

Browse files
committed
offset2 added
1 parent bb0fe01 commit 59eb2bf

13 files changed

+115
-25
lines changed

dist/assets/i18n/translations_de.json

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"gpio": "<b>GPIO:</b> Die Kontaktstifte auf dem Raspberry Pi Board haben zwei Nummerierungen. Eine physische von 1 bis 40 und eine für jeden frei programmierbaren GPIO. Bei der Angabe des Kontaktstiftes wird hier im Wartungsmodus immer die GPIO Nummerierung angegeben.",
1010
"hx711": {
1111
"offset": "<b>Offset:</b> Beeinflusst das Messergebnis indem das Offset vom Messwert abgezogen wird.\n<br />Kann auch eine negative Zahl sein. <b>Angabe in Gramm.</b> Standard ist \"0\".",
12+
"offset2": "Kann auch eine negative Zahl sein. <b>Angabe in Gramm.</b> Standard ist \"0\". <b>Der Wert wird am Ende Wartungsmodus automatisch errechnet, indem die Gewichtsveränderung im Wartungsmodus automatisch erfasst und mit dem bisherigen Wert verrechnet wird.</b>",
1213
"scale": "<b>Skalierungswert:</b> Beeinflusst das Messergebnis indem (Messwert-Offset) durch den Skalierungswert geteilt wird.\n<br />Es sind vier Nachkommastellen erlaubt und die <b>Nachkommastellen werden mit Punkt</b> und nicht mit Komma getrennt. Standard ist \"1\"."
1314
},
1415
"noTempSensorFound": "Es konnte kein Temperatursensor am Gerät gefunden werden.",
@@ -172,6 +173,7 @@
172173
"measurementNone": "Keine Messdatenübertragung",
173174
"measurementOnce": "Einmalige Übertragung nach dem Anschalten (empfohlen für das WittyPi-Modul)",
174175
"offset": "Offset",
176+
"offset2": "Summe Gewichtsänderungen",
175177
"power_cut_delay": "Verzögerung der Abschaltung [Sekunden]",
176178
"pressure": "Luftdruck",
177179
"pulsing_interval": "Intervall für LED blinken [Sekunden]",
@@ -203,6 +205,7 @@
203205
"title": "Angeschlossene Sensoren",
204206
"ts_field_absolutehumidity": "Absolute Luftfeuchte [g/mᵌ]",
205207
"ts_field_uncompensated": "Unkompensiertes Gewicht",
208+
"ts_field_offset2": "Feld für Summe der Gewichtsänderungen",
206209
"use3V": "Einen GPIO als 3,3V Quelle vewenden",
207210
"version": "Version",
208211
"weightcell": "Wägezelle",

dist/assets/i18n/translations_el_GR.json

+1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
"measurementNone": "Υπολογισμός μετρήματος",
121121
"measurementOnce": "Ανεπανάληπτη μεταφορά μετά την ενεργοποίηση",
122122
"offset": "Offset",
123+
"offset2": "Offset 2",
123124
"pressure": "Ατμοσφαιρική πίεση",
124125
"quality": "Ποιότητα αέρα εσωτερικού χώρου",
125126
"scale": "Μονάδα κλίμακας",

dist/assets/i18n/translations_en.json

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"gpio": "<b>GPIO:</b> The contact pins on the Raspberry Pi Board have two numberings. One physical from 1 to 40 and one for each freely programmable GPIO. Here in maintenance mode is always the GPIO numbering beeing used.",
1010
"hx711": {
1111
"offset": "<b>Offset:</b> Influences the measuring result by subtracting the offset from the measured value.\n<br />Can also be a negative number. Indication in grams. Default is \"0\".",
12+
"offset2": "<br />Can also be a negative number. Indication in grams. Default is \"0\". <b>Changed automatically during maintenance mode. Any weight change in maintenance mode is automatoically measured and this value will be updated.</b>",
1213
"scale": "<b>Scaling value:</b> Influences the measurement result by dividing (measured value-offset) by the scaling value.\n<br /> Four decimal places are allowed and the decimal places are separated by a dot and not by a comma. The default is \"1\"."
1314
},
1415
"noTempSensorFound": "No temperature sensor could be found on the device.",
@@ -172,6 +173,7 @@
172173
"measurementNone": "No measurement data transfer",
173174
"measurementOnce": "One-time transfer after power-on (suggested for WittyPi module)",
174175
"offset": "Offset",
176+
"offset2": "Sum of weight changes",
175177
"power_cut_delay": "Power cut delay [Seconds]",
176178
"pressure": "Air pressure",
177179
"pulsing_interval": "Interval for LED pulsing [Seconds]",
@@ -203,6 +205,7 @@
203205
"title": "Attached sensors",
204206
"ts_field_absolutehumidity": "Absolute humidity",
205207
"ts_field_uncompensated": "Non compensated weight",
208+
"ts_field_offset2": "for Sum of weight changes",
206209
"use3V": "Using a GPIO as 3.3V power supply source",
207210
"version": "Version",
208211
"weightcell": "Weight cell",

dist/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
<style>:root{--blue:#007bff;--indigo:#6610f2;--purple:#6f42c1;--pink:#e83e8c;--red:#dc3545;--orange:#fd7e14;--yellow:#ffc107;--green:#28a745;--teal:#20c997;--cyan:#17a2b8;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#007bff;--secondary:#6c757d;--success:#28a745;--info:#17a2b8;--warning:#ffc107;--danger:#dc3545;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,:after,:before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}@media print{*,:after,:before{text-shadow:none!important;box-shadow:none!important}@page{size:a3}body{min-width:992px!important}}html{position:relative;min-height:100%}body{margin-bottom:80px}</style><link rel="stylesheet" href="styles.f1c81461e89342f1.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles.f1c81461e89342f1.css"></noscript></head>
1212
<body>
1313
<app-root></app-root>
14-
<script src="runtime.6c645301152a1cb6.js" type="module"></script><script src="polyfills.a8f7b07cd8d896a8.js" type="module"></script><script src="scripts.02bda0a137d78c36.js" defer></script><script src="main.accb7d29684e2779.js" type="module"></script>
14+
<script src="runtime.6c645301152a1cb6.js" type="module"></script><script src="polyfills.a8f7b07cd8d896a8.js" type="module"></script><script src="scripts.b52d7989fcb36b58.js" defer></script><script src="main.2ecea6d60b840f3c.js" type="module"></script>
1515

1616
</body></html>

dist/main.2ecea6d60b840f3c.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/main.accb7d29684e2779.js

-1
This file was deleted.
File renamed without changes.

package-lock.json

+75-23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/components/sensors/sensors.component.html

+22
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,28 @@
229229
</div>
230230
</div>
231231
</div>
232+
<div class="row">
233+
<div class="col-12 col-md-6">
234+
<label for="offset2">{{'settings.sensors.offset2' | translate}}</label>
235+
<input type="number" step="1" class="form-control" [(ngModel)]="sensor.offset2" id="offset2" name="offset2" placeholder="{{'settings.sensors.offset2' | translate }}" />
236+
</div>
237+
<div class="col-12 col-md-6">
238+
<div class="col-12 col-sm-6">
239+
<settings-ts-field [label]="'ThingSpeak ' + ('settings.sensors.ts_field_offset2' | translate)"
240+
[ts_field_id]="'ts_field_offset2'"
241+
(ts_fieldChanged)="sensor.ts_field_offset2 = $event"
242+
[ts_field]="sensor.ts_field_offset2" [channels]="settings.ts_channels" ></settings-ts-field>
243+
</div>
244+
</div>
245+
<div class="row">
246+
<div class="col-12 col-md-6">
247+
<div class="alert alert-info" [innerHTML]="'alerts.hx711.offset2' | translate"></div>
248+
</div>
249+
<div class="col-12 col-md-6">
250+
251+
</div>
252+
</div>
253+
</div>
232254
<div class="row">
233255
<div class="col-12">
234256
<div class="form-group form-check">

0 commit comments

Comments
 (0)