Clone and run for a quick way to display images in a slider.
This application is build to have a simple go to when building signage based on Raspberry Pi. I made this as a Christmas present for my granny.
The idea is, you put some images on some sftp server and the pi runs a kiosk mode app to display them.
Periodically it will try to sync images from remote to local.
To use this app you will need Node.js (which comes with npm) installed on your computer. From your command line:
# Clone this repository git clone https://github.com/TomSchalld/signage # Go into the repository cd signageEdit the env.js or create a env.prod.js file like below:
module.exports = { env: { LOCAL_FOLDER: 'img', // Folder where images are stored REMOTE_FOLDER: '/', // Folder where images should be found on the server SFTP_PROVIDER: 'ssh.example.com', // SFTP Host SFTP_PORT: 22, // Port of the SFTP server SFTP_USER: 'sftp_user', // SFTP user SFTP_PASSWORD: 'sftp_password', // SFTP password ENABLE_KIOSK: false, // should the application switch into Kiosk mode aka full screen after loading REFRESH_INTERVAL: 10000 // how often shall the SFTP server be polled for updates, in milliseconds } };Almost there just run the following:
# Install dependencies npm install # Run the app npm startNote: I really didnt bother too much with this as it is almost Christmas. I see however that there is a range of use cases that could easily be implemented. Additionally I also am fully aware that you can package electron apps into binaries. Yeah you got me I was lazy ;)
Use your brain, dont make a mess and ...
