Skip to content

access to greenview (duall) webservice and related functionality

Notifications You must be signed in to change notification settings

ggstuart/greenview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python library for accessing Greenview web service

Installation

Download the latest source and run

python setup.py install

OR, Download and run the windows installer.

Usage

The gvUpdate project provides a script generate json files for five buildings.

Very simple example

import greenview

ws = greenview.WebService()
r = ws.GraemeLatestReading(213)
d = ws.GraemeLatestReadingDate(213)
w = ws.GraemeLatestWeek(213)

print r.to_json(indent=4)
print d.to_json(indent=4)

#compact json
print w.to_json(separators=(',', ':'))

#pretty json dumped into a file
with open('output/output.json', 'w') as outfile:
    outfile.write(w.to_json(indent=4))

About

access to greenview (duall) webservice and related functionality

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages