Re: [PD] Using netsend to send url / text to turn a device on and off

2019-01-24 Thread Marco Hugo Schretter
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

Re: [PD] Using netsend to send url / text to turn a device on and off

2019-01-24 Thread RT
Thanks I made those changes. I thought I would be able to pick up Pd again after several years of not using it. CLEARLY I was wrong :-) . I'm going to go back and re-watch Rafael Hernandez Pd tutorials again https://www.youtube.com/playlist?list=PL12DC9A161D8DC5DC They where very helpful several

Re: [PD] Using netsend to send url / text to turn a device on and off

2019-01-24 Thread Christof Ressi
you can actually use [fudiformat -u] to omit the separator (; + newline), so you wouldn't need [list split] > Gesendet: Donnerstag, 24. Januar 2019 um 20:41 Uhr > Von: "IOhannes m zmölnig" > An: pd-list@lists.iem.at > Betreff: Re: [PD] Using netsend to send url / text to turn a device on and

Re: [PD] Using netsend to send url / text to turn a device on and off

2019-01-24 Thread IOhannes m zmölnig
On 1/24/19 10:14 PM, RT wrote: > Thanks all this really helps, my toggle / select is a little messy please don't! switching the toggle to 1 will: - send an "ON" message to the device - send an "OFF" message to the device - send a "connect" message to netsend - send an "ON" message to the device

Re: [PD] Using netsend to send url / text to turn a device on and off

2019-01-24 Thread RT
Thanks all this really helps, my toggle / select is a little messy but it turns my Shelly1 device on and off from PureData. Thanks #N canvas 300 179 710 697 10; #X msg 241 261 disconnect; #X floatatom 303 622 0 0 0 0 - - -; #X obj 329 203 fudiformat; #X obj 331 255 t l l; #X obj 359 293 list

Re: [PD] Using netsend to send url / text to turn a device on and off

2019-01-24 Thread Martin Peach
On Thu, Jan 24, 2019 at 11:36 AM RT 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

Re: [PD] Using netsend to send url / text to turn a device on and off

2019-01-24 Thread IOhannes m zmölnig
On 1/24/19 8:20 PM, RT wrote: > This is what I'm using I can connect and disconnect but the command syntax > coming out of Pd seems to be incorrect. that patch misses the argument to [list split]. the purpose of [list split] is to remove the ";\n" at the end of the FUDI-message, so we calculate

Re: [PD] Using netsend to send url / text to turn a device on and off

2019-01-24 Thread IOhannes m zmölnig
On 1/24/19 7:35 PM, Roman Haefeli wrote: > On Thu, 2019-01-24 at 18:24 +0100, Jack wrote: > >> I guess you mean [list fromsymbol] to convert symbols to their >> byte-representation ? ;) yes, of course i meant [list fromsymbol] instead of the non-existing [list totext], for converting symbols to

Re: [PD] Using netsend to send url / text to turn a device on and off

2019-01-24 Thread RT
This is what I'm using I can connect and disconnect but the command syntax coming out of Pd seems to be incorrect. #N canvas 293 155 710 697 10; #X msg 241 186 disconnect; #X floatatom 303 547 0 0 0 0 - - -; #X obj 378 555 print; #X obj 329 128 fudiformat; #X obj 329 53 symbol on; #X obj 331 180

Re: [PD] Using netsend to send url / text to turn a device on and off

2019-01-24 Thread Roman Haefeli
On Thu, 2019-01-24 at 18:24 +0100, Jack wrote: > I guess you mean [list fromsymbol] to convert symbols to their > byte-representation ? ;) Have you tried [fudiformat]? I think IOhannes actually meant it. Roman signature.asc Description: This is a digitally signed message part

Re: [PD] Using netsend to send url / text to turn a device on and off

2019-01-24 Thread Jack
Hey Johannes, I guess you mean [list fromsymbol] to convert symbols to their byte-representation ? ;) ++ Jack Le 24/01/2019 à 18:07, IOhannes m zmölnig a écrit : > On 1/24/19 5:33 PM, RT wrote: >> I'm trying to turn on and off a device using Pd by sending a URL. At the >> moment to turn the

Re: [PD] Using netsend to send url / text to turn a device on and off

2019-01-24 Thread IOhannes m zmölnig
On 1/24/19 5:33 PM, RT 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

[PD] Using netsend to send url / text to turn a device on and off

2019-01-24 Thread RT
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