{"id":13830594,"url":"https://github.com/paphko/mmm-weatherchart","last_synced_at":"2025-07-09T12:30:28.296Z","repository":{"id":10467505,"uuid":"65850335","full_name":"paphko/mmm-weatherchart","owner":"paphko","description":"Weather chart module for the magic mirror 2 project","archived":false,"fork":false,"pushed_at":"2022-12-10T07:11:00.000Z","size":257,"stargazers_count":30,"open_issues_count":10,"forks_count":19,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T05:29:47.025Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/paphko.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":"2016-08-16T20:12:39.000Z","updated_at":"2024-03-07T08:04:27.000Z","dependencies_parsed_at":"2023-01-11T20:14:37.777Z","dependency_job_id":null,"html_url":"https://github.com/paphko/mmm-weatherchart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/paphko/mmm-weatherchart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paphko%2Fmmm-weatherchart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paphko%2Fmmm-weatherchart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paphko%2Fmmm-weatherchart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paphko%2Fmmm-weatherchart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paphko","download_url":"https://codeload.github.com/paphko/mmm-weatherchart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paphko%2Fmmm-weatherchart/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264458042,"owners_count":23611473,"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-08-04T10:01:02.709Z","updated_at":"2025-07-09T12:30:28.042Z","avatar_url":"https://github.com/paphko.png","language":"JavaScript","funding_links":[],"categories":["Weather"],"sub_categories":[],"readme":"# Magic Mirror Module: mmm-weatherchart\nThis [MagicMirror2](https://github.com/MichMich/MagicMirror) module allows you to show a weather diagram provided by http://www.yr.no\n\n![Screenshot](Screenshot1.png \"Screenshot\")\n\n\n## Installation\n\nIn your terminal, go to your MagicMirror's Module folder:\n````\ncd ~/MagicMirror/modules\n````\n\nClone this repository:\n````\ngit clone https://github.com/paphko/mmm-weatherchart.git\n````\n\nInstall module:\n````\ncd mmm-weatherchart\nnpm install\n````\n\nConfigure the module in your `config.js` file.\n\n## Using the module\n\nTo use this module, you must first determine country, area, and city:\n\n1. go to http://www.yr.no\n2. Search for the location you want forecast for\n3. Navigate to the bottom of the table to find the link for \"Forecast as SVG\"\n4. Click the link to open in it in a new tab, and copy the url., e.g.: /en/content/2-3196359/meteogram.svg\n\nNow add the module to the modules array in the `config/config.js` file:\n````javascript\nmodules: [\n\t{\n\t\tmodule: 'mmm-weatherchart',\n\t\tposition: 'bottom_left', // this can be any of the regions\n\t\tconfig: {\n\t\t\tlocationPath: \"/en/content/2-3196359/meteogram.svg\",\n\t\t\tupdateInterval: 60 * 60 * 1000, // update every hour\n\t\t\thideBorder: true, // whether or not a border with city name should be shown\n\t\t\tnegativeImage: true, // whether or not the default white image should be inverted\n\t\t\thoursToShow: 24, // Cut the image down to show less than the full 48 hour forecast. -1 to show everything.\n\t\t\t// mmDirectory: \"/home/pi/MagicMirror/\" // required for caching; adjust if it differs\n\t\t}\n\t},\n]\n````\n\n## Configuration options\n\nThe following properties can be configured:\n\n\n\u003ctable width=\"100%\"\u003e\n\t\u003c!-- why, markdown... --\u003e\n\t\u003cthead\u003e\n\t\t\u003ctr\u003e\n\t\t\t\u003cth\u003eOption\u003c/th\u003e\n\t\t\t\u003cth width=\"100%\"\u003eDescription\u003c/th\u003e\n\t\t\u003c/tr\u003e\n\t\u003cthead\u003e\n\t\u003ctbody\u003e\n\t\t\u003ctr\u003e\n\t\t\t\u003ctd\u003e\u003ccode\u003eLocation path\u003c/code\u003e\u003c/td\u003e\n\t\t\t\u003ctd\u003eYour url link (after www.yr.no) which determines your location to be shown.\u003c/td\u003e\n\t\t\u003c/tr\u003e\n\t\t\u003ctr\u003e\n\t\t\t\u003ctd\u003e\u003ccode\u003eupdateInterval\u003c/code\u003e\u003c/td\u003e\n\t\t\t\u003ctd\u003eUpdate interval of the diagram.\n\t\t\t\t\u003cbr\u003e\u003cb\u003eDefault value:\u003c/b\u003e \u003ccode\u003e60 * 60 * 1000\u003c/code\u003e (once every hour)\n\t\t\t\u003c/td\u003e\n\t\t\u003c/tr\u003e\n\t\t\u003ctr\u003e\n\t\t\t\u003ctd\u003e\u003ccode\u003ehideBorder\u003c/code\u003e\u003c/td\u003e\n\t\t\t\u003ctd\u003eWhether or not a border with city name should be shown.\n\t\t\t\t\u003cbr\u003e\u003cb\u003eDefault value:\u003c/b\u003e \u003ccode\u003etrue\u003c/code\u003e\n\t\t\t\u003c/td\u003e\n\t\t\u003c/tr\u003e\n\t\t\u003ctr\u003e\n\t\t\t\u003ctd\u003e\u003ccode\u003enegativeImage\u003c/code\u003e\u003c/td\u003e\n\t\t\t\u003ctd\u003eWhether or not the white image should be inverted.\n\t\t\t\t\u003cbr\u003e\u003cb\u003eDefault value:\u003c/b\u003e \u003ccode\u003etrue\u003c/code\u003e\n\t\t\t\u003c/td\u003e\n\t\t\u003c/tr\u003e\n\t\t\u003ctr\u003e\n\t\t\t\u003ctd\u003e\u003ccode\u003ehoursToShow\u003c/code\u003e\u003c/td\u003e\n\t\t\t\u003ctd\u003eCut the forecast down to this many hours (for a narrower picture).\n\t\t\t\t\u003cbr\u003e\u003cb\u003eDefault value:\u003c/b\u003e \u003ccode\u003e-1\u003c/code\u003e (show full forecast)\n\t\t\t\u003c/td\u003e\n\t\t\u003c/tr\u003e\n\t\t\u003ctr\u003e\n\t\t\t\u003ctd\u003e\u003ccode\u003emmDirectory\u003c/code\u003e\u003c/td\u003e\n\t\t\t\u003ctd\u003eTo avoid the image to be cached by the browser (issue #5), it is downloaded into the magic mirror / modules / mmm-weatherchart / cache folder.\n\t\t\t\tI couldn't find a way to ask MM for this path, so I just hard-coded it here with the possibility to adjust it in case your installation looks different.\n\t\t\t\t\u003cbr\u003e\u003cb\u003eDefault value:\u003c/b\u003e \u003ccode\u003e/home/pi/MagicMirror/\u003c/code\u003e\n\t\t\t\u003c/td\u003e\n\t\t\u003c/tr\u003e\n\t\u003c/tbody\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaphko%2Fmmm-weatherchart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaphko%2Fmmm-weatherchart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaphko%2Fmmm-weatherchart/lists"}