{"id":15393894,"url":"https://github.com/mitchellh/lifeguard-random","last_synced_at":"2025-05-04T14:20:28.619Z","repository":{"id":3520777,"uuid":"4579493","full_name":"mitchellh/lifeguard-random","owner":"mitchellh","description":"Data source plugin for Lifeguard that generates random numbers.","archived":false,"fork":false,"pushed_at":"2012-06-07T22:52:16.000Z","size":232,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-26T03:34:36.315Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/mitchellh.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}},"created_at":"2012-06-07T00:17:58.000Z","updated_at":"2019-11-09T02:36:01.000Z","dependencies_parsed_at":"2022-09-06T03:31:12.211Z","dependency_job_id":null,"html_url":"https://github.com/mitchellh/lifeguard-random","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/mitchellh%2Flifeguard-random","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Flifeguard-random/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Flifeguard-random/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitchellh%2Flifeguard-random/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitchellh","download_url":"https://codeload.github.com/mitchellh/lifeguard-random/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252345370,"owners_count":21733099,"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":[],"created_at":"2024-10-01T15:20:42.817Z","updated_at":"2025-05-04T14:20:28.601Z","avatar_url":"https://github.com/mitchellh.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# Lifeguard Random Data Source\n\nThis is an example of a plugin for Lifeguard that implements a data source.\nThe data source in this example simply generates random numbers.\n\n## Installation\n\nTo install the plugin, compile it and generate the release folder:\n\n    $ make deps\n    $ make rel\n\nThere will now be a folder `rel/lifeguard_random`. Copy this folder\ninto your Lifeguard plugin directory and add `lifeguard_random` to the\nlist of enabled plugins for Lifeguard. That's it!\n\n## Usage\n\nOnce the plugin is installed, you can use the random data source with your\nwatches. To do this, enable the plugin and add a new data source to your\n`sys.config` file. Example:\n\n```erlang\n{data_sources, [\n    {\"random\", lifeguard_ds_random, []}\n  ]},\n{plugins, [lifeguard_random]}\n```\n\nThen, you can query it like this from a watch:\n\n```javascript\n// Get one random number (in an array)\nvar data = Lifeguard.get(\"random\");\n\n// Get 10 random numbers\nvar data = Lifeguard.get(\"random\", 10);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitchellh%2Flifeguard-random","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitchellh%2Flifeguard-random","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitchellh%2Flifeguard-random/lists"}