Skip to content

Instantly share code, notes, and snippets.

@jcreigh
Last active October 15, 2015 00:11
Show Gist options
  • Save jcreigh/71bb9e9029245b45c55a to your computer and use it in GitHub Desktop.
Save jcreigh/71bb9e9029245b45c55a to your computer and use it in GitHub Desktop.
#!/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
@jcreigh
Copy link
Author

jcreigh commented Oct 15, 2015

Just fill in the team variable with your team number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment