Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AossTower
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MetObs
AossTower
Commits
d5d1ebec
Commit
d5d1ebec
authored
5 years ago
by
William Roberts
Browse files
Options
Downloads
Patches
Plain Diff
Remove commented out influxdb.insert
parent
0df4ae1d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aosstower/level_00/influxdb.py
+2
-2
2 additions, 2 deletions
aosstower/level_00/influxdb.py
with
2 additions
and
2 deletions
aosstower/level_00/influxdb.py
+
2
−
2
View file @
d5d1ebec
...
...
@@ -190,8 +190,8 @@ def main():
influx_gen
=
influxdb
.
grouper
(
influx_gen
,
args
.
bulk
)
updater
=
Updater
()
for
record
in
influx_gen
:
#
lines = influxdb.frame_records(record, **station_tags)
#
influxdb.insert(lines, host=args.host, port=args.port, dbname=args.dbname)
lines
=
influxdb
.
frame_records
(
record
,
**
station_tags
)
influxdb
.
insert
(
lines
,
host
=
args
.
host
,
port
=
args
.
port
,
dbname
=
args
.
dbname
)
# Record is in a list of size 1, but want just the record.
avg
=
updater
.
rolling_average
(
record
[
0
])
# Once every 5 minutes: 0 through 295 seconds inclusive.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment