Moode Forum
Switch off main setting - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: Switch off main setting (/showthread.php?tid=1157)

Pages: 1 2


Switch off main setting - Jempie - 02-23-2019

Hi,

Moode audio works perfect.... 
I use 4.3 don't want to update to 4.4.
Now my kids mess up the settings.....
F**k

Is there a way to switch off the settings with an password or code. This is not the second time my kids mess up the settings. I want to block that

Thanks
Jem


RE: Switch off main setting - CallMeMike - 02-24-2019

(02-23-2019, 03:26 PM)Jempie Wrote: Hi,

Moode audio works perfect.... 
I use 4.3 don't want to update to 4.4.
Now my kids mess up the settings.....
F**k

Is there a way to switch off the settings with an password or code. This is not the second time my kids mess up the settings. I want to block that

Thanks
Jem

What about having a serious discussion (I mean a really serious discussion) with your kids...?... plus a temporary ban on using the Moode Player (and other technology) until they 'grow up'...?

The last time I've looked around it was the dog wagging its tail not the other way around... Tongue


RE: Switch off main setting - DRONE7 - 02-24-2019

What he said...and if all that fails then make a backup of your working install and then it's a simple matter of burning to the sd-card...about 6 minutes tops... and rebooting.

https://www.raspberrypi.org/documentation/linux/filesystem/backup.md
scroll to "sdcard image" and do that.


RE: Switch off main setting - Jempie - 02-24-2019

I ask that because in rune you can add an password
And that works fine. I thought it was simple to add this.
Tell them not to go look in te settings they are kids....

Thx


RE: Switch off main setting - TheOldPresbyope - 02-24-2019

(02-24-2019, 05:29 PM)Jempie Wrote: I ask that because in rune you can add an password
And that works fine. I thought it was simple to add this.
Tell them not to go look in te settings they are kids....

Thx

That's interesting. I just downloaded and installed RuneAudio on a spare RPi and I don't see this password setting. Where can I find it?

moOde doesn't have a way to lock the configuration settings and AFAIK neither does Volumio. I can see the usefulness, not just at home but away, in a dorm room, say.

Regards,
Kent


RE: Switch off main setting - Jempie - 02-24-2019

:

Try
Menu > Password protection


RE: Switch off main setting - Jempie - 02-24-2019

https://github.com/RuneAddons/Password


RE: Switch off main setting - Jempie - 02-24-2019

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>RuneAudio - Login</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="msapplication-tap-highlight" content="no" />
<link rel="stylesheet" href="assets/css/runeui.css">
<link rel="shortcut icon" href="assets/img/favicon.ico">
<style>
body {
height: initial;
}
#divlogin {
text-align: center;
margin-top: 30px;
}
input[type="password"] {
display: inline;
margin-top: 10px;
width: 250px;
text-align: center;
}
#login, #pwdset {
margin-top: 20px;
}
#pwdchange {
display: none;
}
</style>
</head>
<body>
<div id="divlogin">
<img id="logo" class="logo" src="assets/img/logopwd.png"><br>
<input type="password" id="pwd" class="form-control osk-trigger input-lg"><br>
<div id="pwdchange">
existing<br>
<input type="password" id="pwdnew" class="form-control osk-trigger input-lg"><br>
new password<br>
<a id="pwdset" class="btn btn-primary">Set</a>
</div>
<a id="login" class="btn btn-primary">Login</a>
</div>
<script src="assets/js/vendor/jquery-2.1.0.min.js"></script>

<script>
$( document ).ready( function() {
$( '#pwd' ).focus();
$( '#logo' ).click( function() {
$( '#pwdchange, #login' ).toggle();
$( '#pwd' ).focus();
} );
$( '#login' ).click( loginSubmit );
$( '#pwd' ).keypress( function( e ) {
if ( e.which == 13 ) {
loginSubmit();
$( this ).blur();
}
} );
function loginSubmit() {
$.post(
'loginverify.php',
{ 'pwd': $( '#pwd' ).val() },
function( data ) {
if ( data != 1 ) {
alert( 'Wrong password' );
$( '#pwd' ).val( '' ).focus();
} else {
window.location.href = '/';
}
}
);
}
$( '#pwdset' ).click( function() {
$.post(
'loginpwdsave.php',
{ 'pwd': $( '#pwd' ).val(), 'pwdnew': $( '#pwdnew' ).val() },
function( data ) {
if ( data != 1 ) {
alert( 'Wrong existing password' );
$( '#pwd' ).val( '' ).focus();
} else {
$( '#logo' ).click();
alert( 'Password changed' );
$( '#pwd' ).val( '' ).focus();
}
}
);
} );
} );
</script>

</body>
</html>


RE: Switch off main setting - grumbleweed - 02-24-2019

Not a bad idea, but it would be a bigish job to do it correctly, as it would involve a lot of testing, as once you enable a login people will try to break in.

I was tasked with making a pass protected admin area (by session) on a php based site I authored, one third of the coding time was making it, two thirds was debugging/testing it.


RE: Switch off main setting - dwlacroix - 02-24-2019

I'd be happy if it was just hidden a little bit.

http://moode/  could just bring up the music play
http://moode/admin/ could be used to access the settings