Commit Graph

22 Commits

Author SHA1 Message Date
Mario Zechner
b4ac2bed8f Fix poisoned ground truth data... 2023-10-17 01:42:02 +02:00
Mario Zechner
16958db8ce -s flag for server to skip data fetching 2023-09-19 21:57:09 +02:00
Jan Polák
3b9fc43161 Localization fixes 2023-09-17 19:48:29 +02:00
Jan Polák
f36b44fc42 Translate strings in JavaScript 2023-09-17 19:21:42 +02:00
Jan Polák
d2ae0cc575 Translate all static html files into English and Czech 2023-09-17 17:13:14 +02:00
Mario Zechner
7f3561d719 Closes #118, poor man's logging and link to log file in footer. 2023-06-28 20:57:57 +02:00
Mario Zechner
d85311c4b5 Write CSV to site output, not data... 2023-06-23 23:12:34 +02:00
Mario Zechner
f5940dcd79 CSV export, for details see https://docs.google.com/document/d/1Q5OWJOICXjSzTEIHBZgJl1p3FsiWFO0lzXIuwGbXBck/edit#heading=h.2nh5hygulv36 2023-06-23 23:01:03 +02:00
Mario Zechner
303d25ccb5 Categories for Billa & Spar, infra to add catgories for other stores.
Billa maps directly to the canonical categories. Spar uses a mapping file stores/spar-categories.json.

Each store has a generateCategoryMapping() function which is called once in analysis.js:updateData() and analysis.js:replay(). The function is responsible for

* Fetching the latest categories
* Merging them with already mapped categories
* Report new categories that haven't been mapped yet
* Report categories that have been mapped but are no longer part of the latest set of categories
* Save the merged mappings to disk

This schema might not work for all stores, in which case updateData() and replay() will use a knn approach to figure out the category for an item. See #81
2023-06-21 01:29:00 +02:00
Mario Zechner
6569b17da2 Remove binary encoding, web worker, clean-up. 2023-06-18 23:23:02 +02:00
Mario Zechner
ea5c133003 Binary compression (it's worse), unit prices in charts, small improvements. 2023-06-16 16:01:13 +02:00
Mario Zechner
228b13d1e4 Try to fix pages. 2023-06-15 21:41:19 +02:00
Mario Zechner
bd1fa721e4 Settings page and settings for default selected stores, chart start date, and chart type. 2023-06-15 21:12:01 +02:00
Mario Zechner
6281e66dc7 Various improvements, perf, style, live-reload. 2023-06-15 19:25:35 +02:00
Mario Zechner
4781ee510f Schedule fetch at 5 GMT. 2023-06-12 07:27:27 +02:00
Mario Zechner
6c8993d3de Don't await bundling in server. 2023-06-08 15:14:56 +02:00
Mario Zechner
5240ab2a46 Fix blocking updateData when SKIP_FETCHING_STORE_DATA is set in env. 2023-06-08 15:14:06 +02:00
Mario Zechner
ec3c8f4ed3 WIP esbuild, bundling, components. 2023-06-08 13:48:08 +02:00
Mario Zechner
a728615eff Update README, remove package.sh, let server generate latest-canonical.json. 2023-06-07 16:57:44 +02:00
Werner Robitza
4e739b98e5 improve node environment handling and CLI
Add proper CLI flags to avoid having positional CLI args. Allow setting options via ENV for other deployments.

Improve README

Split up node environment so that dev/prod can be handled differently in the future.
2023-06-07 14:14:26 +02:00
Mario Zechner
2ef5be9e9b Server-side generation with watcher and live-reload. pages.js still broken. 2023-06-03 23:46:43 +02:00
Mario Zechner
d357caf7f1 First pass, everything is broken. 2023-06-03 22:00:52 +02:00