??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó àUdac@`sÿddlmZmZmZeZidd6dgd6dd6ZdZd Zd Z dd l Z dd l m Z dd l mZddlmZmZmZddlmZmZddlmZmZmZddlmZeƒZdefd„ƒYZd S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust communityt supported_bysÇ lookup: cpm_metering author: "Western Telematic Inc. (@wtinetworkgear)" version_added: "2.7" short_description: Get Power and Current data from WTI OOB/Combo and PDU devices description: - "Get Power and Current data from WTI OOB/Combo and PDU devices" options: _terms: description: - This is the Action to send the module. required: true choices: [ "getpower", "getcurrent" ] cpm_url: description: - This is the URL of the WTI device to send the module. required: true cpm_username: description: - This is the Username of the WTI device to send the module. cpm_password: description: - This is the Password of the WTI device to send the module. use_https: description: - Designates to use an https connection or http connection. required: false default: True choices: [ True, False ] validate_certs: description: - If false, SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates. required: false type: bool default: true use_proxy: description: Flag to control if the lookup will observe HTTP proxy environment variables when present. type: boolean default: True startdate: description: - Start date of the range to look for power data required: false enddate: description: - End date of the range to look for power data required: false s„ # Get Power data - name: Get Power data for a given WTI device - debug: var: lookup('cpm_metering', 'getpower', validate_certs=true, use_https=true, cpm_url='rest.wti.com', cpm_username='restpower', cpm_password='restfulpowerpass12') # Get Current data - name: Get Current data for a given WTI device - debug: var: lookup('cpm_metering', 'getcurrent', validate_certs=true, use_https=true, cpm_url='rest.wti.com', cpm_username='restpower', cpm_password='restfulpowerpass12') # Get Power data for a date range - name: Get Power data for a given WTI device given a certain date range - debug: var: lookup('cpm_metering', 'getpower', validate_certs=true, use_https=true, cpm_url='rest.wti.com', cpm_username='restpower', cpm_password='restfulpowerpass12', startdate='08-12-2018' enddate='08-14-2018') sn _list: description: The output JSON returned from the commands sent returned: always type: str N(t AnsibleError(t LookupBase(tto_texttto_bytest to_native(t HTTPErrortURLError(topen_urltConnectionErrortSSLValidationError(tDisplayt LookupModulecB`seZdd„ZRS(c K`sÉ|jd|ƒg}x¬|D]¤}ttjtdj|jdƒ|jdƒƒddƒƒƒ}d}|jdƒdk ròt|jdƒƒd krò|jd ƒdk ròt|jd ƒƒd kròd |jdƒd |jd ƒ}qòn|jd ƒt krd}nd}|dkr>d||jdƒf} n8|dkrfd||jdƒf} nt d|ƒ‚t|ƒd kr•| |7} nt j d| ƒyFt | d|jdƒd|jdƒdidd6d|d6ƒ} Wn¹tk r} t d| t| ƒfƒ‚n‹tk rK} t d| t| ƒfƒ‚n]tk ry} t d | t| ƒfƒ‚n/tk r§} t d!| t| ƒfƒ‚nX|jt| jƒƒƒqW|S("Ntdirects{0}:{1}t cpm_usernamet cpm_passwordterrorstsurrogate_or_stricttt startdateitenddates ?startdate=s &enddate=t use_httpsshttps://shttp://tgetpowers%s%s/api/v2/config/powertcpm_urlt getcurrents%s%s/api/v2/config/currents Power command not recognized %s scpm_metering connecting to %stvalidate_certst use_proxytheaderssapplication/jsons Content-TypesBasic %st AuthorizationsReceived HTTP error for %s : %ssFailed lookup url for %s : %ss4Error validating the server's certificate for %s: %ssError connecting to %s: %s(t set_optionsR tbase64t b64encodeR tformatt get_optiontNonetlentTrueRtdisplaytvvvvRR R RRRtappendtread( tselfttermst variablestkwargstretttermtautht additionaltprotocoltfullurltresponsete((sG/usr/lib/python2.7/site-packages/ansible/plugins/lookup/cpm_metering.pytrunysB 000*    ' N(t__name__t __module__R)R<(((sG/usr/lib/python2.7/site-packages/ansible/plugins/lookup/cpm_metering.pyRws(t __future__RRRttypet __metaclass__tANSIBLE_METADATAt DOCUMENTATIONtEXAMPLEStRETURNR%tansible.errorsRtansible.plugins.lookupR tansible.module_utils._textR R R t+ansible.module_utils.six.moves.urllib.errorR Rtansible.module_utils.urlsRRRtansible.utils.displayRR,R(((sG/usr/lib/python2.7/site-packages/ansible/plugins/lookup/cpm_metering.pyts"  3%