bitfocus / companion-module-generic-http

Generic HTTP module
MIT License
9 stars 19 forks source link

add ability to send single command to multiple addresses in IP range #26

Open LIGHTUSUP opened 2 years ago

LIGHTUSUP commented 2 years ago

add ability to send single command to addresses in IP range

josephdadams commented 2 years ago

What kind of range? The last octet?

LIGHTUSUP commented 2 years ago

Yes for instance…. 192.168.2.xxx

The last range of numbers.

On Fri, May 6, 2022 at 11:52 AM Joseph Adams @.***> wrote:

What kind of range? The last octet?

— Reply to this email directly, view it on GitHub https://github.com/bitfocus/companion-module-generic-http/issues/26#issuecomment-1119810914, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXWVRZBKRLAKHR3BP4L5ZSTVIVE5DANCNFSM5OCAGBIQ . You are receiving this because you authored the thread.Message ID: @.***>

otelom commented 10 months ago

What if, you create an action that will ask the user for the first and last IP of the range? That way it would know exactly what range the user wants.

peternewman commented 3 months ago

Is this for resilience purposes (i.e. only two say), or as a general control thing (e.g. addressing multiple devices)? Personally I'd say just being able to list multiple IPs would be more versatile and likely not much more work, as others may have addressing structured that you want to send to 192.168.1.100 and 192.168.2.100, or every 10th one or whatever. You could always optionally add a more efficient way to specify 192.168.2.1 to 192.168.2.25 to cover this specific use case.