@UnborN thanks for your help
the guide is impressiv
i have it like this, the function itself put numbers out, in the Debugview. But at the end it shows only empty graf.
[{"id":"2a09aa0f.6844be","type":"inject","z":"ac8d9bb9.eb8a58","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":240,"wires":[["a79dc749.492c48"]]},{"id":"a79dc749.492c48","type":"http request","z":"ac8d9bb9.eb8a58","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"https://www.ag.ch/app/hydrometrie/station/?id=11642","tls":"","persist":false,"proxy":"","authType":"","x":430,"y":240,"wires":[["6d58ef2.03b9e9"]]},{"id":"6d58ef2.03b9e9","type":"html","z":"ac8d9bb9.eb8a58","name":"","property":"payload","outproperty":"payload","tag":"td","ret":"text","as":"single","x":620,"y":240,"wires":[["c2a56dcc.2f77b","1cf35991.f08456","9057b2ab.e923c","8d1e6c27.b33e9"]]},{"id":"c2a56dcc.2f77b","type":"debug","z":"ac8d9bb9.eb8a58","name":"value","active":false,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload[3]","targetType":"msg","statusVal":"payload[5]","statusType":"auto","x":780,"y":140,"wires":[]},{"id":"1cf35991.f08456","type":"debug","z":"ac8d9bb9.eb8a58","name":"value","active":false,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload[4]","targetType":"msg","statusVal":"payload[5]","statusType":"auto","x":780,"y":280,"wires":[]},{"id":"9057b2ab.e923c","type":"function","z":"ac8d9bb9.eb8a58","name":"functionAbfluss","func":"let abfluss = Number(msg.payload[3].split(\" \")[0])\nnode.warn(abfluss)\nmsg.payload = {abfluss}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":800,"y":200,"wires":[["4f25a8e4.6c17c8","14e5279d.f1c088","7e1022d0.efe35c"]]},{"id":"7e1022d0.efe35c","type":"debug","z":"ac8d9bb9.eb8a58","name":"msg.abfluss","active":false,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1040,"y":220,"wires":[]},{"id":"8d1e6c27.b33e9","type":"function","z":"ac8d9bb9.eb8a58","name":"FunctionPegel","func":"// split \"426.31 m\" text into an array based on space\n// and pick only the first element that is the number in text\n// finally convert the string to actual Number\n\nlet pegel = Number(msg.payload[4].split(\" \")[0])\nnode.warn(pegel)\nmsg.payload = {pegel}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":800,"y":340,"wires":[["b6eb80fb.e3e63","1330f358.811ead"]]},{"id":"b6eb80fb.e3e63","type":"debug","z":"ac8d9bb9.eb8a58","name":"","active":false,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1040,"y":360,"wires":[]},{"id":"1330f358.811ead","type":"ui_chart","z":"ac8d9bb9.eb8a58","name":"","group":"a17fab35.733d58","order":1,"width":0,"height":0,"label":"Höhe m.ü.M.","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"x":1030,"y":320,"wires":[[]]},{"id":"14e5279d.f1c088","type":"ui_chart","z":"ac8d9bb9.eb8a58","name":"","group":"a17fab35.733d58","order":0,"width":0,"height":0,"label":"m³/s","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"--","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"x":1010,"y":180,"wires":[[]]},{"id":"4f25a8e4.6c17c8","type":"ui_gauge","z":"ac8d9bb9.eb8a58","name":"","group":"9e1250e8.866878","order":0,"width":0,"height":0,"gtype":"gage","title":"","label":"m³/s","format":"{{value}}","min":0,"max":"20","colors":["#00b500","#e6e600","#ca3838"],"seg1":"6","seg2":"8","x":1010,"y":140,"wires":[]},{"id":"a17fab35.733d58","type":"ui_group","name":"Wigger Zofingen","tab":"69f3c1f1.278078","order":1,"disp":true,"width":"8","collapse":false},{"id":"9e1250e8.866878","type":"ui_group","name":"Default","tab":"69f3c1f1.278078","order":2,"disp":true,"width":"6","collapse":false},{"id":"69f3c1f1.278078","type":"ui_tab","name":"Home","icon":"dashboard","order":1,"disabled":false,"hidden":false}]