signalk-parquet
Version:
SignalK plugin and webapp that archives SK data to Parquet files with a regimen control system, advanced querying, Claude integrated AI analysis, spatial capabilities, and REST API.
27 lines • 1.61 kB
TypeScript
import { Router, Request, Response } from 'express';
import { DataResult, PathSpec } from './HistoryAPI-types';
import { ZonedDateTime } from '@js-joda/core';
import { Context } from '@signalk/server-api';
import { ParamsDictionary } from 'express-serve-static-core';
import { ParsedQs } from 'qs';
export declare function registerHistoryApiRoute(router: Pick<Router, 'get'>, selfId: string, dataDir: string, debug: (k: string) => void, app: any, unitConversionCacheMinutes?: number): void;
export declare class HistoryAPI {
private selfId;
private dataDir;
readonly selfContextPath: string;
constructor(selfId: string, dataDir: string);
getValues(context: Context, from: ZonedDateTime, to: ZonedDateTime, shouldRefresh: boolean, includeMovingAverages: boolean, convertUnits: boolean, convertTimesToLocal: boolean, timezone: string | undefined, app: any, debug: (k: string) => void, req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, res: Response<any, Record<string, any>>): Promise<void>;
getNumericValues(context: Context, from: ZonedDateTime, to: ZonedDateTime, timeResolutionMillis: number, pathSpecs: PathSpec[], includeMovingAverages: boolean, debug: (k: string) => void): Promise<DataResult>;
private mergePathData;
private addMovingAverages;
private buildValuesWithMovingAverages;
/**
* Apply unit conversions to the data result
*/
private applyUnitConversions;
/**
* Convert all timestamps in the data result to a target timezone
*/
private convertTimestamps;
}
//# sourceMappingURL=HistoryAPI.d.ts.map