Skip to content

ParalelniPolis/bitcoinJukebox

Repository files navigation

TV viewport resolution: 962 x 453

how to run it:

Start transaction reader:

$ php desktopQueue/bin/readTransactions.php

and everything should work.

Add songs as batch via command line:

$ php adminAndMobile/bin/add-songs.php <directory>

If the google chrome browser on android does not automatically play songs, please, read this: http://stackoverflow.com/questions/12587977/html5-audio-chrome-on-android-doesnt-automatically-play-song-vs-chrome-on-pc-d

If the connection to mysql server goes away (General error: 2006 MySQL server has gone away), setup the php configuration like this: mysqli.reconnect = On

To make readTransaction.php script run permanently, create file jukebox-bitcoinreader.service with content

[Unit]
Description=jukebox-bitcoinreader
After=mysql.service

[Service]
User=jukebox
ExecStart=/usr/bin/php7.0 path/to/readTransactions.php

[Install]
WantedBy=network-online.target

and place it to /etc/systemd/system and then you can run it by systemctl start jukebox-bitcoinreader

If you want to check whether the service still runs, make another service for that. Create file jukebox-checker.service with content

[Unit]
Description=jukebox-checker
After=mysql.service

[Service]
User=jukebox
ExecStart=/usr/bin/php7.0 path/to/checkReading.php

[Install]
WantedBy=network-online.target

and place it to /etc/systemd/system and then you can run it by systemctl start jukebox-check

About

Bitcoin Jukebox for free musig in Paralell polis Bitcoin cafe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages