dgrebb / dboard

A little live data dboard for an empty wall or screen; TV, Tablet, Phone, Projector, Kiosk.
0 stars 0 forks source link

FEAT: BE - WiiM / Audio Control and Playhead Component Integrations #23

Closed dgrebb closed 4 months ago

dgrebb commented 4 months ago

use relativeTimePosition /totalTime to get % value for playhead animation create playhead component, state, etc. update types and data handlers with new percentPlayed: number and refreshInterval: number properties consume new properties and refactor

art should start fading out 2s before song end
art should fade in on next song start
text should be adjusted to a similar animation

It's this easy: {{PROTOCOL}}://{{IP}}/httpapi.asp?command=setPlayerCmd:pause

const requestOptions = {
  method: "GET",
  redirect: "follow"
};

fetch("https://10.0.0.0/httpapi.asp?command=setPlayerCmd:pause", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));

Documentation

Add integration with WiiM AirPlay for remote control of Apple Music.

# WiiM Control4 Apple Music/System Audio Control

- Control4 Two-Way Web Driver - Forum Conversations - npm homebridge control4 package

dgrebb commented 4 months ago

There's a significant amount of improvement that came out of this, as well as the discovery of the SOAP API:

SOAP Service Details

Modal Gradient Generation from Art

Image