nrgpy.cloud_api.sites module
nrgpy.cloud_api.sites module#
- class nrgpy.cloud_api.sites.cloud_sites(client_id, client_secret)[source]#
Bases:
nrgpy.cloud_api.auth.cloud_api
Find NRG Cloud sites associated with a user.
Examples
>>> import nrgpy >>> client_id = 'go to https://cloud.nrgsystems.com for access' >>> client_secret = 'go to https://cloud.nrgsystems.com for access' >>> sites = nrgpy.cloud_sites(client_id=client_id, client_secret=client_secret) >>> sites.sites_df siteId siteNumber siteDescription project loggerSerialNumber 0 33 6716 SunnyDog SunnyDog 820606716 1 213 1234 Suntastic South Suntastic 820601234 >>> sites.get_siteid(site_number=6716) 33
- Attributes
- client_idstr
available in the NRG Cloud portal
- client_secretstr
available in the NRG Cloud portal
- sites_listlist of dict
- sites_dfpandas dataframe