pr3y / Bruce

Predatory ESP32 Firmware
https://bruce.computer
GNU Affero General Public License v3.0
469 stars 78 forks source link

Feature request: repeated signal sending #294

Open bisaw37 opened 2 weeks ago

bisaw37 commented 2 weeks ago

I think it would be very nice to have a way to, when sending anything via RF or IR, repeatedly send a signal over and over until manually stopped. You could place this in the menu when you choose a file to send via SD card or littleFS, or in the actual send area for RF or IR (both would be better for redundancy). This isn't really a very necessary thing to have but it could be useful in many circumstances.

eadmaster commented 2 weeks ago

this can easily be done via a js script

e.g.


curr_filename = dialogPickFile("/");
repeats = keyboard("1", 99, "repeats?");
repeats_int = Number(repeats);  // parseInt() also works 
if(repeats_int != NaN) {
for( var i=0 ; i < repeats_int; i++ ) {
    irTransmitFile(curr_filename);  // change to subghzTransmitFile for RF
 }
}