{"id":19399212,"url":"https://github.com/craigpeacock/aemo_parser","last_synced_at":"2026-05-18T00:08:40.936Z","repository":{"id":121719610,"uuid":"283476312","full_name":"craigpeacock/AEMO_Parser","owner":"craigpeacock","description":"AEMO (Australian Energy Market Operator) Parser for Electricity Pool Price Data","archived":false,"fork":false,"pushed_at":"2022-02-22T01:36:58.000Z","size":61,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-21T05:33:33.112Z","etag":null,"topics":["aemo","mqtt"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/craigpeacock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-29T11:06:34.000Z","updated_at":"2024-06-30T12:13:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"30ac0ea9-ef4c-4e75-9f8f-210ac2f30c05","html_url":"https://github.com/craigpeacock/AEMO_Parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/craigpeacock/AEMO_Parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigpeacock%2FAEMO_Parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigpeacock%2FAEMO_Parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigpeacock%2FAEMO_Parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigpeacock%2FAEMO_Parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/craigpeacock","download_url":"https://codeload.github.com/craigpeacock/AEMO_Parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craigpeacock%2FAEMO_Parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33160168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aemo","mqtt"],"created_at":"2024-11-10T11:08:32.762Z","updated_at":"2026-05-18T00:08:40.920Z","avatar_url":"https://github.com/craigpeacock.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AEMO \u003c-\u003e MQTT Parser/Connector\nThe Australian Energy Market Operator (AEMO) publishes 5 minute settlement data for the National Electricity Market (NEM) in a JSON file located at\nhttps://visualisations.aemo.com.au/aemo/apps/api/report/ELEC_NEM_SUMMARY\n\nThis JSON file includes price and generation/demand data useful for making/scripting demand management decisions. \n\n## Usage\n```\n./aemo -?\nAEMO \u003c-\u003e MQTT Connector\nUsage: aemo region [options]\n\nRegions: NSW1, QLD1, SA1, TAS1, VIC1\n\nOptions:\n\t-l \u003cfilename\u003e    Log to file\n\t-m \u003cbroker URI\u003e  Log to MQTT Broker\n\t-t \u003ctopic\u003e       MQTT topic\n\t-u \u003cusername\u003e    Username for MQTT Broker\n\t-p \u003cpassword\u003e    Password for MQTT Broker\n```\n\n## Log File Format\n\nThe log will have the following format:\n\n[local time],[number of tries],[settlement time],[price],[total demand],[net interchange],[scheduled generation],[semi scheduled generation]\n\ne.g. 2022-02-21 17:20:22,1,2022-02-22 11:25:00,-38.47,604.96,59.80,80.00,580.52\n\nLocal Time: 2022-02-21 17:20:22\u003cBR\u003e\nNumber of Tries: 1\u003cBR\u003e\nSettlement Time: 2022-02-22 11:25:00\u003cBR\u003e\nPrice: -38.47 (Dollars)\u003cBR\u003e\nTotal Demand: 604.96 (MW)\u003cBR\u003e\nNet Interchange: 59.80 (MW) - Power being imported/exported from region via interconnector(s)\u003cBR\u003e\nScheduled Generation: 80.00 (MW) - Typically baseload fossil fuel\u003cBR\u003e\nSemi Scheduled Generation: 580.52 (MW) - Typically variable renewable energy\u003cBR\u003e\n\n## Dependencies\nThis code uses the following libraries\n* cURL (https://curl.haxx.se/)\n  * Requires OpenSSL for https support (https://www.openssl.org/)\n* cJSON (https://github.com/DaveGamble/cJSON)\n* Eclipse paho MQTT library (https://www.eclipse.org/paho/)\n  * Requires OpenSSL\n\nInstall using package manager:\n```\nsudo apt-get install libpaho-mqtt-dev libcurlpp-dev libcjson-dev\n```\nOr build from code:\n\n### Install OpenSSL\n```sh\n$ wget https://www.openssl.org/source/openssl-1.1.1m.tar.gz\n$ tar -xzf openssl-1.1.1m.tar.gz\n$ cd openssl-1.1.1m/\n$ ./config\n$ make\n$ sudo make install\n```\n\n### Install cURL\n```sh\n$ wget https://curl.se/download/curl-7.81.0.tar.gz\n$ tar -xzf curl-7.81.0.tar.gz\n$ cd curl-7.81.0\n$ ./configure --with-openssl\n$ make\n$ sudo make install\n```\n### Install cJSON\n```sh\n$ wget https://github.com/DaveGamble/cJSON/archive/refs/tags/v1.7.15.tar.gz\n$ tar -xzf v1.7.15.tar.gz\n$ cd cJSON-1.7.15\n$ make\n$ sudo make install\n```\n\n### Install paho libraries\n```\n$ wget https://github.com/eclipse/paho.mqtt.c/archive/refs/tags/v1.3.9.tar.gz\n$ tar -xzf v1.3.9.tar.gz\n$ cd paho.mqtt.c-1.3.9\n$ make\n$ sudo make install\n```\n\n## Potential errors\n### Error loading shared libraries\nIf you get the following error message \n```\nerror while loading shared libraries: libcjson.so.1: cannot open shared object file: No such file or directory\n```\nexecute\n```\n$ sudo ldconfig -v\n```\n### Unsupported protocol\nIf you get this message\n```\ncurl_easy_perform() failed: Unsupported protocol\n```\nIt may be because curl hasn't been compiled with SSL. Run\n```\n$ curl -V\n```\nand check if https is listed as a protocol. If not, you may not have OpenSSL installed correctly.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraigpeacock%2Faemo_parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcraigpeacock%2Faemo_parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraigpeacock%2Faemo_parser/lists"}