Timezone
Import OPBNOS API
from opbclient import opb_api as opbapi
Initialize client
Use the appropriate JSON file that corresponds to the targetted device name. This JSON file should contain request body parameters corresponding to any potential configuration/post requests.
node = opbapi.connect_to('SN2010')
Configure Timezone
In order to configure Timezone information, the API, configTimezone(), must be invoked with appropriate parameters in dictionary format within the parameter 'dt'.
node.configTimezone(dt = {"timezone": "Asia/Kolkata"})
The below table lists and describes input attributes:
Attribute | Values | Description |
---|---|---|
"timezone" | "Asia/Kolkata" | indicates preferred timezone |
Note: Output of clock API
API will not produce any output unless the below status code in produced, indicating a server error.
Status : 500 -> Response : b'500'