@trickfilm400/cs141-ups-mangement-card
Version:
Node.JS API for CS141 Management Card for UPS Systems
24 lines (23 loc) • 612 B
TypeScript
export interface IAPIResponseData {
report: {
time: string;
refresh: number;
_platform: string;
};
ups: {
_oemViewName: string;
_selected_ups_id: number;
valtable: Record<string, string | string[] | number | number[]>;
};
}
export declare class CS141 {
private readonly host;
private readonly username;
private readonly password;
private headers;
private readonly axios;
constructor(host: string, username: string, password: string);
private request;
handleRequest(): Promise<IAPIResponseData>;
private login;
}