The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


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


Instruction Guide Modding moOde: Switching amps
#1
Hello,

as I already posted some time ago my "moOde mod" for switchin amps in the old thread I updated this to the latest version (moOde 4.2 07-19-2018)

With the modified files I have  an additional "Amplifier" menu entry . I am using two amps which can be switched On/Off from here.
This happens by two relais connected to the GPIO connectors (I am using a cheap China relais platine for this - connected to GPIO 23 and 24).

Additionaly the amp gets switched off, when music is paused, stopped or muted for more than 5 minutes.
They are switched on again (last amp selection) when the music is resumed.

To use this mod, the attached files have to be replaced and two additional settings have to be added to the moode-sqlite3.db:

Code:
insert into cfg_system VALUES(100, amp-1, Off);
insert into cfg_system VALUES(101, amp-2, Off);

 
The amps name and description of the amps are hardcoded in the footer.php file.
The used GPIOs are set in the gpio.sh file

Maybe it is usefull for others, too.
Download Link


Regards
Hans.

Edit:
added Dropbox link


Attached Files Thumbnail(s)
       
Reply


Messages In This Thread
Modding moOde: Switching amps - by Highsider - 07-21-2018, 06:59 PM
RE: Modding moOde: Switching amps - by Tim Curtis - 07-21-2018, 08:03 PM
RE: Modding moOde: Switching amps - by Edues - 05-26-2020, 05:33 PM
RE: Modding moOde: Switching amps - by Oorpijn - 01-22-2021, 09:36 AM
RE: Modding moOde: Switching amps - by Highsider - 07-22-2018, 09:47 AM
RE: Modding moOde: Switching amps - by Highsider - 07-22-2018, 01:48 PM
RE: Modding moOde: Switching amps - by Tim Curtis - 07-23-2018, 07:43 PM
RE: Modding moOde: Switching amps - by Highsider - 07-24-2018, 08:44 PM
RE: Modding moOde: Switching amps - by Prince - 07-26-2018, 09:17 AM
RE: Modding moOde: Switching amps - by miklau - 09-25-2018, 08:31 AM
RE: Modding moOde: Switching amps - by MattOff491 - 10-13-2019, 12:17 PM
RE: Modding moOde: Switching amps - by AlexTee - 01-22-2021, 09:41 AM
RE: Modding moOde: Switching amps - by starfly - 10-06-2021, 05:03 PM

Forum Jump: