Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Moodroid: Moode Android app with button volume control
#1
Hello,

I've developped a small Android application that just wraps the Moode Audio interface in a Webview and catch volume button press to send Rest API volume command:

https://github.com/harzoglups/Moodroid

This is quick and dirty code that suits my needs, feel free to do whatever you want with it if you think it's useful.

URL and volume step are hardcoded: http://moode.local and 1, could be a preference...
Reply
#2
Nice :-)
The physical buttons on the phone, right?

You should attach a FOSS compatible license for example GPLv3 or MIT to your code otherwise it can't be redistributed if someone ever wants to do that.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Yes, the physical buttons on the phone.
I though that without license the code was totally free.
What is the less restrictive? Apache?
Reply
#4
MIT License added, seems to be the most permissive one.
Thanks for the piece of advice!
Reply
#5
The basic legals are:

1.You own the Copyright for works that you create which means that others need to get your permission to copy and redistribute your work.
2 The License attached to a Copyrighted work stipulates the terms under which it can be copied and redistributed.
3. Copyrighted works without an attached License by default cannot be legally copied or redistributed under any circumstances.

You would be surprised at the percentage of code on Github that has no attached License :-0
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#6
Hello,

I've added the follwing features to the application:
  • Top bar with Settings button: you can now define the URL and the Volume step to be applied when pressing volume button
  • A refresh floating button to force Moode Audio page reload
Enjoy.
Reply
#7
Cool.

Maybe one of the Droids (Kent) will check it out :-)
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#8
(07-03-2024, 10:15 PM)Tim Curtis Wrote: Cool.

Maybe one of the Droids (Kent) will check it out :-)

I'm tempted to say "these aren't the droids you're looking for".

Candidly, I find the "Add to Home Screen" option in the browsers I use in Android work well for me. I'm so used to the Volume knob in moOde's WebUI that using the physical volume buttons almost feels counterintuitive.

Nevertheless, sure, I'll try out the app when I get a chance. Smile 

Regards,
Kent
Reply
#9
I went to give this a go and ran out of clues immediately. What do I have to build/install to get this on my phone?
----------------
Robert
Reply
#10
Hello,

  1. Download the project:
    git clone https://github.com/harzoglups/Moodroid.git
    or
    Click on "Code" green button and select download ZIP
  2. Activate developer options on your phone:
    Settings --> About my phone --> tap multiple times on Build number until it is activated
  3. Activate USB Debug: Settings --> System --> Developer options --> Activate Debug
  4. Two options now:
    • Download Android Studio, open the project and click on the "play" button (or menu Run --> Run 'app')
    • PM me, I send you an apk file that you can install using adb command line tool: adb install moodroid.apk
      Or you may be able to transfert it on your phone and install it from it.
Notice that settings menu names may be slightly different, my phone is in french.
Reply


Forum Jump: