Daten für InfluxDB ohne type
This commit is contained in:
1 parent
3ed80f4b68
commit
68140a0c45
1 file changed
+3
-3
+3
-3
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user