Thanks guys for yours coments<div><br></div><div>There was a problem with the datatype (thanks roman and michal), python script <span id="result_box" class="short_text" lang="en"><span style="" title="">received and sent</span></span> the data like simbols. To solve the issue i cast this data to floats in python and now pd patch its working. I think my solution is really unpolite(sorry iam not a programer) but i can get the data in to pd numbers boxes. The script is adapted to the specific data feed, and this data is a vector with tree elements ( [&#39;0&#39;, &#39;2010-12-11T22:11:34.480041Z&#39;, &#39;7.6&#39;]). First I delate  second elemnt(2010-12-11T22:11:34.480041Z) because i dont know how to cast it and i dont need the date. There is the python code:</div>
<div><br></div><div><div># to receive data</div><div>import urllib2</div><div># to send on with OpenSoundControl, OSC</div><div>from simpleOSC import *</div><div>import time</div><div><br></div><div>initOSCClient(&#39;127.0.0.1&#39;, 57110)</div>
<div>while 1:</div><div>  data=urllib2.urlopen(&#39;<a href="http://api.pachube.com/v2/feeds/2791.csv?key=hereyourownkey">http://api.pachube.com/v2/feeds/2791.csv?key=hereyourownkey</a>&#39;) # this data feed has tree diferents values</div>
<div>  for l in data: </div><div>    d = l.strip().split(&quot;,&quot;, 2)</div><div>    del d[1] #this is because this variable was the date and i dont know how to cast it</div><div>    var = map(lambda x: float(x), d)</div>
<div>    print var</div><div>    sendOSCMsg(&#39;/test/num&#39;,var) #</div><div>    del var[0]  </div><div>    sendOSCMsg(&#39;/test/val&#39;,var) </div><div>    time.sleep(5) # wait here some secs</div><div><br></div><div>
the pd patch</div><div><br></div><div><br></div><div><div>#N canvas 822 23 450 476 10;</div><div>#X declare -lib mrpeach;</div><div>#X obj -103 27 import mrpeach;</div><div>#X obj -106 114 unpackOSC;</div><div>#X floatatom -105 279 0 0 0 0 - - -;</div>
<div>#X obj -100 150 routeOSC /test;</div><div>#X floatatom -36 283 5 0 0 0 - - -;</div><div>#X obj -105 68 udpreceive 57110;</div><div>#X floatatom 22 292 5 0 0 0 - - -;</div><div>#X obj -55 205 routeOSC /val /num;</div>
<div>#X obj -98 321 osc~ 440;</div><div>#X obj -85 371 dac~;</div><div>#X connect 1 0 3 0;</div><div>#X connect 2 0 8 0;</div><div>#X connect 3 0 7 0;</div><div>#X connect 5 0 1 0;</div><div>#X connect 7 0 2 0;</div><div>
#X connect 7 1 4 0;</div><div>#X connect 7 2 6 0;</div><div>#X connect 8 0 9 0;</div><div>#X connect 8 0 9 1;</div></div><div><br><br><div class="gmail_quote">2010/12/11 mark edward grimm <span dir="ltr">&lt;<a href="mailto:mgrimm@syr.edu">mgrimm@syr.edu</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">wow... looks like a lot of platforms are supported.<br>
<a href="http://community.pachube.com/software_hardware" target="_blank">http://community.pachube.com/software_hardware</a><br>
<br>
maybe a native pd external or pyext external would be nice....<br>
<br>
anyway... i would like to know if you get this working..,<br>
<br>
thanks!<br>
mark<br>
<div><div></div><div class="h5"><br>
<br>
<br>
On Sat, Dec 11, 2010 at 3:26 PM, Michal Seta &lt;<a href="mailto:mis@artengine.ca">mis@artengine.ca</a>&gt; wrote:<br>
&gt; On Sun, Dec 5, 2010 at 8:26 PM, FernandoG &lt;<a href="mailto:dataferx@gmail.com">dataferx@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Data can not get in a number box object, this error mesagge is diplayed in<br>
&gt;&gt; console:   error: gatom: no method for &#39;1&#39;<br>
&gt;<br>
&gt; I don&#39;t know simpleOSC but this code/description looks like your &#39;1&#39;,<br>
&gt; by the time it is received by Pd is untyped(?), and there fore<br>
&gt; numberbox does not know how to deal with it.   Did you try [print]?<br>
&gt; You may want to pass that output through [sprintf %i] or something<br>
&gt; similar (perhaps just [trigger float] will do?) to &#39;cast&#39; it into<br>
&gt; proper datatype.  I don&#39;t have pd handy to test but this should set<br>
&gt; you on the right track.<br>
&gt;<br>
&gt; ./MiS<br>
&gt;<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
&gt; UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
&gt;<br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
____________________<br>
mark edward grimm | m.f.a<br>
IT macintosh engineer | adjunct<br>
syracuse u. | vpa foundations | timearts<br>
<a href="mailto:mgrimm@syr.edu">mgrimm@syr.edu</a> | 315.378.2136<br>
_________________________________<br>
</font></blockquote></div><br></div></div>