Open electricitymapsbot opened 1 year ago
Closing this as the electricity data is flowing again.
Reopening this as the electricity data is no longer flowing.
The endpoint (used by the parser, but also the website) now redirects to a login page instead of returning the JSON.
This is probably a mistake, as the web page still prominently features the image in which the generation was displayed.
Their e-mail if someone wants to contact them: ndc@ndc.energy.mn
Closing this as the electricity data is flowing again.
Reopening this as the electricity data is no longer flowing.
Same issue as before
The endpoint (used by the parser, but also the website) now redirects to a login page instead of returning the JSON.
This is probably a mistake, as the web page still prominently features the image in which the generation was displayed.
Their e-mail if someone wants to contact them: ndc@ndc.energy.mn
Bump, still an issue. Would greatly appreciate any help on this one 🙏
https://github.com/electricitymaps/electricitymaps-contrib/issues/5906#issuecomment-1985432604
I checked again, this time it isn't due to the endpoint being down as I can see the JSON response at https://disnews.energy.mn/convertt.php. Not sure what's causing it this time, then.
Ah thanks! I had a look and it appears there's a key error:
File "/contrib/parsers/MN.py", line 96, in fetch_production query_data = query(session, logger, zone_key) File "/contrib/parsers/MN.py", line 82, in query query_result = parse_json(response_json, logger, zone_key) File "/contrib/parsers/MN.py", line 62, in parse_json query_data[query_key] = float(web_json[src_key]) KeyError: 'sums'
Perhaps they've changed the data structure
Ah thanks! I had a look and it appears there's a key error:
File "/contrib/parsers/MN.py", line 96, in fetch_production
query_data = query(session, logger, zone_key)
File "/contrib/parsers/MN.py", line 82, in query
query_result = parse_json(response_json, logger, zone_key)
File "/contrib/parsers/MN.py", line 62, in parse_json
query_data[query_key] = float(web_json[src_key])
KeyError: 'sums'
Perhaps they've changed the data structure
I can take a look at it later today then if you wish?
Hi!
It seems they have also updated the webpage recently:
Together with the new response from the endpoint:
{"date":"2024-06-11 17:00:00","syssum":"940.5","dts":630.4,"sumnar":29.2,"sumsalhit":45.3,"energyimport":"230.1","t":"23.5","Songino":"0.0"}
In theory the only changes needed would be to update the keys that have changed, and add the new ones to the ignored list. These new ones would be "dts", which seems to be thermal power plants (they use the same icon to refer to these in the pdf below) and "Songino", which I'm quite unsure but may refer to a place in Mongolia.
"Songino", which I'm quite unsure but may refer to a place in Mongolia.
https://www.adb.org/sites/default/files/project-documents/48030/48030-001-tacr-en_2.pdf page 42 (45 in the PDF) says that it's the name of a substation (and probably a place nearby as well, I'd assume).
Description
This is an automatic error report generated for Mongolia (MN).
Issues:
consumption
parserproduction
parserSuggestions
poetry run test_parser MN production
You can see an overview of all parser issues here.