Valanza – 我的Unix方式的体重追踪和分析
Valanza – my Unix way for weight tracking and anlysis

原始链接: https://github.com/paolomarrone/valanza

这是一个基于UNIX原则构建的个人、实验性的体重跟踪和分析工具——小型、专注的程序通过管道连接。作者不喜欢电子表格的复杂性,而是选择了一个利用bash、R、awk和gnuplot等工具的系统,每个工具处理特定的任务。 该系统通过一系列脚本处理体重数据:R用于安装软件包,自定义awk/R脚本用于填补空缺、计算移动平均线和低通滤波。然后,gnuplot可视化结果。数据主要通过内存命名管道快速流动,进程替换支持并行处理。 目前尚未完成,仅供个人使用,该项目探索了一种UNIX风格的传统计算器替代方案。它采用MIT许可证发布,允许免费使用、修改和分发,但不提供任何担保。

Hacker News 新闻 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Valanza – 我的 Unix 方式的体重追踪和分析 (github.com/paolomarrone) 7 分,来自 lallero317 2小时前 | 隐藏 | 过去 | 收藏 | 1 条评论 hilti 12分钟前 [–] 喜欢你的方法:小型、可组合的程序通过管道协同工作!回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

A weight tracking and analysis tool built the UNIX way: small, composable programs working together through pipes.

⚠️ This work is experimental and far from complete: it's intended for my personal fun and pleasure!

I didn't like the idea of having both data and logic in one spreadsheet. I want to write programs in the right language for the right task, not cram everything into huge formulas in a single cellspace.

This might evolve into a UNIX-style calc alternative how-to.

  • bash
  • R
  • awk
  • gnuplot
  • rc (optional)

R package installation:

Rscript -e 'install.packages(c("dplyr", "tidyr", "zoo"), repos="https://cran.r-project.org")'

or

  1. interpolate_lin.R - Fills gaps in weight data
  2. mov_avg.awk - Computes moving average
  3. lp1.awk - Applies first-order low-pass filter
  4. gnuplot - Visualizes all signals

Data flows through named pipes in RAM (when possible). Process substitution splits the stream into parallel filters, then paste recombines them.

alt text

MIT License

Copyright (c) 2026 Paolo Marrone

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

联系我们 contact @ memedata.com