relay = indigo.variables[1290294647] #variable ID of relay device ID to check
if relay.value == "false":
indigo.device.turnOff(629297029) schedule relay deivice ID
MyPlugin.indigoPlugin/Contents/Resources/public/
https://myreflector.indigodomo.net/com.yourplugins.myplugin/public/
<!DOCTYPE html>
<html>
<head>
<title>Party Status</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<h1 id="partyStatus">Checking party status...</h1>
<script src="script.js"></script>
</body>
</html>
function updatePartyStatus() {
fetch('isParty.txt')
.then(response => response.text())
.then(data => {
var statusElement = document.getElementById('partyStatus');
if (data.trim() === 'true') {
statusElement.textContent = 'A party is happening!';
statusElement.style.color = '#2ecc71'; // green for party
} else if (data.trim() === 'false') {
statusElement.textContent = 'A party is not happening.';
statusElement.style.color = '#e74c3c'; // red for no party
} else {
statusElement.textContent = 'No status found.';
statusElement.style.color = '#333'; // default color
}
})
.catch(error => {
console.error('Error:', error);
});
}
// Update the status every second
setInterval(updatePartyStatus, 1000);
sudo apt-get upgrade
sudo apt-get install shairport-sync -y
MarcoGT wrote:Thanks a lot
I have to decide if go for FP1 or FP2
MarcoGT wrote:Thanks a lot
I have to decide if go for FP1 or FP2
FlyingDiver wrote:
rhanson wrote:Oh, there have been many iterations along the way: object identification from photo, reflected visible light, reflected IR, distance (light and sound), weight, and endless adjustments.
Nearly 5 years on! Wow. (We should pause for a moment of silence in remembrance of the world as we knew it 5 years ago...)...
https://www.aliexpress.com/item/1005004334992402.html
Forgot I even ordered this one, can't remember how it worked but the fact I forgot says a lot, possibly Z2M did not support it at the time.
CliveS wrote: