{"id":17693753,"url":"https://github.com/yktoo/infopi","last_synced_at":"2025-05-12T20:53:59.796Z","repository":{"id":7960471,"uuid":"56977945","full_name":"yktoo/infopi","owner":"yktoo","description":"InfoPi Information server application","archived":false,"fork":false,"pushed_at":"2024-06-12T08:21:23.000Z","size":4164,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-25T09:21:45.859Z","etag":null,"topics":["angular","buienradar","diy","electron","raspberry-pi","smart-home","smart-mirror","train","weather"],"latest_commit_sha":null,"homepage":"https://yktoo.com/en/software/infopi/","language":"TypeScript","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/yktoo.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-24T15:09:19.000Z","updated_at":"2024-09-15T00:06:40.000Z","dependencies_parsed_at":"2024-06-14T09:47:59.464Z","dependency_job_id":null,"html_url":"https://github.com/yktoo/infopi","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yktoo%2Finfopi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yktoo%2Finfopi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yktoo%2Finfopi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yktoo%2Finfopi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yktoo","download_url":"https://codeload.github.com/yktoo/infopi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222716187,"owners_count":17027697,"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":["angular","buienradar","diy","electron","raspberry-pi","smart-home","smart-mirror","train","weather"],"created_at":"2024-10-24T13:46:56.765Z","updated_at":"2024-11-02T13:06:10.432Z","avatar_url":"https://github.com/yktoo.png","language":"TypeScript","readme":"\u003cimg src=\"doc/infopi.svg\" alt=\"InfoPi icon\" width=\"128\" height=\"128\" style=\"float: left;\"\u003e\n\n## InfoPi Information server application\n\n[![Build status](https://github.com/yktoo/infopi/actions/workflows/angular.yml/badge.svg)](https://github.com/yktoo/infopi/actions/workflows/angular.yml)\n\n**InfoPi** is a single-page web application that displays various live data, like weather forecast and train departure times. The application is developed with Angular and can be packaged with the Electron browser to make an all-in-one executable bundle.\n\nMy own implementation was crafted for Raspberry Pi running [Raspbian Bullseye](https://www.raspberrypi.com/software/) and a full HD monitor (1920×1080 pixels) in the portrait orientation, but it will (supposedly) run on any platform that Electron supports and properly adapt itself to a broad range of resolutions.\n\nThis is how the information page looks like:\n\n![Screenshot of the application](doc/screenshot.jpg)\n\n## Dependencies\n\nIn order to build the package you will need:\n\n* [Node 16+ and npm 7.x+](https://nodejs.org/)\n* [Angular CLI](https://angular.io/cli)\n\n## Getting started\n\n1. Run in the terminal:\n```bash\n# Clone the git repository\ngit clone https://github.com/yktoo/infopi.git\n\n# Install NPM modules\ncd infopi\nnpm install\n\n# Copy the sample configuration\ncp src/environments/config.sample.ts src/environments/config.ts\n```\n2. If you plan to use train information, request an NS API key [here](https://apiportal.ns.nl/).\n3. Edit the file `src/environments/config.ts` you copied on step `1` and update values in it. Also put the NS API key there if you have one.\\\nThe file provides some sane initial values, like refresh intervals. You are encouraged to change stuff like the weather station or bus stop as you see fit.\n4. Test the application:\n```bash\nnpm run electron\n```\nYou should see a new browser window started in the kiosk mode (use \u003ckbd\u003eCtrl+Q\u003c/kbd\u003e to exit or \u003ckbd\u003eCtrl+Shift+I\u003c/kbd\u003e to open Developer Tools and diagnose problems).\n\n## Packaging\n\nTo create a `.deb` package for your current architecture run `npm run package`.\n\nTo create a package for Raspberry Pi run `npm run package:rpi`.\n\nThe packages will be created as `dist/installers/infopi_XXX_YYY.deb`\n\n## Installing\n\nOnce you have a `.deb`, copy it onto your Raspberry Pi and install using:\n\n```bash\nsudo dpkg -i infopi_XXX_YYY.deb\n```\n\nTo test your setup, run `infopi` from the command line or use the Application menu launcher created by the package.\n\n## Finishing touch\n\nIn order to make InfoPi start at bootup, you can add the following commands to `~/.config/lxsession/LXDE-pi/autostart`:\n\n```bash\n# InfoPi app\ninfopi\n```\n\n\nLicense\n=======\n\nSee [LICENSE](LICENSE).\n\n\nCredits\n=======\n\n* [Angular](https://angular.io/)\n* [Chart.js](https://www.chartjs.org/)\n* [ng2-charts](https://valor-software.com/ng2-charts/)\n* [xml-js](https://www.npmjs.com/package/xml-js)\n* [Weather Icons](https://erikflowers.github.io/weather-icons/)\n* [Electron](https://www.electronjs.org/), [electron-packager](https://github.com/electron/electron-packager) and [electron-installer-debian](https://github.com/electron-userland/electron-installer-debian)\n\n\nData providers\n==============\n\n* Weather info: [Buienradar.nl](http://buienradar.nl/)\n* Train info: [Nederlandse Spoorwegen](http://www.ns.nl/)\n* Bus info: [openOV](http://openov.nl/)\n* News: [BBC](https://www.bbc.co.uk/)\n* Sensors: home automation server instance of [OpenHAB](https://www.openhab.org/).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyktoo%2Finfopi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyktoo%2Finfopi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyktoo%2Finfopi/lists"}