{"id":19113196,"url":"https://github.com/clement-berard/node-red-contrib-cyclic-counter","last_synced_at":"2026-02-26T23:04:01.880Z","repository":{"id":261613679,"uuid":"884821633","full_name":"clement-berard/node-red-contrib-cyclic-counter","owner":"clement-berard","description":"Cyclic Counter Node for Node-RED","archived":false,"fork":false,"pushed_at":"2024-11-07T13:13:41.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T16:01:21.671Z","etag":null,"topics":["node-red","node-red-contrib"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clement-berard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-11-07T13:00:38.000Z","updated_at":"2024-11-07T13:13:44.000Z","dependencies_parsed_at":"2024-11-10T16:15:18.262Z","dependency_job_id":null,"html_url":"https://github.com/clement-berard/node-red-contrib-cyclic-counter","commit_stats":null,"previous_names":["clement-berard/node-red-contrib-cyclic-counter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/clement-berard/node-red-contrib-cyclic-counter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clement-berard%2Fnode-red-contrib-cyclic-counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clement-berard%2Fnode-red-contrib-cyclic-counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clement-berard%2Fnode-red-contrib-cyclic-counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clement-berard%2Fnode-red-contrib-cyclic-counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clement-berard","download_url":"https://codeload.github.com/clement-berard/node-red-contrib-cyclic-counter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clement-berard%2Fnode-red-contrib-cyclic-counter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29876365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T22:37:10.609Z","status":"ssl_error","status_checked_at":"2026-02-26T22:37:09.019Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["node-red","node-red-contrib"],"created_at":"2024-11-09T04:35:34.359Z","updated_at":"2026-02-26T23:04:01.855Z","avatar_url":"https://github.com/clement-berard.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cyclic Counter Node for Node-RED\n\nA customizable cyclic counter node for Node-RED that iterates through a defined sequence of numbers and can reset after a set timeout. It allows flexible control over the counter's behavior, making it useful in a variety of automation scenarios.\n\n## Features\n\n- Cycles through numbers from `1` to a maximum value.\n- Reset the counter after a configurable timeout (Optional)\n- Configurable output property for the counter value in the message.\n\n## Installation\n\nTo install this node, you can clone it into your Node-RED node directory or install it directly from npm:\n\n```bash\nnpm install node-red-contrib-cyclic-counter\n```\n\nThen restart Node-RED, and the cyclic counter will be available in the function category.\n\n## Usage\n\n- Maximum Count (maxCount): Sets the upper limit of the counter. The counter resets to 1 after reaching this value.\n- Timeout Duration (timeoutDuration): The delay before resetting the counter back to 1. If set to 0, the counter will never automatically reset.\n- Timeout Unit (timeoutUnit): Unit of time for the timeout duration (ms, s, min, hr, day).\n- Output Property (outputProperty): Property in the message where the counter value will be stored (default is payload).\n- To reset the counter manually, send a message with msg.payload set to \"reset\".\n\n## Example Flow\n\nHere’s an example flow to get started:\n\n```json\n[\n    {\n        \"id\": \"example\",\n        \"type\": \"cyclic_counter\",\n        \"z\": \"your-flow-id\",\n        \"name\": \"My Cyclic Counter\",\n        \"maxCount\": 5,\n        \"timeoutDuration\": 30,\n        \"timeoutUnit\": \"s\",\n        \"outputProperty\": \"payload\",\n        \"wires\": [[\"debug_node_id\"]]\n    }\n]\n```\n\nThis configuration will increment the counter from 1 to 5, reset it after 30 seconds of inactivity, and extend the timeout on each new input.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclement-berard%2Fnode-red-contrib-cyclic-counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclement-berard%2Fnode-red-contrib-cyclic-counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclement-berard%2Fnode-red-contrib-cyclic-counter/lists"}