[PD] Help parsing HTML with [httpget]

Philip Cunningham pcunningham.uk at googlemail.com
Sat Mar 5 10:34:30 CET 2011


Hello all,

I was working on a patch that visualises and sonifies weather data
posted online in an HTML document. I was using [httpget] to grab the
document and using [listsplit] and [symbol2list] to parse the
necessary data. However, using this method, I will often get the error
"error: unpack: type mismatch". I was wondering if someone could look
at the patch and advise me of a cleaner way of doing this or showing
me what I might be doing wrong? It works 70% the time. Initially, I
was just increasing the frequency of the [httpget] to ensure that the
data changes are captured but this method isn't very clean and would
appreciate any corrections or feedback.

Patch: http://uiu.me/6.pd
This Weather: http://vimeo.com/16472933
[httpget]: http://puredata.info/docs/tutorials/SimpleWebclient

Best wishes,
Philip Cunningham

-- 
Portfolio: http://philipcunningham.org
BrightonPD: http://unsymbol.users.anapnea.net/brightonpd/
Chipmusic: http://firebrandboy.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: york.pd
Type: text/x-puredata
Size: 6308 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20110305/07e83c55/attachment.bin>


More information about the Pd-list mailing list