<div dir="ltr"><div class="gmail_default" style="font-size:small;color:#000000"><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">Thanks all this really helps, my toggle / select is a little messy but it turns my Shelly1 device on and off from PureData.</div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">Thanks</div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">#N canvas 300 179 710 697 10;<br>#X msg 241 261 disconnect;<br>#X floatatom 303 622 0 0 0 0 - - -;<br>#X obj 329 203 fudiformat;<br>#X obj 331 255 t l l;<br>#X obj 359 293 list length;<br>#X obj 361 325 - 2;<br>#X obj 327 360 list split;<br>#X obj 327 465 list prepend send;<br>#X obj 325 521 list trim;<br>#X obj 325 567 netsend -b;<br>#X obj 325 412 list append 13 10 13 10;<br>#X obj 390 234 print;<br>#X msg 95 330 connect 192.168.1.20 80;<br>#X obj 525 398 print;<br>#X obj 432 206 print;<br>#X msg 343 159 GET /relay/0/?turn=\$1 HTTP/1.0;<br>#X obj 441 24 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0<br>1;<br>#X obj 347 100 symbol on;<br>#X obj 424 101 symbol off;<br>#X obj 433 60 select 1 0;<br>#X obj 379 34 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1<br>-1;<br>#X connect 0 0 9 0;<br>#X connect 2 0 3 0;<br>#X connect 2 0 11 0;<br>#X connect 3 0 6 0;<br>#X connect 3 1 4 0;<br>#X connect 4 0 5 0;<br>#X connect 5 0 6 1;<br>#X connect 6 0 10 0;<br>#X connect 6 0 13 0;<br>#X connect 7 0 8 0;<br>#X connect 8 0 9 0;<br>#X connect 9 0 1 0;<br>#X connect 10 0 7 0;<br>#X connect 12 0 9 0;<br>#X connect 15 0 2 0;<br>#X connect 15 0 14 0;<br>#X connect 16 0 20 0;<br>#X connect 16 0 19 0;<br>#X connect 17 0 15 0;<br>#X connect 18 0 15 0;<br>#X connect 19 0 17 0;<br>#X connect 19 1 18 0;<br>#X connect 20 0 17 0;<br>#X connect 20 0 18 0;<br>#X connect 20 0 12 0;</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 24, 2019 at 3:11 PM Martin Peach <<a href="mailto:chakekatzil@gmail.com">chakekatzil@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Thu, Jan 24, 2019 at 11:36 AM RT <<a href="mailto:ratulloch@gmail.com" target="_blank">ratulloch@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:small;color:rgb(0,0,0)"><br>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 .<br>To turn the device on I send <a href="http://192.168.1.123/relay/0/?turn=on" target="_blank">http://192.168.1.123/relay/0/?turn=on</a><br>To turn the device off I send <a href="http://192.168.1.123/relay/0/?turn=off" target="_blank">http://192.168.1.123/relay/0/?turn=off</a> <br><br></div></div></div></div></blockquote><div>If you don't have to use vanilla Pd it's easier to use [httpreq] and [tcpclient].</div><div><br></div><div>Martin</div><div><br></div></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>-- <br>|======================================================|<br>|<a href="https://stillpointx.wordpress.com/research/modulated-plasma/" target="_blank">https://stillpointx.wordpress.com/research/modulated-plasma/</a>                           <br>|======================================================|<br>"Knowledge may be the Key"<br>"But wisdom unlocks the door"<br>"Absolute Power demands absolutely nothing"<br><br>As the old maxim has it, you need find only one white crow to disprove the rule that all crows are black<br><br>"The bourgeois today burns as heretics and hangs as criminals those to whom he erects monuments tomorrow" ('Steppenwolf')</div><div><br></div><div>"There are two modes of being those in bliss and those seeking bliss,<br> may each step you take and each thought you make be made in a mindful and blissful state."<br></div><div>|======================================================|</div></div></div></div></div></div></div>