Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
energy-monitor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
suazo2
energy-monitor
Merge requests
!11
Db setup
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Db setup
db-setup
into
main
Overview
0
Commits
5
Pipelines
0
Changes
2
Merged
suazo2
requested to merge
db-setup
into
main
1 year ago
Overview
0
Commits
5
Pipelines
0
Changes
2
Expand
Created by: afesuazo
0
0
Merge request reports
Viewing commit
5e99ded4
Prev
Next
Show latest version
2 files
+
38
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
5e99ded4
Read live data from redis
· 5e99ded4
strider
authored
1 year ago
monitoring/main.py
+
1
−
1
Options
@@ -116,7 +116,7 @@ def driver(energy_monitor):
'
pf
'
:
results
[
chan_num
][
'
pf
'
],
'
voltage
'
:
results
[
chan_num
][
'
voltage
'
],
}
redis_manager
.
set_channel_data
(
f
"
channel_
{
chan_num
}
"
,
channel_data
)
redis_manager
.
set_channel_data
(
chan_num
,
channel_data
)
# Store data in batches in DB
if
i
<
10
:
Loading