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
I managed to do this using Ruby.
http://philipcunningham.org/2011/03/05/university-york-weather-parser/
However, I'd still like to find a PD-only solution if anyone can help.
Best, Philip
On Sat, Mar 5, 2011 at 9:34 AM, Philip Cunningham pcunningham.uk@googlemail.com wrote:
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
It works fine for me. I recently added [httpreq] and [httpreceive] to the mrpeach stuff in svn, they make it easier to do http stuff. [httpreceive] outputs the status on a separate outlet so you could scan for the "expires" keyword to know when to make another request.
Martin
On 2011-03-05 04:34, Philip Cunningham wrote:
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
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list