{"id":24530591,"url":"https://github.com/yuan-yu/gpudashboard","last_synced_at":"2025-04-14T18:08:30.227Z","repository":{"id":57435600,"uuid":"137514800","full_name":"Yuan-Yu/GPUDashboard","owner":"Yuan-Yu","description":"A simple dashboard for NVIDIA GPU","archived":false,"fork":false,"pushed_at":"2022-06-20T03:50:08.000Z","size":1076,"stargazers_count":42,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T17:12:50.146Z","etag":null,"topics":["dashboard","firebase","gpu","nvidia","webbased","webserver-less"],"latest_commit_sha":null,"homepage":"https://yuan-yu.github.io/GPUDashboard/","language":"Python","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/Yuan-Yu.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}},"created_at":"2018-06-15T17:25:27.000Z","updated_at":"2024-09-10T09:47:39.000Z","dependencies_parsed_at":"2022-08-28T22:11:55.828Z","dependency_job_id":null,"html_url":"https://github.com/Yuan-Yu/GPUDashboard","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/Yuan-Yu%2FGPUDashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yuan-Yu%2FGPUDashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yuan-Yu%2FGPUDashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yuan-Yu%2FGPUDashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yuan-Yu","download_url":"https://codeload.github.com/Yuan-Yu/GPUDashboard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235082260,"owners_count":18932923,"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":["dashboard","firebase","gpu","nvidia","webbased","webserver-less"],"created_at":"2025-01-22T08:16:48.967Z","updated_at":"2025-01-22T08:16:51.373Z","avatar_url":"https://github.com/Yuan-Yu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GPUDashboard\nA simple dashboard for NVIDIA GPU\n![flowchart](https://github.com/Yuan-Yu/GPUDashboard/blob/master/docs/flowchart.png?raw=true)\n## Demo\n[Example](https://yuan-yu.github.io/GPUDashboard/)  \n## Requirement  \n- Python 2.7 or 3.6\n- NVIDIA-sim\n- A Firebase realtime database\n- Linux-like OS  \n\n## Setup  \n1. Create a [Firebase **Realtime** database](https://console.firebase.google.com/)  \n\u003cimg src=\"https://github.com/Yuan-Yu/GPUDashboard/blob/master/docs/crateDB.png?raw=true\" height=\"150\" \u003e   \n\n2. Set the rules to \n\u003cimg src=\"https://github.com/Yuan-Yu/GPUDashboard/blob/master/docs/chageRule.png?raw=true\" height=\"100\" \u003e    \n\n```json \n{\n  \"rules\": {\n    \".read\": true,\n    \".write\": true\n  }\n}\n```  \n3. Go to Project overview click **Add Firebase to your web app** and copy following part.  \n\u003cimg src=\"https://github.com/Yuan-Yu/GPUDashboard/blob/master/docs/copyConfig.png?raw=true\" height=\"150\" \u003e   \n\n```javascript\n  var config = {\n    apiKey: \"XXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n    authDomain: \"XXXXX.firebaseapp.com\",\n    databaseURL: \"https://XXXXXX.firebaseio.com\",\n    projectId: \"XXXXXXX\",\n    storageBucket: \"XXXXXXX.appspot.com\",\n    messagingSenderId: \"XXXXXXXXXXX\"\n  };\n```  \n4. **On the servers** that have NVIDIA GPU(s) installed.  \n```bash\npip install GPUDashboard\nGPUDashboard -n your_server_name -i 20 -u your_databaseURL \u003e GPUDashboard.log \n\n# your_server_name is the name you want to give your server e.g. MyFirstServer\n# -i is the interval of GPU information updating\n# your_databaseURL is the databaseURL obtained froom Firebase as shown above\n```  \nNow, the server GPU information is post to the firebase. ***If you have many servers, all of them can make use of the same database you created in Firebase. You only need to specify different names for \"your_server_name\" when you start the GPUDashboard in the command line on the different servers.**  \n  \n5. Download [ViewStatus.html](https://raw.githubusercontent.com/Yuan-Yu/GPUDashboard/master/ViewStatus.html) and open with text editor then replace the \"config\".  \n```html\n\u003chtml\u003e\n    \u003cheader\u003e\n      \u003cscript\u003e\n        var config = {\n            apiKey: \"XXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\n            authDomain: \"XXXXX.firebaseapp.com\",\n            databaseURL: \"https://XXXXXX.firebaseio.com\",\n            projectId: \"XXXXXXX\",\n            storageBucket: \"XXXXXXX.appspot.com\",\n            messagingSenderId: \"XXXXXXXXXXX\"\n          };\n      \u003c/script\u003e\n      \u003clink rel=\"stylesheet\" href=\"https://fonts.googleapis.com/icon?family=Material+Icons\"/\u003e\n```  \n6. Open the \"**modified** ViewStatus.html\" with browser.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuan-yu%2Fgpudashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuan-yu%2Fgpudashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuan-yu%2Fgpudashboard/lists"}