Last active
October 15, 2015 00:11
-
-
Save jcreigh/71bb9e9029245b45c55a to your computer and use it in GitHub Desktop.
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
#!/usr/bin/python | |
import requests | |
from xml.dom.minidom import parseString | |
team = "" | |
data = {"Function": "GetPropertiesOfItem", "Plugins": "nisyscfg", "Items": "system"} | |
res = requests.post("http://roborio-%s.local/nisysapi/server" % team, data) | |
d = parseString(res.content) | |
print d.toprettyxml() | |
prop = [x for x in d.getElementsByTagName("Property") if x.getAttribute("tag") == "D15C000"][0] | |
print "RoboRIO Image Version: " + prop.firstChild.data | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just fill in the team variable with your team number