Last active
May 12, 2020 18:11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GetObserverIP[ip_] := Module[{wx, ins, raw}, | |
wx = Import["http://" <> ip <> "/livedata.htm", "XMLObject"]; | |
ins = Cases[wx, XMLElement["input", _, _], Infinity]; | |
raw = Flatten[ | |
Map[{"name" -> "value"} /. #[[2]] &, ins[[1 ;; -6]]]]; | |
Quiet[MapAt[ToExpression, | |
MapAt[DateObject[#] &, raw, {1, 2}], {8 ;; -1, 2}]]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very hacky and dependent on the web page as dumped from firmware version 4.5.2 and beyond...