[READ-ONLY] Mirror of https://github.com/shuuji3/kurashi-tepco-api. 💡 API to fetch the electricity consumption data from Kurashi TEPCO website (under development)
0

Configure Feed

Select the types of activity you want to include in your feed.

Shell 53.7%
Other 46.3%
2 1 0

Clone this repository

https://git.vm.fail/shuuji3.xyz/kurashi-tepco-api https://git.vm.fail/did:plc:w6gwora5cx6cxwfndlxhom3x
ssh://git@knot1.tangled.sh:2222/shuuji3.xyz/kurashi-tepco-api ssh://git@knot1.tangled.sh:2222/did:plc:w6gwora5cx6cxwfndlxhom3x

For self-hosted knots, clone URLs may differ based on your setup.


README.md

kurashi-tepco-api#

npm Node.js CI status

Note#

We can use sh-kawakami/tepco-watt-stats: くらしTEPCOのページから電力使用量情報を取得する.

TEPCO API endpoint#

Better API design?#

TODO: Refine

  • /api/2021.json
  • /api/2021.csv
  • /api/2021-09.json
  • /api/2021-09-29.json
  • /api/2021/09/29/json
  • /api/2021/09/29/csv

TEPCO API raw response#

Monthly#

{
  "status_code": "200",
  "data_day": null,
  "menu_type": "0",
  "smart_meter": "true",
  "contract_type": "0",
  "data_year": "2021",
  "data": [
    ...
    {
      "holiday_kwh": "-0",
      "metered_kwh": "-0",
      "temperature": null,
      "icon_id": "0017",
      "time": null,
      "rate": null,
      "daysummer_kwh": "-0",
      "weather": null,
      "peak_kwh": "-0",
      "summer_peak_kwh": "-0",
      "kwh": "110",
      "offpeak_kwh": "-0",
      "night_kwh": "-0",
      "tou_flag": "2",
      "fixedamount_kwh": "-0",
      "plan": "planL01-B00101",
      "yen": "4120",
      "daynighttime_kwh": "-0",
      "month": "4",
      "daytime_kwh": "-0",
      "weekday_kwh": "-0",
      "day": null,
      "nottou_kwh": "-0",
      "flat_kwh": null,
      "plan_name": "アクアエナジー100"
    },
    ...

Daily#

{
  "status_code": "200",
  "data_day": null,
  "menu_type": "0",
  "smart_meter": "true",
  "contract_type": "0",
  "data_year": "2021",
  "data": [
    {
      "holiday_kwh": "-0",
      "metered_kwh": "-0",
      "temperature": "20.9",
      "icon_id": "0017",
      "time": null,
      "rate": null,
      "daysummer_kwh": "-0",
      "weather": "雨時々止む",
      "peak_kwh": "-0",
      "summer_peak_kwh": "-0",
      "kwh": "5.2",
      "offpeak_kwh": "-0",
      "night_kwh": "-0",
      "tou_flag": null,
      "fixedamount_kwh": "-0",
      "plan": "planL01-B00101",
      "yen": "-0",
      "daynighttime_kwh": "-0",
      "month": "9",
      "daytime_kwh": "-0",
      "weekday_kwh": "-0",
      "day": "1",
      "nottou_kwh": "-0",
      "flat_kwh": null,
      "plan_name": "アクアエナジー100"
    },

Hourly (no data)#

{
  "status_code": "2",
  "data_day": "29",
  "menu_type": "0",
  "smart_meter": "true",
  "contract_type": "0",
  "data_year": "2021",
  "data": [],
  "data_month": "9",
  "display30min": "true",
  "plan_change": []
}

Hourly (data existing)#

{
  "status_code": "200",
  "data_day": "28",
  "menu_type": "0",
  "smart_meter": "true",
  "contract_type": "0",
  "data_year": "2021",
  "data": [
    {
      "holiday_kwh": "-0",
      "metered_kwh": "-0",
      "temperature": null,
      "icon_id": "0017",
      "time": "00:30",
      "rate": null,
      "daysummer_kwh": "-0",
      "weather": null,
      "peak_kwh": "-0",
      "summer_peak_kwh": "-0",
      "kwh": "0.1",
      "offpeak_kwh": "-0",
      "night_kwh": "-0",
      "tou_flag": null,
      "fixedamount_kwh": "-0",
      "plan": "planL01-B00101",
      "yen": "-0",
      "daynighttime_kwh": "-0",
      "month": "9",
      "daytime_kwh": "-0",
      "weekday_kwh": "-0",
      "day": "28",
      "nottou_kwh": "-0",
      "flat_kwh": null,
      "plan_name": "アクアエナジー100"
    },