{"id":21585181,"url":"https://github.com/conectric/node-ekm-meter-demo","last_synced_at":"2026-05-14T13:40:02.410Z","repository":{"id":93434705,"uuid":"148737858","full_name":"Conectric/node-ekm-meter-demo","owner":"Conectric","description":"Demo showing use of Conectric RS-485 serial hub sensor with EKM meters and Node.js","archived":false,"fork":false,"pushed_at":"2018-09-14T15:22:02.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T15:29:38.048Z","etag":null,"topics":["ekmmetering","iot-application","iot-framework","iot-gateway","mesh-networks","node-js","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Conectric.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":"2018-09-14T04:59:42.000Z","updated_at":"2018-09-14T15:22:03.000Z","dependencies_parsed_at":"2023-03-06T09:30:53.561Z","dependency_job_id":null,"html_url":"https://github.com/Conectric/node-ekm-meter-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Conectric%2Fnode-ekm-meter-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Conectric%2Fnode-ekm-meter-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Conectric%2Fnode-ekm-meter-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Conectric%2Fnode-ekm-meter-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Conectric","download_url":"https://codeload.github.com/Conectric/node-ekm-meter-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244189829,"owners_count":20412991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ekmmetering","iot-application","iot-framework","iot-gateway","mesh-networks","node-js","nodejs"],"created_at":"2024-11-24T15:09:19.892Z","updated_at":"2025-10-19T22:04:06.199Z","avatar_url":"https://github.com/Conectric.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Conectric Node.js RS-485 EKM Meter Demo\n\nQuick start for getting up and running with Node.js, the Conectric RS-85 sensor / serial hub, and EKM meters.  \n\n## Version 3 EKM Meter\n\n```\n$ cd omnimeter-v3\n$ npm install\n```\n\n* Edit `server.js`, replacing all instances of `1d2d` with the short MAC address of your RS-485 sensor / serial hub.\n* Also replace `303030303030303236313435` with your meter's serial number, encoded such that 0 = 30, 1 = 31, 2 = 32 etc.\n* (Assuming that the meter is powered on and connected to the Conectric serial hub):\n\n```\nnpm start\n```\n\nYou should see output similar to:\n\n```\n\u003e node server.js\n\nFound USB router device at /dev/tty.usbserial-DB00VL5G.\nGateway opened.\nSwitched gateway to dump payload mode.\nUSB router mac address is 00124b000513da7f.\nUSB router Contiki version: 3.x-d48f2f4\nUSB router Conectric version: 1.1.2\nSwitched gateway to sink mode.\nGateway is ready.\nNeed to request 4 chunks of size 64 from e17b\nDone, complete response:\n{\n\t\"model\": \"4130\",\n\t\"firmware\": 23,\n\t\"meter_address\": \"000010007076\",\n\t\"kwh_tot\": 0,\n\t\"kwh_tariff_1\": 0,\n\t\"kwh_tariff_2\": 0,\n\t\"kwh_tariff_3\": 0,\n\t\"kwh_tariff_4\": 0,\n\t\"rev_kwh_tot\": 0,\n\t\"rev_kwh_tariff_1\": 0,\n\t\"rev_kwh_tariff_2\": 0,\n\t\"rev_kwh_tariff_3\": 0,\n\t\"rev_kwh_tariff_4\": 0,\n\t\"rms_volts_ln_1\": 119.4,\n\t\"rms_volts_ln_2\": 0,\n\t\"rms_volts_ln_3\": 0,\n\t\"amps_ln_1\": 0,\n\t\"amps_ln_2\": 0,\n\t\"amps_ln_3\": 0,\n\t\"rms_watts_ln_1\": 0,\n\t\"rms_watts_ln_2\": 0,\n\t\"rms_watts_ln_3\": 0,\n\t\"rms_watts_tot\": 0,\n\t\"cos_theta_ln_1\": \" 1.00\",\n\t\"cos_theta_ln_2\": \"C0.00\",\n\t\"cos_theta_ln_3\": \"C0.00\",\n\t\"max_demand\": 85,\n\t\"max_demand_period\": 1,\n\t\"meter_time\": \"18091406124051\",\n\t\"ct_ratio\": \"0200\",\n\t\"pulse_cnt_1\": 0,\n\t\"pulse_cnt_2\": 0,\n\t\"pulse_cnt_3\": 0,\n\t\"pulse_ratio_1\": 0,\n\t\"pulse_ratio_2\": 0,\n\t\"pulse_ratio_3\": 0,\n\t\"state_inputs\": 0\n}\n```\n\n## Version 4 EKM Meter\n\n```\n$ cd omnimeter-v4\n$ npm install\n```\n\n* Edit `server.js`, replacing all instances of `dfbc` with the short MAC address of your RS-485 sensor / serial hub.\n* Also replace `303030333030303032323535` with your meter's serial number, encoded such that 0 = 30, 1 = 31, 2 = 32 etc.\n* (Assuming that the meter is powered on and connected to the Conectric serial hub):\n\n```\nnpm start\n```\nYou should see output similar to:\n\n```\n\u003e node server.js\n\nFound USB router device at /dev/tty.usbserial-DB00VL37.\nGateway opened.\nSwitched gateway to dump payload mode.\nUSB router mac address is 00124b000513da40.\nUSB router Contiki version: 3.x-d48f2f4\nUSB router Conectric version: 1.1.2\nSwitched gateway to sink mode.\nGateway is ready.\nNeed to request 4 chunks of size 64 from dfbc\nGot all A data\nNeed to request 4 chunks of size 64 from dfbc\nGot all B data\nDone, complete response:\n{\n\t\"model\": \"4132\",\n\t\"firmware\": 25,\n\t\"meter_address\": \"000300002255\",\n\t\"kwh_tot\": 0,\n\t\"reactive_energy_tot\": 0,\n\t\"rev_kwh_tot\": 0,\n\t\"kwh_tariff_1\": 0,\n\t\"kwh_tariff_2\": 0,\n\t\"kwh_tariff_3\": 0,\n\t\"rev_kwh_ln_1\": 0,\n\t\"rev_kwh_ln_2\": 0,\n\t\"rev_kwh_ln_3\": 0,\n\t\"resettable_kwh_tot\": 0,\n\t\"resettable_rev_kwh_tot\": 0,\n\t\"rms_volts_ln_1\": 118.7,\n\t\"rms_volts_ln_2\": 0,\n\t\"rms_volts_ln_3\": 0,\n\t\"amps_ln_1\": 0,\n\t\"amps_ln_2\": 0,\n\t\"amps_ln_3\": 0,\n\t\"rms_watts_ln_1\": 0,\n\t\"rms_watts_ln_2\": 0,\n\t\"rms_watts_ln_3\": 0,\n\t\"rms_watts_tot\": 0,\n\t\"power_factor_ln_1\": \" 1.00\",\n\t\"power_factor_ln_2\": \"C0.00\",\n\t\"power_factor_ln_3\": \"C0.00\",\n\t\"reactive_pwr_ln_1\": 0,\n\t\"reactive_pwr_ln_2\": 0,\n\t\"reactive_pwr_ln_3\": 0,\n\t\"reactive_pwr_tot\": 0,\n\t\"line_freq\": 60.06,\n\t\"pulse_cnt_1\": 0,\n\t\"pulse_cnt_2\": 0,\n\t\"pulse_cnt_3\": 0,\n\t\"state_inputs\": 0,\n\t\"state_watts_dir\": 1,\n\t\"state_out\": 1,\n\t\"kwh_scale\": 2,\n\t\"meter_time\": \"18091406094813\",\n\t\"rev_kwh_tariff_1\": 0,\n\t\"rev_kwh_tariff_2\": 0,\n\t\"rev_kwh_tariff_3\": 0,\n\t\"rev_kwh_tariff_4\": 0,\n\t\"cos_theta_ln_1\": \" 1.00\",\n\t\"cos_theta_ln_2\": \"C0.00\",\n\t\"cos_theta_ln_3\": \"C0.00\",\n\t\"rms_watts_max_demand\": 0,\n\t\"max_demand_period\": 1,\n\t\"pulse_ratio_1\": 1,\n\t\"pulse_ratio_2\": 1,\n\t\"pulse_ratio_3\": 1,\n\t\"ct_ratio\": 200,\n\t\"auto_reset_max_demand\": 0,\n\t\"pulse_output_ratio\": 800\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconectric%2Fnode-ekm-meter-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconectric%2Fnode-ekm-meter-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconectric%2Fnode-ekm-meter-demo/lists"}