{"id":13929377,"url":"https://github.com/codeformuenster/klimawatch","last_synced_at":"2025-12-25T08:11:45.488Z","repository":{"id":36073287,"uuid":"218806885","full_name":"codeformuenster/klimawatch","owner":"codeformuenster","description":"Ist deine Kommune schon klimaneutral?","archived":false,"fork":false,"pushed_at":"2024-12-19T21:03:04.000Z","size":19699,"stargazers_count":22,"open_issues_count":20,"forks_count":19,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-12-19T21:32:52.401Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://klimawatch.de/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeformuenster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2019-10-31T16:10:47.000Z","updated_at":"2024-12-19T21:03:06.000Z","dependencies_parsed_at":"2024-04-09T21:42:30.338Z","dependency_job_id":"654466cb-7656-45df-8bda-18f16b36581a","html_url":"https://github.com/codeformuenster/klimawatch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codeformuenster/klimawatch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeformuenster%2Fklimawatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeformuenster%2Fklimawatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeformuenster%2Fklimawatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeformuenster%2Fklimawatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeformuenster","download_url":"https://codeload.github.com/codeformuenster/klimawatch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeformuenster%2Fklimawatch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28024345,"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-12-25T02:00:05.988Z","response_time":58,"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-08-07T18:02:18.480Z","updated_at":"2025-12-25T08:11:45.438Z","avatar_url":"https://github.com/codeformuenster.png","language":"HTML","funding_links":[],"categories":["others"],"sub_categories":[],"readme":"Sind die kommunalen Klimaschutzbemühungen (noch) im Plan?\nWir möchten eine einfach zu verstehende Homepage erstellen, welche diese Frage beantwortet.\n\nDazu wollen wir geplante Emissionsminderungsziele mit tatsächlichen Emissionsdaten\nverknüpfen und für möglichst viele Kommunen Deutschland anzeigen.\nDarüber hinaus wollen den Status einzelner Module von kommunalen\nKlimaschutzkonzepten visualisieren.\nAußerdem möchten wir die Ausbauziele der erneuerbaren Energien visualisieren.\n\n[![Diskussion im Chat](https://img.shields.io/matrix/klimawatch:tchncs.de?server_fqdn=matrix.tchncs.de\u0026label=Diskussion%20im%20Chat\u0026style=for-the-badge)](https://matrix.to/#/#klimawatch:tchncs.de)\n\n# Wie kann ich die Daten meiner Kommune visualisieren?\n\nIn nur zwei Schritten: Du sammelst die Daten, wir visualisieren sie für Dich!\nHier gibt es [eine detaillierte Anleitung dazu](https://klimawatch.codefor.de/anleitung).\nWer diesen Text hier liest: Wir freuen uns über [einen Pull Request](https://github.com/codeformuenster/klimawatch/pulls)!\nDazu bitte gerne folgendes tun\n\n- die entsprechende CSV-Datei (s. Anleitung) in den Ordner `data` packen\n- eine entsprechende Zeile in `meta.csv` hinzufügen\n- die Datei `python create_markdown.py kommune` ausführen\n- Korrektur lesen (s. Ausgabe vom Skript)\n- Pull Request :tada:\n\nQuellen und Ansprechpartner nicht vergessen! Super wäre auch, wenn wir direkt im Pull Request Dateien editieren könnten ([Anleitung](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork)). Danke!\n\nBei Fragen gerne im Chat melden:\n[![Matrix-Chat](https://img.shields.io/matrix/klimawatch:tchncs.de?server_fqdn=tchncs.de\u0026label=Diskussion%20im%20Chat\u0026style=for-the-badge)](https://matrix.to/#/#klimawatch:tchncs.de)\nWer im Open-Knowledge-Foundation-Germany-Slack ist: Es gibt dort einen #klimawatch-Channel (der gleiche Chatraum wie der Matrix-Chat).\n\n\n# Technisches\n\n## Generierung der Grafiken:\n\n### Mit Docker\n\n1. Conda Docker Image bauen: im Verzeichnis `docker/conda` das Script `docker-build.sh` ausführen\n2. Nun können aus dem Hauptverzeichnis heraus die Scripte\n\t- `docker/generate_plots.sh` und\n\t- `docker/hugo.sh`\n        verwendet werden, ohne dass Conda und Hogo lokal installiert sein müssen.\n\n### Ohne Docker\n\nFolgendes wurde alles mit `python3` getetest.\nBenötigte Pakete installieren:\n\n### Mit Conda\n\n```\nconda env create -f environment.yml\nconda activate klimawatch\n```\n### Direkt mit pip\n\n```\npip install -e .[dev]\n```\n\n### Dann Seite inkl. Plots generieren:\n\n```\npython create_markdown.py kommune\n```\n\nDas Skript konfiguriert das meiste automatisch.\nDazu wird auch ein anderes Skript aufgerufen, welches die Plots generiert.\nDieses Skript lässt sich bei Bedarf auch unabhängig vom `create_markdown.py` aufrufen:\n\n\n```\npython generate_plots.py kommune [Jahreszahl ab wann Trend berechnet werden soll (Standard: alles)]\n```\n\nDazu muss eine Datei mit dem Namen `kommune.csv` im Ordner `data` liegen.\nDiese Datei sollte wie\n[in der Anleitung beschrieben](https://codeformuenster.org/klimawatch/hugo/anleitung)\nerstellt worden sein.\nWenn alles erfolgreich war, sollten\n\n- eine Datei mit dem Namen `paris_[kommune].html`\n  im Ordner `hugo/layouts/shortcodes/` und\n- eine Datei `you_draw_it_[kommune]_paris_data.json` mit dem\n  verbleibendem Parisbudget im Ordner `hugo/data/`\n- eine Datei `content/kommunen/\u003ckommune\u003e.md`.\n  Diese Datei sollte Korrektur gelesen werden (am besten mit laufendem hugo\n  direkt im Browser) und ggf. verbessert werden.\n\nerstellt worden sein.\n\n## Webseite bauen\n\nDie Webseite wird mit dem static-site-generator `hugo` erstellt.\nDeshalb, falls noch nicht geschehen, [`hugo` installieren](https://gohugo.io/)\n\nDann in den Ordner `hugo` gehen und mit\n\n```\nhugo server\n```\n\n`hugo` starten.\nNun sollte man mit einem Browser unter [localhost:1313](http://localhost:1313)\neine lokale Kopie der Webseite erreichen können.\nJede Änderung der zugrunde liegenden Dateien sollte live gezeigt werden.\n\n### Inhalte der Webseite\n\nAlle Content-Seiten werden als Markdown-Dateien verwaltet,\n[hier findet sich eine Kurzreferenz](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet).\n\nFür jede Kommune braucht man eine `content/kommunen/\u003ckommune\u003e.md` Datei.\nFür eine neue Kommune bietet es sich an die Datei `content/kommunen/template.md`\nzu kopieren und für die neue Kommune anzupassen.\n\nFür übergreifende Seiten siehe die Beispielseiten `content/anleitung.md` oder `content/paris-limits.md`.\nDie Dateien im Ordner `content/sections` erscheinen auf der Startseite als Sections.\nDie Datei `content/_index.md` ist die Startseite.\n\n### Layout\n\nIn der Datei `config.toml` gibt es viele Einstellungen.\nIm Ordner `themes/assets` finden sich viele CSS-Einstellungen.\n\n### Deployment\n\nDas Deployment der Webseite läuft über `netlify`,  s. https://github.com/codeformuenster/klimawatch/blob/master/netlify.toml.\nDer `master`-Branch läuft somit automatisch auf https://klimawatch.codefor.de.\n\n# Rechtliches\n\nDer Quelltext dieses Projekts ist lizenziert unter der Apache 2.0 Lizenz:\n\n```\nCopyright 2019 Klimawatch Contributors\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use these files except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n\nFür die beigefügte Programmbibliothek `hugo/assets/js/d3v4.js` gilt folgende Lizenzbedingung:\n\n```\nCopyright 2010-2017 Mike Bostock\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n  this list of conditions and the following disclaimer in the documentation\n  and/or other materials provided with the distribution.\n\n* Neither the name of the author nor the names of contributors may be used to\n  endorse or promote products derived from this software without specific prior\n  written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n```\n\nFür die beigefügte Programmbibliothek `hugo/assets/js/plotly-1.51.2.min.js` gilt folgende Lizenzbedingung:\n\n```\nThe MIT License (MIT)\n\nCopyright (c) 2016-2019 Plotly, Inc\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n\nFür die beigefügte Programmbibliothek `hugo/assets/js/you_draw_it_template.js` gilt folgende Lizenzbedingung:\n\n```\nOriginal file from https://github.com/EE2dev/you-draw-it by Mihael Ankerst\n\nCopyright 2018 Mihael Ankerst\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n  this list of conditions and the following disclaimer in the documentation\n  and/or other materials provided with the distribution.\n\n* Neither the name of the author nor the names of contributors may be used to\n  endorse or promote products derived from this software without specific prior\n  written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeformuenster%2Fklimawatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeformuenster%2Fklimawatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeformuenster%2Fklimawatch/lists"}