Skip to content

AdametherzLab/datalogger-csv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š datalogger-csv β€” Your Universal Data Logger

πŸ” New Log Viewer Features

Command Line Interface

bash datalogger view
--dir ./logs
--start 2024-01-01
--end 2024-01-31
--contains error

Web Interface

bash datalogger serve --port 3000

Open http://localhost:3000 to search logs with a web UI.

πŸ“¦ Installation

bash bun add datalogger-csv

or

npm install datalogger-csv

πŸš€ Basic Usage

import { createLogger } from 'datalogger-csv';

const logger = createLogger({ filename: 'sensors.csv', headers: ['timestamp', 'value', 'unit'] });

await logger.write({ timestamp: new Date().toISOString(), data: { value: 25, unit: 'Β°C' } });

🌐 Web Viewer Guide

  1. Start the server: bash datalogger serve --port 3000

  2. Open browser to http://localhost:3000

  3. Use date filters and search box to find entries

πŸ“š Supported Formats

  • CSV (default)
  • JSON/JSONL
  • YAML

About

πŸ“ CSV data logger with automatic file rotation, compression & custom delimiters

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors