electricitymaps / electricitymaps-contrib

A real-time visualisation of the CO2 emissions of electricity consumption
https://app.electricitymaps.com
GNU Affero General Public License v3.0
3.58k stars 948 forks source link

Malaysia 🇲🇾 #809

Closed jarek closed 6 years ago

jarek commented 7 years ago

https://www.gso.org.my/LandingPage.aspx has data for Peninsular Malaysia (~80% of population) including total generation every 10 minutes, but fuel mix appears to only be on a per-day basis right now. There is already some fuel mix data for today (it is 18:00 in Malaysia), perhaps we can ask if they can publish at least hourly fuel mix?

As I understand it, https://www.gso.org.my/SystemData/TieLine.aspx are interchanges - EGAT is the Thai operator so probably to Thailand (http://www2.egat.co.th/hvdc/INTRODUCTION.HTML), PLTG seems to be with Indonesia, and HVDC with Singapore (see https://github.com/tmrowco/electricitymap/blob/master/parsers/SG.py#L53). I don't know if positive means import or export.

jarek commented 7 years ago

Actually it looks like https://www.gso.org.my/SystemData/FuelMix.aspx might be providing current values when no date range is specified. Currently it gives a sum of 15012 MW which just happens to be exactly equal to the latest current generation reported in https://www.gso.org.my/SystemData/CurrentGen.aspx ? Should keep an eye on this for a few days.

systemcatch commented 7 years ago

Watching the Fuel mix link the sum total has matched the amount given in current generation for the past hour (6 datapoints). How'd you find their website out of interest?

jarek commented 7 years ago

Yeah, it also holds for me now. We can re-check later but it seems feasible.

So I guess a parser should read the FuelMix.aspx and CurrentGen.aspx pages. Sum up the values in fuel mix and verify that the sum is the same as the latest value in current gen. If yes, report the fuel mix, using the timestamp of the latest value in current gen table.

For map, we will have to include all of Malaysia's subdivisions except for MY.SK and MY.SA, which are the states not in Peninsular Malaysia.

Sounds like a good first issue for someone, too! Feel free to reach out if you need some more help.

--

I was actually looking for Vietnam real-time data, which I didn't find, but http://en.evn.com.vn/ has a link to https://www.tnb.com.my/. TNB is the organisation that usually comes up when searching for "Malaysia electricity", and browsing around there, https://www.tnb.com.my/suppliers-investors-media-relations/daily-system-generation-summary has a link to http://www.st.gov.my/index.php/en/component/content/article/12-industry/364-commitment-schedule-ucs-and which doesn't have real-time data, but under "Industry" section of ST website I saw the link to GSO. Following links between different operators has been most productive for me...

jarek commented 6 years ago

Peninsular Malaysia now added by systemcatch :)

Remaining areas are the states of Sarawak and Sabah. They are presently not interconnected due to mountainous terrain. There is also a small island named Labuan, it seems to be connected to Sabah.

Their utilities are Sarawak Energy and Sabah Electricity (SESB) respectively. I have not yet seen real-time generation data for those, though I only looked briefly.

systemcatch commented 6 years ago

Places to start looking;

alixunderplatz commented 6 years ago

@jarek @systemcatch if you like to add the imports/exports of Malaysia, I had a look at the data from https://www.gso.org.my/SystemData/TieLine.aspx

Positive means export, negative means import. I calculated the balance of generation and demand, and what was left was very close to the balance of exchanges.

These are the meanings behind the interconnections:

image

EGAT and HVDC must be the connections with Thailand.

PLTG is leading to Singapore via two AC cables, capacity seems to be 2x 250 MVA : See: image and: image from "Peninsular Malaysia Energy Supply Outlook 2017"

For similar info, see https://ms.wikipedia.org/wiki/Grid_Nasional#Sambungan_ke_Negara_Thai

jarek commented 6 years ago

Thanks for checking on that! That's a great compilation, will make implementation easy.

jarek commented 6 years ago

Hello,

Thanks everyone for your help on Malaysian data! As far as I understand, we've implemented all useful data available. Insular Malaysia is missing, but we haven't seen suitable data sources. As there is nothing more to do, I'll close this issue for now, but please do reopen it if more data is found.