This is an easy to use InfoScreen made in Next.JS
If you want a more professional solution. Register at https://publy.no or send me an email at: emre@publy.no
This project is stil in development, issues are welcome
Jump to:
NB: Remember to setup config before running the application
First, install all the dependencies
npm install
# or
yarn
Run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
To deploy you can use Vercel, or build your own
# Build to static HTML
npm run build
# Start Next.js built in server
npm run start
Copy the content of settings/page.json.example
to a new file: settings/page.json
{
"header": {
"image": {
"enabled": true, // true/false
"src": "http://localhost:3000/nrk-logo.jpg",
"height": "50",
"width": "100"
},
"title": "KindScreen" // title of the screen (can be empty)
},
"weatherConfig": { // Config for weather module
"enabled": true, // true/false
"lat": "63.4203952", // latitude
"lon": "10.4839164" // longitude
},
"clockConfig": {
"enabled": true // true/false
},
"busConfig": { // Config for bus module
"enabled": true, // true/false
"stopPlace": "NSR:StopPlace:42282", // StopPlace ID, can be found at: https://stoppested.entur.org
"fontSize": 25
},
"newsConfig": { // Config for news module
"enabled": true, // true/false
"rssFeed": "https://www.nrk.no/toppsaker.rss", // Url for nrk.no rss feed. All feed urls: https://nrk.no/rss
"articleCount": 10 // How many news article should be shown
},
"updateCheck": true // If the server should look for new update
}
When you want to update the screen, you can either download the source code, or use git to fetch latest updates
In your installed folder, initialize git:
git init
Then you can add the github repo as upstream
git remote add upstream https://github.com/KindCoder-no/KindScreen
Fetch updates:
git fetch upstream
Pull latest changes:
git pull upstream main
- Get weather based on geolocation
- Get bus departures from stopplace
- Get news from nrk.no
- Calendar module
- More customization possibilities
- Locale (i18n)
Issues and pull requests are welcome