Viasat Surfbeam 2 Modem Status parser

Gets the modem status string from a local Surfbeam 2 satellite modem and converts it to a readable JSON object.

Uses standard URL http://192.168.100.1/index.cgi?page=modemStatusData

Field definition from https://github.com/blachniet/SurfStat

[{"id":"7ade7a186671a261","type":"tab","label":"Surfbeam 2","disabled":false,"info":"","env":[]},{"id":"f4e2620436f36e25","type":"http request","z":"7ade7a186671a261","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://192.168.100.1/index.cgi?page=modemStatusData","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":530,"y":300,"wires":[["a2e2c1bf22614979"]]},{"id":"a2e2c1bf22614979","type":"csv","z":"7ade7a186671a261","name":"Surfbeam 2 Status","sep":"#","hdrin":"","hdrout":"none","multi":"one","ret":"\\n","temp":"\"IP\",\"\",\"MAC\",\"\",\"SW_version\",\"\",\"HW_version\",\"\",\"Status\",\"\",\"TX_packets\",\"\",\"TX_bytes\",\"\",\"RX_packets\",\"\",\"RX_bytes\",\"\",\"Online_time\",\"\",\"LOS_count\",\"\",\"RX_SNR_db\",\"\",\"RX_SNR_percent\",\"\",\"Serial\",\"\",\"RX_pwr_dbm\",\"\",\"RX_pwr_percent\",\"\",\"Cable_resistance_ohm\",\"\",\"Cable_resistance_percent\",\"\",\"ODU_status\",\"\",\"Cable_attenuation_db\",\"\",\"Cable_atenuation_percent\",\"\",\"IFL_type\",\"\",\"Part_number\",\"\",\"URL1\",\"\",\"URL2\",\"\",\"unknown1\",\"\",\"HTML1\",\"\",\"HTML2\",\"\",\"unknown2\",\"\",\"unknown3\",\"\",\"Page_load_time\",\"unknown4\",\"unknown5\"","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":730,"y":300,"wires":[["3eac074ebeb7c6d9"]]},{"id":"3eac074ebeb7c6d9","type":"debug","z":"7ade7a186671a261","name":"debug 17","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":920,"y":300,"wires":[]},{"id":"f07314a172680930","type":"inject","z":"7ade7a186671a261","name":"","props":[{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":370,"y":300,"wires":[["f4e2620436f36e25"]]}]

Flow Info

Created 1 year, 11 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • csv (x1)
  • debug (x1)
  • http request (x1)
  • inject (x1)
Other
  • tab (x1)

Tags

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