{"id":15417249,"url":"https://github.com/alexandrehiroyuki/thingsboarddeviceemulator","last_synced_at":"2026-05-02T09:32:24.806Z","repository":{"id":99183975,"uuid":"492270690","full_name":"AlexandreHiroyuki/ThingsBoardDeviceEmulator","owner":"AlexandreHiroyuki","description":"Server to emulate a device telemetry connected to ThingsBoard. Easy to create and modify new generator functions and classes.","archived":false,"fork":false,"pushed_at":"2023-05-05T00:06:04.000Z","size":23,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T04:44:44.266Z","etag":null,"topics":["nodejs","thingsboard","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/AlexandreHiroyuki.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":"2022-05-14T16:36:12.000Z","updated_at":"2023-06-19T18:50:23.000Z","dependencies_parsed_at":"2024-10-21T16:42:19.159Z","dependency_job_id":null,"html_url":"https://github.com/AlexandreHiroyuki/ThingsBoardDeviceEmulator","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"0d8ded5653215dd8346c12f1bf3d9e10d94dc57f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexandreHiroyuki%2FThingsBoardDeviceEmulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexandreHiroyuki%2FThingsBoardDeviceEmulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexandreHiroyuki%2FThingsBoardDeviceEmulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexandreHiroyuki%2FThingsBoardDeviceEmulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexandreHiroyuki","download_url":"https://codeload.github.com/AlexandreHiroyuki/ThingsBoardDeviceEmulator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245966926,"owners_count":20701759,"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":["nodejs","thingsboard","typescript"],"created_at":"2024-10-01T17:14:59.877Z","updated_at":"2026-05-02T09:32:24.753Z","avatar_url":"https://github.com/AlexandreHiroyuki.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ThingsBoard Device Emulator\n\nServer to emulate a device telemetry connected to ThingsBoard. Easy to create and modify new generator functions and classes.\n\n## Geting Started\n\nDownload the project dependencies.\n\n```\nnpm install\n\n--- or ---\n\nyarn install\n```\n\nCreate a `.env.dev` file in the root directory of the project.\n\n```\nACCESS_TOKEN_FIRST_DEVICE=\"\u003cyour access token\u003e\"\nTB_HOST_ADDRESS=\"\u003cyour host address\u003e\"\n```\n\nRun the emulator.\n\n```\nnpm run dev\n\n--- or ---\n\nyarn dev\n```\n\n## Generator Functions/Classes\n\n### Random Generator\n\nOutputs a random number between the minimum and maximum values.\n\n```\nrandomGenerator(min: number, max: number)\n```\n\n### Random Activation Generator\n\nOutputs randomly if the device is activated or not.\n\nIt's possible to set a minimum and a maximum inactive time.\n\n```\nrandomActivationGenerator(min: number = 0, max: number = 3)\ngenerate()\n```\n\n### Random Summatory Generator\n\nOutputs a summatory of random numbers between the positive or negative variation.\n\nIt's possible to set a minimum and maximum value for the summatory to prevent the summatory to be too big or too small.\n\n```\nrandomSummatoryGenerator(initValue: number, min: number = 0, max: number = 100)\ngenerate(variation: number)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandrehiroyuki%2Fthingsboarddeviceemulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexandrehiroyuki%2Fthingsboarddeviceemulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandrehiroyuki%2Fthingsboarddeviceemulator/lists"}