{"id":22297496,"url":"https://github.com/zhum/rubysaver","last_synced_at":"2025-07-29T01:33:00.271Z","repository":{"id":137922714,"uuid":"57225108","full_name":"zhum/rubysaver","owner":"zhum","description":"Xscreensaver module, displaying weather, forecast, clock and now playing song title and author.","archived":false,"fork":false,"pushed_at":"2020-07-30T10:54:12.000Z","size":673,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T05:51:13.437Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/zhum.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-27T15:37:27.000Z","updated_at":"2020-07-30T10:54:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"e652eec4-ca01-40e6-9e8f-72d339f89d8e","html_url":"https://github.com/zhum/rubysaver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zhum/rubysaver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhum%2Frubysaver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhum%2Frubysaver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhum%2Frubysaver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhum%2Frubysaver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhum","download_url":"https://codeload.github.com/zhum/rubysaver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhum%2Frubysaver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267616582,"owners_count":24116155,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-12-03T17:49:57.785Z","updated_at":"2025-07-29T01:33:00.262Z","avatar_url":"https://github.com/zhum.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"The Rubysaver\n=============\n\nFeatures\n--------\n\nWorks as Xscreensaver module. Shows current weather, forecast and tomorrow forecast. Shows clock. If your mpris.MediaPlayer2 compatible player (most of popular players) is playing, shows current track title and performer.\n\nAfter sunset can display all darker (default) to less disturb you. If you don't want it, set weather_image_alpha and weather_image_noalpha to same value (e.g. 255.0).\n\nScreenshots\n-----------\n\n![rus](rubysaver-ru.png)\n![eng](rubysaver-eng.png)\n\nPre-requisites\n--------------\n\n- Ruby 1.9.1+\n- ruby gems: gtk2, dbus\n- xscreensaver or compatible\n\nYou can install them via packages. E.g. for debian/ubuntu: `apt-get install ruby ruby-gtk2 ruby-dbus`\n\nOr you can install rbenv (`curl https://raw.githubusercontent.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash`), then\ninstall ruby (e.g. 2.2.0: `rbenv install 2.2.0; `rbenv global 2.2.0`), and gems: `gem install gtk2; gem install dbus; gem install rcairo`.\n\nInstalling\n----------\n\nJust `mkdir /opt/rubysaver` (you can choose another directory), then copy rs.rb and iconsbest.com-icons there:\n`cp -r rs.rb iconsbest.com-icons/ /opt/rubysaver`. Make rs.rb executable: `chmod a+x /opt/rubysaver/rs.rb`.\nCreate ~/.config/rubysaver.conf, and fil your localtion, e.g.:\n\n```\nplace: Tokyo,JP\n```\n\nEdit ~/.xscreensaver, find line 'programs:' and put just after it: `/opt/rubysaver/rs.rb \\n\\`. Modify lines:\n\n```\nmode:           one\nselected:       0\n```\n\nThat's all! Just lock your screen or start xscreensaver. If you're using xscreensaver compatible saver,\nspecify /opt/rubysaver/rs.rb as active module.\n\n\nCustomizing\n-----------\n\nYou can change many options in ~/.config/rubysaver.conf: (yaml format)\n\n```\n# path to icons\nicon_path: /opt/rubysaver/iconsbest.com-icons\n# name for weather font\nfont_face: Sans Serif\n# weight for weather font\nfont_weight: bold\n# font size for forecasts\nweather_font_size: 20\n# font size for current weather\nweather_big_font_size: 38\n# font name for clock\nfont_face_clock: Sans Serif\n# font weight for clock\nfont_weight_clock: ultrabold\n# font size for clock\nweather_clock_font_size: 42\n# font name for 'now playing' string. Use ONLY monosized fonts!\nfont_face_play: Mono\n# font weight for 'now playing' string\nfont_weight_play: normal\n# font size for 'now playing' string\nplay_font_size: 40\n# font size for REQUIRED reference to Yahoo.\nyahoo_font_size: 8\n\n# alpha level for tinted image (after sunset)\nweather_image_alpha: 100.0\n# alpha level for normal image (after sunrise)\nweather_image_noalpha: 255.0\n# speed of sliding in x and y direction\nxspeed: 2\nyspeed: 2\n\n# your place (see Yahoo!Weather)\nplace: Tokyo,JP\n# if Yahoo finds several cities, select yours by right index\nplace_index: 1\n# currently only english and russian are supported. Send my pull requests for more!\nlang: english\n\n# speed of 'now playing' scrolling\nnp_speed: 5\n# maximum 'now playing' string length\nmax_play_len: 48\n# weather update interval in seconds. Don't ask Yahoo often!\nupdate_interval: 1200\n# weather update interval in seconds if last update failed\nupdate_interval: 120\n# sunrise time, if yahoo didn't say it\nmin_tint_hour: 6\n# sunset time, if yahoo didn't say it\nmax_tint_hour: 22\n\n# background color red 0..255 (default 0)\nbg_red: 0\n# background color green 0..255 (default 0)\nbg_green: 0\n# background color blue 0..255 (default 0)\nbg_blue: 0\n\n# if 1, then do not move image, just center it\nstop_mode: 0\n\n# if 1, use fahrenheight instead of celsius\nuse_fahr: 0\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhum%2Frubysaver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhum%2Frubysaver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhum%2Frubysaver/lists"}