ififfy / flipflip

Random slideshow of local images. Electron app for Mac/Windows/Linux
MIT License
157 stars 43 forks source link

Add support for connected devices #284

Open musichypno opened 3 years ago

musichypno commented 3 years ago

It could open up a whole new capability if this had integration with buttplug.io, xtoys.app, or some other peripheral interfaces.

StarrHelixx commented 3 years ago

This is a great idea, will definitely be trying to do this in the next update

musichypno commented 3 years ago

Thanks for considering this. I am sure you have a lot of great ideas on how to integrate these and I will be happy with whatever capabilities are added. flipflip has so many powerful features it really allows for almost limitless ways to integrate with connected devices. A few ideas I had were:

  1. Ability to control devices based on time within the scene.
  2. Control devices based on key words and when the text script displays them it will trigger the device.
  3. Allow pictures from a specific library trigger devices
  4. Add something similar to text scripts. the new type would be a script that when voice recognition identifies it as being repeated audibly (or not being repeated), triggers the device.
  5. Allow certain tones/frequencies to control devices.
  6. Allow the devices to be triggered/sync'd with various effects (strobe, zoom, timing, etc.)

These are just ideas. I know some of these are more difficult than others and are likely unreasonable requests. Also some, have elements that would rely on the other applications functionality and not necessarily need to be implemented in flipflip.

musichypno commented 3 months ago

I figured out how to do most of the output type of actions using the Script capability. By utilizing the load and playAudio I was able to control/sync commands utilizing xtoys (web-based) or node-red (local). For xtoys I was able to utilize their webhook interface to receive the FlipFlip script load commands to pass commands to an xtoys script to perform the operations. For node-red I utilized the 'http in' node to receive the FlipFlip script load commands and utilized the buttplug-js module within a 'function' node to perform the operations via Intiface Central. This adds some interesting additional capabilities. It works great on the first time running a scene but if a scene is ran a second time via some next scene loop while playing, I am running into issues. I am still working on the input type actions.

If anyone is interested I could provide more details.

esranonff commented 1 month ago

@musichypno I'd definitely be interested in this