Server code to manage piSignage players in a LAN or Private Network or to setup your own server!
run npm install command after git pull and before starting the server
-
Install docker from https://docs.docker.com/get-docker/
-
Install git if needed & issue
git clone https://github.com/colloqi/pisignage-server
OR
just get the file https://raw.githubusercontent.com/colloqi/pisignage-server/master/docker-compose.yml
-
docker-compose up -d
-
Use the url http://localhost:3000 to launch web application
-
To generate your own Docker image, please goto docker-build branch and modify Dockerfile. Also use docker-compose.prod.yml
Changes to Docker application from server code (it is built in docker-build brnach and you could watch the different as well Dockerfile there)
- media and data dir are docker volumes (instead of ../media and ./data)
- in config/end/production.js: https is false and port is 3000, db is changed to pisignage-server-dev for compatibility and mongo network is changed from 127.0.0.1 to mongo)
- Intel CPU based VM or server
- 2GB minimum memory
- 30GB+ SSD or hard disk
- Linux based OS
- Change to pisignage-server directory where you have pulled the code last time
- Issue the command
git pull origin master
IMPORTANT: If you are upadating from before 24 Nov 2016, after git pull, please change the uri variable in config/env/development.js to 'mongodb://localhost/pisignage-dev' to retain the old data - Apply your code changes if any
- rm package-lock.json
- rm -rf node_modules (entire directory and its contents)
- Do "npm install"
- Start the pisignage-server and go to url localhost:3000
- Enter the username of yours at pisignage.com (not the email ID) (or change under settings, otherwise player license will not be enabled)
- Default authentication credentials for player webUI has been changed to pi:pi
- New settings tab has been added for settings instead of config/env/all.js file
- New player software upgrades are automatically pulled to the server and you can upgrade from the local server itself
- Upload new licenses bought to the local server so that they are automatically installed in the pi
- Authentication has been added to the server UI which can be changed under settings (default pi:pi)
Note: Instructions may change, please refer to the respective package/OS websites for the latest,
Write to us at [email protected] for help.
-
Install mongodb - open-source document database
Refer mongodb install guides to install mongodb.
-
Install node.js and npm - open source server framework
-
Install ffmpeg - video converter
-
Install imagemagick - tool for image edit, conversion
-
Install Git - distributed version control system
-
Clone this reporsitory and run follwing commands
- git clone https://github.com/colloqi/pisignage-server
- mkdir media
- mkdir media/_thumbnails
- cd pisignage-server
- npm install
-
Currently network port is configured as 3000 in local server. Modify in the file
config/env/development.js
for the port -
Run node server with
node server.js
-
Open Chrome browser and check at http://localhost:3000 OR
http://[your-ip]:3000
(ex: 192.168.1.30:3000, 10.50.16.110:3000) -
Do the following configuration before you start
- Under settings, configure the username to be same as that of your signin username at pisignage.com (it is not your email id)
- Download the license files either from email or from pisignage.com, upload them to your local server under settings
- You can upgrade your players directly from your local server
- authentication is pi & pi, you can change this under settings
NOTE: Please make sure mongod process is running and /data/db owenership is changed to regular user. If not use, sudo chown -R your-username:user-group /data
In player settings, PORT number should be part of server name for e.g. 192.168.1.12:3000
-
Download the pisignage player software and prepare SD card as per instructions
-
After player boots, configure admin and media server to your local address and port using one of the below methods
a. Using the webUI of the player at http://[player IP]:8000/settings
b. Connect Keyboard and press Ctrl-N or F6
- Change config and media server to
http://[your server ip]:port
(ex: 192.168.1.30:3000, 10.50.16.110:3000) - Open terminal
ctrl+Alt+ t
and delete any existing _config.json and _settings.json file from/home/pi/piSignagePro/config
directory
c. Connect through ssh
- Edit
/home/pi/piSignagePro/package.json
for admin and media server configuration - delete any existing _config.json and _settings.json file from
/home/pi/piSignagePro/config
directory
- Change config and media server to
-
Player management
- Auto discovery of players in a network
- Monitor Players
-
Group management - create groups and assign players to groups
- Display settings - 1080p/720p and landscape or portrait mode
- Deploy default playlist, scheduled playlists and advt playlist
- Assign Players to Groups
-
Assets Management
- Upload assets (video,mp3,html/zip,images, links, google calendar feed)
- Videos are automatically converted to mp4 using ffmpeg
- Thumbnail creation for videos and video metadat extraction to store in data base
- Add labels to manage assets
- View Details of files
- rename or delete files
- view assets locally
- auto label creation for uploaded time (in coming releases)
-
Playlist management
- Create, rename or delete playlists
- Assign assets & drag to change order
- assign duration for non-video assets
- select a layout to show (1,2a,2b,3a,3b,4,4b,2ab)
- Enable ticker & set Ticker text
- Make it ad playlist with configurable interval timer
-
angularjs-dropdown-multiselect is taken directly from
https://github.com/dotansimha/angularjs-dropdown-multiselect/pull/23/files instead of bower (for close-on-select to work) -
Requires following programs to work
- ffmpeg >= 0.9 (in certain OS, these may have to be compiled since the package does not exist, please see the issue #9)
- ffprobe associated with ffmpeg needed to convert videos
- imagemagick creates thumbnails
-
Two directories are created by the program ../media and ../media/_thumbnails. If these directories are not created server won't work as expected (for e.g. thumbnails won't be created if _thumbnails directory does not exit). In that case create those directories manually.
-
You can also manage players using Browser(http://playerip:8000) or downloading Chrome app
-
Make sure installation under settings page is same as your username (not email) at pisignage.com
Please raise an issue for problems or send us email at [email protected]