Skip to content

Instantly share code, notes, and snippets.

Created August 25, 2018 14:38
What would you like to do?
Gegevens Goodwe omvormer inlezen met Python
import json
import urllib
jsonfile = json.load(urllib.urlopen(''))
except ValueError:
print 'Error data kan niet geladen worden...'
print 'Current: ' + jsonfile[0]['currentPower']
print 'capacity: ' + jsonfile[0]['capacity']
print 'Today: ' + jsonfile[0]['value_eDayTotal']
print 'Total: ' + jsonfile[0]['value_eTotal']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment