Closed dan-mm closed 6 months ago
Eco-CI Output: | Label | 🖥 avg. CPU utilization [%] | 🔋 Total Energy [Joules] | 🔌 avg. Power [Watts] | Duration [Seconds] |
---|---|---|---|---|---|
Total Run | 5.51 | 24.7645 | 1.7689 | 24 | |
Measurement #1 | 6.015 | 12.3823 | 1.7689 | 9 | |
Sleep #2 | 5.64125 | 12.3823 | 1.7689 | 9 |
📈 Energy graph:
2.00 ┼─────────────
Watts over time
Can you clarify why there is a hardcoded API_BASE variable in the code?
The way I understand the add_var function it will update this variable. So will a user not always left with this API_BASE configured then? I thought.
The variable should be able to be set by the surrounding github actions workflow file, right? So if you can set it there, why is there a hardcoding option that you temporarily patched in the first place?
The API_BASE you're referring to is for the green metrics tool API, not the github API. So it shouldn't be configured by the github workflow (that only edits the github API base, which is no longer hardcoded). Maybe it could use a rename to GMT_API_BASE or something to clarify, now that we query multiple API endpoints.
Cleaner looking output.
Now also checks comments for both the user (github bot) + Eco-CI as a string within the message