Moode Forum
Moodroid: Moode Android app with button volume control - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: Community (https://moodeaudio.org/forum/forumdisplay.php?fid=18)
+--- Forum: General Discussion (https://moodeaudio.org/forum/forumdisplay.php?fid=21)
+--- Thread: Moodroid: Moode Android app with button volume control (/showthread.php?tid=6663)

Pages: 1 2


Moodroid: Moode Android app with button volume control - harzoglups - 06-27-2024

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...


RE: Moodroid: Moode Android app with button volume control - Tim Curtis - 06-27-2024

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.


RE: Moodroid: Moode Android app with button volume control - harzoglups - 06-27-2024

Yes, the physical buttons on the phone.
I though that without license the code was totally free.
What is the less restrictive? Apache?


RE: Moodroid: Moode Android app with button volume control - harzoglups - 06-27-2024

MIT License added, seems to be the most permissive one.
Thanks for the piece of advice!


RE: Moodroid: Moode Android app with button volume control - Tim Curtis - 06-27-2024

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


RE: Moodroid: Moode Android app with button volume control - harzoglups - 07-03-2024

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.


RE: Moodroid: Moode Android app with button volume control - Tim Curtis - 07-03-2024

Cool.

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


RE: Moodroid: Moode Android app with button volume control - TheOldPresbyope - 07-03-2024

(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


RE: Moodroid: Moode Android app with button volume control - the_bertrum - 07-15-2024

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?


RE: Moodroid: Moode Android app with button volume control - harzoglups - 07-15-2024

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.