Replicating Weather API
-
dmitriyc
- Member
- Posts: 84
-
Blaakk
- Member
- Posts: 96
- Location: Tyne and Wear, UK
Hey.
You can use the Get-File module and use "http://wttr.in", which should give you details for your area. Then feed it to a 'CommaTxt Get Str' module and the relevant details begin at index 297. Then you can just use whatever string-manipulation techniques to extract the data you want.
Or you could use the 'Shell Command' to run cURL (and/or whatever else) from a command-line which could offer more flexiblilty when parsing the returned html. Then you can just load the parsed, saved file after the fact.
You can use the Get-File module and use "http://wttr.in", which should give you details for your area. Then feed it to a 'CommaTxt Get Str' module and the relevant details begin at index 297. Then you can just use whatever string-manipulation techniques to extract the data you want.
Or you could use the 'Shell Command' to run cURL (and/or whatever else) from a command-line which could offer more flexiblilty when parsing the returned html. Then you can just load the parsed, saved file after the fact.
-
drakh
- Member
- Posts: 198
- Location: Bratislava, SK
- Contact:
i thinks best way to solve this is outside hollyhock. i reccomend to write your own application using nodejs - which is better platform for this tasks, and then translate it to OSC and let hollyhock listen to those OSC signals
