trale icon indicating copy to clipboard operation
trale copied to clipboard

My script to import from openScale

Open qqii opened this issue 10 months ago • 1 comments

I wanted to try this app, so here are some commands you can run in termux to convert an openscale.db:

pkg install sqlite
sqlite3 openScale.db "SELECT strftime('%Y-%m-%dT%H:%M:00.000', datetime / 1000, 'unixepoch') || ' ' || weight FROM 'scaleMeasurements'" > trale.txt

It seems that openScale does not store the seconds or ms, so those have been hard coded to 0.


I really love the UI, and I would love if this app supported more fields (body fat, water, waist) and importing from other apps like openScale!

qqii avatar Jan 30 '25 22:01 qqii

@gwosd how about adding this to the Readme in an FAQ section?

braniii avatar Mar 09 '25 17:03 braniii

In termux, you have to setup storage first. Run termux-setup-storage and then cd storage into the dir where the db is stored before the conversion.

markushhh avatar Jul 25 '25 12:07 markushhh

It should be possible to import the openScale csv export into trale directly. Is there any benefit of using the sqlite database?

braniii avatar Jul 25 '25 12:07 braniii

Looks like it's the same.

markushhh avatar Jul 25 '25 12:07 markushhh

That's great! Closed by #227.

qqii avatar Aug 05 '25 11:08 qqii