Apps
Cost of Living Planner
Plan income and expenses, compare costs across time periods, and keep your budget organized.
Open plannerPlan income and expenses, compare costs across time periods, and keep your budget organized.
Open plannerSaved in this browser, separately from Google Drive
Planner changes are saved locally in this browser. The local cache is independent of Google Drive sync.
The planner can save named checkpoints in browser storage so you can return to an earlier budget. Checkpoints stay on this browser and are not sent to Google Drive.
Automatic background saving and loading with Google Drive
After saving credentials, open the planner to start syncing, pull the latest file, or disconnect.
const FILE_NAME = 'Cost_of_Living_Budget_State.json';
function doGet() {
const files = DriveApp.getFilesByName(FILE_NAME);
const content = files.hasNext() ? files.next().getBlob().getDataAsString() : '{}';
return ContentService.createTextOutput(content).setMimeType(ContentService.MimeType.JSON);
}
function doPost(e) {
const body = e.postData.contents;
const files = DriveApp.getFilesByName(FILE_NAME);
if (files.hasNext()) {
files.next().setContent(body);
} else {
DriveApp.createFile(FILE_NAME, body, MimeType.PLAIN_TEXT);
}
return ContentService.createTextOutput(JSON.stringify({ ok: true })).setMimeType(ContentService.MimeType.JSON);
}