{"id":16346308,"url":"https://github.com/ericalli/onlooker","last_synced_at":"2026-01-25T19:37:11.792Z","repository":{"id":471429,"uuid":"96418","full_name":"ericalli/onlooker","owner":"ericalli","description":"OnLooker is a simple rails plugin that lets a user check the status of his/her website or server.","archived":false,"fork":false,"pushed_at":"2008-12-24T19:10:08.000Z","size":88,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T02:43:20.383Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://plugins.two2twelve.com","language":null,"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/ericalli.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2008-12-24T18:49:22.000Z","updated_at":"2019-10-12T14:16:20.000Z","dependencies_parsed_at":"2022-08-16T10:25:22.572Z","dependency_job_id":null,"html_url":"https://github.com/ericalli/onlooker","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/ericalli%2Fonlooker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericalli%2Fonlooker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericalli%2Fonlooker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericalli%2Fonlooker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericalli","download_url":"https://codeload.github.com/ericalli/onlooker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239550272,"owners_count":19657541,"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-11T00:35:02.390Z","updated_at":"2025-11-08T09:30:27.683Z","avatar_url":"https://github.com/ericalli.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Onlooker v0.1\n=============\n\nOnLooker is a simple rails plugin that lets a user check the status of his or her website or server. OnLooker uses Ping's to check via TCP or HTTP whether the site, sites or servers that you specify are online and accessible. OnLooker also supports custom images to distinguish status.\n\n\nExample\n=======\n\nTo use this plugin, simply call the check function in your controller such as:\n\nFor a Website: @status = OnLooker.check('www.rubyonrails.com', 'web')\n\nFor an IP: @status = OnLooker.check('207.179.66.134', 'ip')\n\nThen in your views:\n\n\u003c%= @status %\u003e\n\nThis will report the text \"Online\" or \"Offline\" depending on the result of the check.\n\nThe available options for OnLooker.check are:\n\n\t- OnLooker.check(host, type, debug)\n\t\t- Host can be a URL (without the http://) or IP\n\t\t- Type can be set to web or ip\n\t\t- Debug can be true or false in which OnLooker will attempt to give an explanation if your site is down\n\t\t\n\t\t\nUsing images to distinguish statuses:\n\nOnLooker includes a basic helper to allow you to set an image for displaying online or offline status.\n\nFor example, If you call the OnLooker.check function from the @status variable in your controller, your views can look something like this:\n\n\u003c%= onlooker_format @status, :online_img =\u003e \"/images/online.gif\", :offline_img =\u003e \"/images/offline.gif\" %\u003e\n\nThat way an image is displayed in-place of the default \"Online\" or \"Offline\" text.\n\n\nCredits\n=======\n\nCopyright (c) 2008 Eric A. released under the MIT license\nhttp://from.two2twelve.com\nhttp://plugins.two2twelve.com","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericalli%2Fonlooker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericalli%2Fonlooker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericalli%2Fonlooker/lists"}