GreenScheduler / cats

CATS: the Climate-Aware Task Scheduler :cat2: :tiger2: :leopard:
https://greenscheduler.github.io/cats/
MIT License
50 stars 8 forks source link

request: output CI of suggested time period/s #92

Closed mkbane closed 4 months ago

mkbane commented 5 months ago

Useful to have CATS say when CI is lowest (over 48h forecast) but it would also be useful to have CATS state what that value is. Then, for example, I can take my known energy to solution and directly calculated the CO2eq (rather than have to set up a config file and use an average power which is very approximate). Ta, M

abhidg commented 5 months ago

@mkbane Passing --format=json makes CATS output the value, e.g. with cats -d 5 --loc OX1 --format=json I get

{
  "carbonIntensityNow": {
    "end": "2024-04-22T20:59:03.888682+01:00",
    "start": "2024-04-22T20:54:03.888682+01:00",
    "value": 299.8854937122222
  },
  "carbonIntensityOptimal": {
    "end": "2024-04-24T11:59:03.888682+01:00",
    "start": "2024-04-24T11:54:03.888682+01:00",
    "value": 116.0
  },
  "countryISO3": "GBR",
  "emmissionEstimate": null,
  "location": "OX1"
}
mkbane commented 5 months ago

Hi, useful to know (but needs documenting?)

Can we amend the schema to include units too? CI of 299.9 or 116.0 needs to be g CO2eq/kWh (for example) just in case anybody thought it might be kg CO2eq/kWh (or even lbs CO2eq/kWh which I’ve seen in some US literature!)

for the final field note that there’s a typo in spelling of “emission”

Yours, m

From: Abhishek Dasgupta @.> Sent: Monday, April 22, 2024 8:56 PM To: GreenScheduler/cats @.> Cc: Michael Bane @.>; Mention @.> Subject: Re: [GreenScheduler/cats] request: output CI of suggested time period/s (Issue #92)

This email originated from outside of Manchester Met. Do not click links or open attachments unless you recognise the sender and believe the content to be safe. Please contact the IT ServiceDesk if you have any concerns, https://www.mmu.ac.uk/about-us/professional-services/itd/about/contact


@mkbanehttps://github.com/mkbane Passing --format=json makes CATS output the value, e.g. with cats -d 5 --loc OX1 --format=json I get

{

"carbonIntensityNow": {

"end": "2024-04-22T20:59:03.888682+01:00",

"start": "2024-04-22T20:54:03.888682+01:00",

"value": 299.8854937122222

},

"carbonIntensityOptimal": {

"end": "2024-04-24T11:59:03.888682+01:00",

"start": "2024-04-24T11:54:03.888682+01:00",

"value": 116.0

},

"countryISO3": "GBR",

"emmissionEstimate": null,

"location": "OX1"

}

— Reply to this email directly, view it on GitHubhttps://github.com/GreenScheduler/cats/issues/92#issuecomment-2070844494, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVRWBWLHWSVBQGOOT656OODY6VTNDAVCNFSM6AAAAABGTK3FZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZQHA2DINBZGQ. You are receiving this because you were mentioned.Message ID: @.**@.>>

"Before acting on this email or opening any attachments you should read the Manchester Metropolitan University email disclaimer available on its website http://www.mmu.ac.uk/emaildisclaimer "