added config parser for reactor and server settings, need to add store method
parent
a887028e7a
commit
247ba5fdbc
@ -1,21 +0,0 @@
|
||||
server:
|
||||
id: 1000213123
|
||||
name: "Rack Server"
|
||||
db-url: "http://192.168.100.2:3000"
|
||||
db-token: ""
|
||||
l-port: 2022
|
||||
r-port: 2023
|
||||
t-port: 2024
|
||||
reactor:
|
||||
id: 102233
|
||||
name: "Beaglebone Black"
|
||||
i2c-bus: 2
|
||||
db-token: ""
|
||||
db-bucket: ""
|
||||
id: 220123123
|
||||
name: "Raspberry Pi"
|
||||
tui:
|
||||
id: 10000
|
||||
name: "kdeppe"
|
||||
db-token: ""
|
||||
db-bucket: ""
|
@ -0,0 +1,17 @@
|
||||
server:
|
||||
name: "Rack Server"
|
||||
db-url: "http://192.168.100.2:8086"
|
||||
db-org: "ForeLight"
|
||||
db-token: ""
|
||||
ports:
|
||||
lis: 2022
|
||||
reactor: 2023
|
||||
tui: 2024
|
||||
db: 8086
|
||||
reactors:
|
||||
10002123:
|
||||
name: "Beaglebone Black"
|
||||
db-token: ""
|
||||
db-bucket: ""
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
package influxdb
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/influxdata/influxdb-client-go/v2"
|
||||
_ "fmt"
|
||||
_ "github.com/influxdata/influxdb-client-go/v2"
|
||||
)
|
||||
|
Loading…
Reference in New Issue