Compare commits

...

2 Commits

Author SHA1 Message Date
ca43d6b9a5 neueres rust verwenden
Some checks failed
Build Docker Image (Podman) / build (push) Failing after 14m29s
2026-03-18 17:57:26 +01:00
68140a0c45 Daten für InfluxDB ohne type 2026-03-18 17:28:21 +01:00
3 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
[package] [package]
name = "paramod" name = "paramod"
version = "__VERSION__" version = "__VERSION__"
edition = "2021" edition = "2024"
[dependencies] [dependencies]
serde_yaml = "0.9" serde_yaml = "0.9"

View File

@ -1,6 +1,6 @@
# Build Stage # Build Stage
FROM rust:1.81 as builder FROM rust:1.85 as builder
WORKDIR /usr/src/app WORKDIR /usr/src/app

View File

@ -31,7 +31,7 @@ pub fn start_influx_thread(config: Arc<Mutex<AppConfig>>, values: Arc<Mutex<Modb
if should_write(&config, name, "input_register") { if should_write(&config, name, "input_register") {
let point = WriteQuery::new(Timestamp::from(Utc::now()), measurement.clone()) let point = WriteQuery::new(Timestamp::from(Utc::now()), measurement.clone())
.add_field(name, *v) .add_field(name, *v)
.add_tag("type", "input_register") // .add_tag("type", "input_register")
.add_tag("location", location.as_str()) .add_tag("location", location.as_str())
.to_owned(); .to_owned();
points.push(point); points.push(point);
@ -44,7 +44,7 @@ pub fn start_influx_thread(config: Arc<Mutex<AppConfig>>, values: Arc<Mutex<Modb
if should_write(&config, name, "holding_register") { if should_write(&config, name, "holding_register") {
let point = WriteQuery::new(Timestamp::from(Utc::now()), measurement.clone()) let point = WriteQuery::new(Timestamp::from(Utc::now()), measurement.clone())
.add_field(name, *v) .add_field(name, *v)
.add_tag("type", "holding_register") // .add_tag("type", "holding_register")
.add_tag("location", location.as_str()) .add_tag("location", location.as_str())
.to_owned(); .to_owned();
points.push(point); points.push(point);
@ -57,7 +57,7 @@ pub fn start_influx_thread(config: Arc<Mutex<AppConfig>>, values: Arc<Mutex<Modb
if should_write(&config, name, "coils") { if should_write(&config, name, "coils") {
let point = WriteQuery::new(Timestamp::from(Utc::now()), measurement.clone()) let point = WriteQuery::new(Timestamp::from(Utc::now()), measurement.clone())
.add_field(name, *v) .add_field(name, *v)
.add_tag("type", "coils") // .add_tag("type", "coils")
.add_tag("location", location.as_str()) .add_tag("location", location.as_str())
.to_owned(); .to_owned();
points.push(point); points.push(point);