DSB-DWZ-Fetch

This flow fetches the DWZ-Chessratings-csv for a given clubid (/dwz?clubid=[clubid]) via the DSB-API (http://www.schachbund.de/php/dewis/verein.php?zps=[clubid]&format=csv) and returns it in JSON-format as this is more useful for most websites.

[{"id":"70594c89.8fa6b4","type":"http request","name":"hole DZW-csv über DSB-API","method":"GET","ret":"txt","url":"","x":535,"y":100,"z":"7f4c67ca.80b398","wires":[["1713156f.e8eceb"]]},{"id":"4ad8b660.b52748","type":"http in","name":"DWZ für Verein","url":"/dwz","method":"get","x":108,"y":100,"z":"7f4c67ca.80b398","wires":[["416d0339.be92fc"]]},{"id":"1713156f.e8eceb","type":"csv","name":"DWZ-Liste","sep":"|","hdrin":true,"hdrout":"","multi":"mult","ret":"\\n","temp":"id|nachname|vorname|titel|verein|mglnr|status|dwz|dwzindex|turniercode|turnierende|fideid|fideelo|fidetitel","x":738,"y":100,"z":"7f4c67ca.80b398","wires":[["973ac547.68c538"]]},{"id":"416d0339.be92fc","type":"function","name":"Create DSB-API-URL","func":"\nmsg.url = 'http://www.schachbund.de/php/dewis/verein.php?zps='+msg.payload.clubid+'&format=csv';\nreturn msg;","outputs":"1","valid":true,"x":300,"y":100,"z":"7f4c67ca.80b398","wires":[["70594c89.8fa6b4"]]},{"id":"973ac547.68c538","type":"http response","name":"DWZ-Daten-Response","x":921,"y":100,"z":"7f4c67ca.80b398","wires":[]}]

Flow Info

Created 9 years, 8 months ago
Updated 9 years, 4 months ago
Rating: not yet rated

Actions

Rate:

Node Types

Core
  • csv (x1)
  • function (x1)
  • http in (x1)
  • http request (x1)
  • http response (x1)

Tags

  • chess
  • dwz
  • dsb
  • api
  • json
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option