sebferrer / life-notes Goto Github PK
View Code? Open in Web Editor NEWAndroid app - Chronic symptom tracking
Home Page: http://sebferrer.fr/life-notes
License: MIT License
Android app - Chronic symptom tracking
Home Page: http://sebferrer.fr/life-notes
License: MIT License
I would like to be able to try this app, but it is unusable currently. It appears that the scaling is off, like it expects a much larger screen because only a fraction of the app is displayed. Also it looks like some icons or buttons are not available, and only the text id shows.
See attached image.
Note that I have a OnePlus 6T with a 2340 x 1080 px at 402 ppi display. I am running a custom ROM (LuisDroid crDroid), Android 11
.
It would be useful to be able to export as a CSV to share with healthcare professionals.
I've made a node script to do this:
const converter = require("json-2-csv");
const fs = require("fs");
const input = require("./backup20230818T2113110100.json");
const flat = [];
const newRow = (date, time, logType, details) => ({
date,
time,
logType,
details,
});
for (const day of input?.days) {
// TODO: symptomOverviews
for (const symptom of day.symptoms) {
for (const log of symptom?.logs) {
flat.push(
newRow(
day.date,
log.time,
"symptom",
`${log.key}, intensity: ${log.pain}/5`,
),
);
}
}
for (const log of day.logs) {
flat.push(newRow(day.date, log.time, "note", log.key));
}
for (const med of day.meds) {
flat.push(newRow(day.date, med.time, "medication", med.key));
}
for (const meal of day.meals) {
flat.push(
newRow(
day.date,
meal.time,
"meal",
meal.detail ? `${meal.key}. ${meal.detail}` : meal.key,
),
);
}
// TODO: wakeUp and goToBed
}
flat.sort((a, b) => {
const dateTime = (n) => new Date(`${n.date}T${n.time}:00Z`);
return dateTime(b) - dateTime(a);
});
const output = converter.json2csv(flat);
fs.writeFileSync("./diary.csv", output);
To use, save the backup from the app, and copy it to your working folder as backup.json
. Save the script above as convert.js
.
Then, run:
npm install [email protected]
node ./convert.js
The output will be saved as diary.csv
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.