thegreenwebfoundation / grid-intensity-go

A tool written in go to help you factor carbon intensity into decisions about where and when to run computing jobs.
Apache License 2.0
62 stars 7 forks source link

Add taiwanese provider #43

Open mrchrisadams opened 2 years ago

fershad commented 2 years ago

As a reference, here is Electricity Map's implementation: https://github.com/electricitymap/electricitymap-contrib/blob/master/parsers/TW.py

http://www.taipower.com.tw/d006/loadGraph/loadGraph/data/genary.txt http://www.taipower.com.tw/d006/loadGraph/loadGraph/data/genary.json

It is used on this page and updates every 10 minutes.

rossf7 commented 2 years ago

Similar to #42 I think we should implement the API changes in #44 first.

This is a bit more involved as we need to scrape the page but we can use goquery for that or even a larger framework like Colly.