Thank you for your donation!


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


Spotify Connect failures on Moode 4.4
#22
Great! This works fine, thnx. Although I had to hardcode the name and card number, otherwise they'll show up empty. For me this is not a problem, since I never change these. 

For future reference and others wanting to do something similar, here is the final script:

Code:
#!/usr/bin/php
<?php

set_include_path('/var/www/inc');
require_once 'playerlib.php';

$_SESSION[cardnum]=0;
$_SESSION['spotifyname']="Librespot blackbox";

sysCmd('killall librespot');
sysCmd('/var/www/vol.sh -restore'); // r44d
// reset to inactive
playerSession('write', 'spotactive', '0');
$GLOBALS['spotactive'] = '0';
sendEngCmd('spotactive0');
startSpotify();

?>
Reply


Messages In This Thread
Spotify Connect failures on Moode 4.4 - by abyrd - 12-13-2018, 05:51 PM
RE: Spotify Connect failures on Moode 4.4 - by sjoerdju - 01-08-2019, 08:27 AM

Forum Jump: