[PD] Using netsend to send url / text to turn a device on and off
Marco Hugo Schretter
mco at zimt.at
Fri Jan 25 01:29:41 CET 2019
i use 2 options:
A) for osx and linux with ggee's shell
[curl -s http://192.168.1.123/relay/0/?turn=on(
|
[ggee/shell]
B) for win/lin/osx i prefer
[http://192.168.1.123/relay/0/?turn=on(
|
[mrpeach/httpreq]
|
| [connect 192.168.1.123 80(
| /
[mrpeach/tcpclient]
liebe grüße
marco
Am 24.01.19 um 21:11 schrieb Martin Peach:
> On Thu, Jan 24, 2019 at 11:36 AM RT <ratulloch at gmail.com
> <mailto:ratulloch at gmail.com>> wrote:
>
>
> I'm trying to turn on and off a device using Pd by sending a URL. At
> the moment to turn the device on I just type in a url in the browser
> and to turn it off I type in another one url .
> To turn the device on I send http://192.168.1.123/relay/0/?turn=on
> To turn the device off I send http://192.168.1.123/relay/0/?turn=off
>
> If you don't have to use vanilla Pd it's easier to use [httpreq] and
> [tcpclient].
>
> Martin
>
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
>
More information about the Pd-list
mailing list