[PROPOSAL]: Alarm Clock

Suggestions/requests/ideas for RuneAudio core features and functions

Re: [PROPOSAL]: Alarm Clock

Postby SlF » 16 Feb 2016, 21:09

Pilou007 wrote:Hi Sif
I tried another time with a new SD card :
[root@runeaudio ~]# cd /boot
[root@runeaudio boot]# tar -xvf RuneAudio-Wakeup.tar
var/www/assets/js/runeui.js
var/www/assets/js/runeui.min.js
var/www/assets/js/vendor/jquery.clockpicker.min.js
var/www/assets/js/vendor/jquery.bootstrap-touchspin.min.js
var/www/assets/css/jquery.clockpicker.min.css
var/www/assets/css/jquery.bootstrap-touchspin.min.css
var/www/command/play
tar: var/www/command/play: Cannot change ownership to uid 33, gid 33: Operation not permitted
var/www/command/stop
tar: var/www/command/stop: Cannot change ownership to uid 33, gid 33: Operation not permitted
var/www/app/wakeup_ctl.php
var/www/app/templates/wakeup.php
var/www/app/templates/header.php
var/www/app/templates/footer.php
tar: Exiting with failure status due to previous errors

you can see two errors in the files copied. why ???
i have double checked the $controllers array i have add a , just after tun as you can see :
'settings',
'sources',
'tun',
'wakeup'
);

cronie is installed and enable...


I really need help as I am not very comfortable with all this stuff (nor in english ;-) )
thanks for your help

Pilou007



Hi,

why do you do cd /boot? You shouldn't go there. Do you have access to another computer within the network? You can install filezilla und copy the files via sftp to your rune. Just extract the tar on the secound PC, open Filezilla and add a new connection with type=sftp, adress=YourIpOfYourRune username=root password=rune copy all the files by hand and ssh into your rune machine and run:
"chmod +x /var/www/command/play"
"chmod +x /var/www/command/stop"

PS: If your are cding into boot because this is the only partition your windows machine can see, Filezilla is your best choice to move the files onto it. Otherwise you could use a Linux PC.
SlF
 
Posts: 30
Joined: 29 Sep 2015, 14:09
Location: Germany

Re: [PROPOSAL]: Alarm Clock

Postby Pilou007 » 20 Feb 2016, 10:25

Hi Sif,
first thank you for your answer. you ask me : why do you do cd /boot?
because I have copied the tar file from windows directly to the USB stick. When I have cheked with putty the directory wher the file is runing runeaudio I have found it in /boot.

The way you tell me to correct my issues seems too complicated to me, i will wait and hope these features will be integrated in the next version of runeaudio.
Thanks a lot for your time and help

Olivier
Pilou007
 
Posts: 6
Joined: 28 Jan 2016, 09:53

Re: [PROPOSAL]: Alarm Clock

Postby SlF » 24 Feb 2016, 00:24

Pilou007 wrote:Hi Sif,
first thank you for your answer. you ask me : why do you do cd /boot?
because I have copied the tar file from windows directly to the USB stick. When I have cheked with putty the directory wher the file is runing runeaudio I have found it in /boot.

The way you tell me to correct my issues seems too complicated to me, i will wait and hope these features will be integrated in the next version of runeaudio.
Thanks a lot for your time and help

Olivier


Hi Olivier,

where exactly do you need help? If you want to, I could give you some help via teamviewer... You just need to install Filezilla and add a new server.
SlF
 
Posts: 30
Joined: 29 Sep 2015, 14:09
Location: Germany

Re: [PROPOSAL]: Alarm Clock

Postby polmouk » 10 Sep 2016, 09:13

JB314 wrote:Here is another version of the Alarm Clock feature, tested on tablet and normally well "bootstraped".

RuneAudio-Wakeup.png


You can download the necessary files here :
RuneAudio-Wakeup.tar.gz


It contains these following new or modified files :

    /var/www/assets/js/runeui.js : add clockpicker and touchspin initialisation
    /var/www/assets/js/runeui.min.js : same but minified
    /var/www/assets/js/vendor/jquery.clockpicker.min.js : new clockpicker component
    /var/www/assets/js/vendor/jquery.bootstrap-touchspin.min.js : new touchspin component (+ and - for number input)
    /var/www/assets/css/jquery.clockpicker.min.css
    /var/www/assets/css/jquery.bootstrap-touchspin.min.css
    /var/www/command/play : script used for starting properly a playlist through cron
    /var/www/command/stop : stop playback through cron
    /var/www/app/wakeup_ctl.php : new controler for handling whole AlarmClock process
    /var/www/app/templates/wakeup.php : template
    /var/www/app/templates/header.php : add .css link
    /var/www/app/templates/footer.php : add .js components

[Edit 23.02.2015] : I just thought I forgot to add a file...
in addition you have to modify the file /var/www/index.php to add a new item in the $controllers array :

Code: Select all
 
$controllers = array(
    'credits',
    'coverart',
...
    'sources',
    'tun',
    'wakeup' // <- this line
);



In order to have it working, be careful you specified a correct timezone in RuneAudio Settings.

Then connect to SSH and start the cron service (it should be already installed):

Code: Select all
systemctl enable cronie
systemctl start cronie


If you don't reboot, you may have to restart the php-fpm service in order to see the new pages :
Code: Select all
systemctl restart php-fpm


Feel free to comment and adapt!
JB314


Hi everybody!
I've followed the instructions above but after rebooting I can't browse my HDD that is mounted on my setup. Any Ideas?
Thanks!
P.

UPDATE: I 've just noticed that UPnP doesn't play..
polmouk
 
Posts: 2
Joined: 10 Sep 2016, 09:08

Re: [PROPOSAL]: Alarm Clock

Postby hondagx35 » 11 Sep 2016, 16:51

Hi polmouk,

the author did a great job on this addon.
The main problem is that it is not deployed as patch.
By installing you are overwriting main files, that is not a good idea.

JB314 did a pull request on github, but this isn't implemented yet.

Sorry, but at the moment there is no easy way to get this installed.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

support RuneAudio Donate with PayPal

Previous

Return to Feature request

Who is online

Users browsing this forum: No registered users and 2 guests