i.e. if you replace the function node with a debug node does it return what you what you would expect? (generally I tend to write it to a file and use a text editor to view given the length of the data returned)
Usually you need to delete "msg.headers" between http requests. But when the http request nodes return what you would expect there is a HTML node that will allow you to extract an item from within the html that is returned.
[ { "id": "17f399e0.ce0ee6", "type": "http request", "z": "14436238.a7959e", "name": "Faan", "method": "GET", "ret": "txt", "tls": "", "x": 390, "y": 160, "wires": [ [ "cfaf9e83.56b0b" ] ] }, { "id": "cfaf9e83.56b0b", "type": "html", "z": "14436238.a7959e", "name": "extract", "tag": "#minutes", "ret": "attr", "as": "single", "x": 530, "y": 160, "wires": [ [ "2a669e13.5ec4d2" ] ] }, { "id": "4503c16c.416f1", "type": "inject", "z": "14436238.a7959e", "name": "", "topic": "trigg", "payload": "gris", "payloadType": "flow", "repeat": "", "crontab": "", "once": false, "x": 240, "y": 160, "wires": [ [ "17f399e0.ce0ee6" ] ] }, { "id": "6d0f1448.6abaac", "type": "debug", "z": "14436238.a7959e", "name": "", "active": true, "console": "false", "complete": "true", "x": 810, "y": 160, "wires": [] }, { "id": "2a669e13.5ec4d2", "type": "json", "z": "14436238.a7959e", "name": "", "x": 670, "y": 160, "wires": [ [ "6d0f1448.6abaac" ] ] }]
{"_msgid": "571edddc.a8e124", "topic": "trigg", "payload": "[{\"width\":\"7%\",\"id\":\"minutes\",\"title\":\"Realtid.\"},{\"width\":\"7%\",\"id\":\"minutes\",\"title\":\"Realtid.\"}]", "statusCode": 200, "headers": { "connection": "close", "date": "Fri, 26 Aug 2016 06:49:08 GMT", "server": "Microsoft-IIS/6.0", "x-powered-by": "ASP.NET", "content-type": "text/html", "set-cookie": [ "ASPSESSIONIDQSDTRRBT=JCBPICPDPGKBLOOGANBPKBGC; path=/" ], "cache-control": "private", "transfer-encoding": "chunked" }}
{ minutes: 7 },{ minutes: 15 }
[{"id":"ab30d271.85f66","type":"http request","z":"462586cc.55d938","name":"Faan","method":"GET","ret":"txt","url":"http://www.thoreb.se/webdeparture/VL/dep.asp?stopno=2886&stopname=R%F6nnby%20C","tls":"","x":350,"y":1760,"wires":[["95484369.1f527"]]},{"id":"8dacb32b.d8a75","type":"inject","z":"462586cc.55d938","name":"","topic":"trigg","payload":"gris","payloadType":"flow","repeat":"","crontab":"","once":false,"x":200,"y":1760,"wires":[["ab30d271.85f66"]]},{"id":"aea290a2.cdce7","type":"debug","z":"462586cc.55d938","name":"","active":true,"console":"true","complete":"payload","x":690,"y":1760,"wires":[]},{"id":"95484369.1f527","type":"html","z":"462586cc.55d938","name":"","tag":"td#minutes","ret":"text","as":"multi","x":510,"y":1760,"wires":[["aea290a2.cdce7"]]}]
[{"id":"97a218de.eaf478","type":"http request","z":"8d30d201.0f52d","name":"Faan","method":"GET","ret":"txt","url":"http://www.thoreb.se/webdeparture/VL/dep.asp?stopno=2886&stopname=R%F6nnby%20C","tls":"","x":730,"y":280,"wires":[["23db2835.de8ff8"]]},{"id":"23db2835.de8ff8","type":"html","z":"8d30d201.0f52d","name":"extract","tag":"td#minutes","ret":"text","as":"single","x":870,"y":280,"wires":[["a97d1184.936d"]]},{"id":"d572d58a.dbaaa8","type":"inject","z":"8d30d201.0f52d","name":"","topic":"trigg","payload":"gris","payloadType":"flow","repeat":"","crontab":"","once":false,"x":580,"y":280,"wires":[["97a218de.eaf478"]]},{"id":"11d9a5a.f748f5a","type":"debug","z":"8d30d201.0f52d","name":"","active":true,"console":"false","complete":"true","x":1170,"y":280,"wires":[]},{"id":"a97d1184.936d","type":"function","z":"8d30d201.0f52d","name":"Trim data","func":"msg.payload = [{minutes:msg.payload[0].trim()}, {minutes:msg.payload[1].trim()}]\nreturn msg;","outputs":1,"noerr":0,"x":1020,"y":280,"wires":[["11d9a5a.f748f5a"]]}]