You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
## New features
7
7
- Refactor and improve history and detailed data collection including consistent timezone usage - @cooldil
8
8
- Add --dryrun CLI arg for skipping writes to InfluxDB - @garthweb
9
-
-Include station_name field in all new InfluxDB datapoints, to distinguish similarly named channel devices within a single account - @garthweb
9
+
-New configuration option to include station_name field in all new InfluxDB datapoints, to distinguish similarly named channel devices within a single account - @garthweb
Copy file name to clipboardexpand all lines: README.md
+6
Original file line number
Diff line number
Diff line change
@@ -157,6 +157,12 @@ Be aware that the included dashboard assumes your device name contains the word
157
157
]
158
158
```
159
159
160
+
### Station Names
161
+
162
+
If you intend to run multiple Vue systems under the same account, where the channel names duplicate or look similar across those Vue systems then you may want to consider enabling the `addStationField` config parameter. This will include an additional field named 'station_name' in the InfluxDB event record, to help distinguish channel names across those Vue systems or 'stations'.
163
+
164
+
Note that enabling this at a later time will cause issues due to queries matching multiple records. Therefore if you are installing Vuegraf for the first time and think this could be useful then enable it at the start.
165
+
160
166
# Running
161
167
Vuegraf can be run either as a container (recommended), or as a host process.
result=influx.query('select last(usage), time from energy_usage where (station_name = \''+station_name+'\' AND device_name = \''+chanName+'\' AND '+tagName+' = \''+pointType+'\')')
169
+
stationFilter=""
170
+
ifaddStationField:
171
+
stationFilter='station_name = \''+station_name+'\' AND '
172
+
result=influx.query('select last(usage), time from energy_usage where ('+stationFilter+'device_name = \''+chanName+'\' AND '+tagName+' = \''+pointType+'\')')
0 commit comments