{"id":13690335,"url":"https://github.com/impshum/Reddit-Weather-Sidebar","last_synced_at":"2025-05-02T06:32:34.469Z","repository":{"id":79628428,"uuid":"286221962","full_name":"impshum/Reddit-Weather-Sidebar","owner":"impshum","description":"Displays the weather forecast in the sidebar on your subreddit for a chosen city.","archived":false,"fork":false,"pushed_at":"2020-10-15T20:39:15.000Z","size":91,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-12T15:43:30.568Z","etag":null,"topics":["bot","praw","reddit","sidebar","weather"],"latest_commit_sha":null,"homepage":"","language":"Python","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/impshum.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}},"created_at":"2020-08-09T11:18:21.000Z","updated_at":"2020-10-15T20:39:18.000Z","dependencies_parsed_at":"2023-02-27T04:00:24.303Z","dependency_job_id":null,"html_url":"https://github.com/impshum/Reddit-Weather-Sidebar","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/impshum%2FReddit-Weather-Sidebar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/impshum%2FReddit-Weather-Sidebar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/impshum%2FReddit-Weather-Sidebar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/impshum%2FReddit-Weather-Sidebar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/impshum","download_url":"https://codeload.github.com/impshum/Reddit-Weather-Sidebar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251998743,"owners_count":21678007,"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":["bot","praw","reddit","sidebar","weather"],"created_at":"2024-08-02T16:01:03.290Z","updated_at":"2025-05-02T06:32:34.088Z","avatar_url":"https://github.com/impshum.png","language":"Python","funding_links":[],"categories":["Misc"],"sub_categories":["External Reddit Tools"],"readme":"## Reddit Weather Sidebar\n\nDisplays the weather forecast in the sidebar for a chosen city.\n\n![](s.png)\n\n### Instructions\n\n-   Install requirements `pip install -r requirements.txt`\n-   Create Reddit (script) app at \u003chttps://www.reddit.com/prefs/apps/\u003e and get keys\n-   Get an API key from \u003chttps://openweathermap.org\u003e\n-   Edit conf.ini with your details\n-   Edit old Reddit stylesheet at \u003chttps://old.reddit.com/r/SUBREDDIT/about/stylesheet/\u003e and add this CSS\n\n        .side table {\n          width: 100%;\n          font-family: IBMPlexSans, Arial, sans-serif;\n        }\n\n        .side thead {\n          display: none;\n        }\n\n        .side h2, .side h3 {\n          padding-top: 1rem;\n          text-align: center;\n        }\n\n-   Add a new custom widget on the new Reddit style at \u003chttps://new.reddit.com/r/SUBREDDIT/?styling=true\u003e, name it `Weather` (or whatever you declared it to be in conf.ini) and add this CSS\n\n        .md table {\n          width: 100%;\n          font-family: IBMPlexSans, Arial, sans-serif;\n        }\n\n        .md thead {\n          display: none;\n        }\n\n        .md h2, .md h3 {\n          padding-top: 1rem;\n          text-align: center;\n          font-family: IBMPlexSans, Arial, sans-serif;\n        }\n\n-   Run it `python run.py`\n\n### Settings Info\n\n`reddit_user` - Reddit username  \n`reddit_pass` - Reddit password  \n`reddit_client_id` - Reddit Client ID  \n`reddit_client_secret` - Reddit Client Secret  \n`reddit_target_subreddit` - Subreddit to update sidebar  \n`reddit_widget_name` - Widget name (new Reddit style)  \n\n`weather_api_key` - API key from openweathermap  \n`weather_units` metric  \n`weather_city` London,UK  \n\n### Notes\n\n-   The account that you use for the bot has to be a mod of the target subreddit and have the correct permissions to edit things.\n- The script only runs once. You can run it on https://www.pythonanywhere.com/ once a day for free.\n\n### Tip\n\nBTC - 1AYSiE7mhR9XshtS4mU2rRoAGxN8wSo4tK\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimpshum%2FReddit-Weather-Sidebar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimpshum%2FReddit-Weather-Sidebar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimpshum%2FReddit-Weather-Sidebar/lists"}