Open CodeUnit opened 4 years ago
Please post your file that you are trying to convert.
/Marcus
Sent from my iPhone
On 22 Jan 2020, at 08:54, CodeUnit notifications@github.com wrote:
Hi, I'm very happy to see a tool to generate tcx fies. But when I use your tool , I get an error message: Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on Converting training1.json to tcx Exception in thread "main" java.lang.AssertionError: Assert failed: (re-matches #"....-..-.." %) at wellness2tcx.helper$date_stringGT_yyyy_MM_dd.invokeStatic(helper.cljc:23) at wellness2tcx.helper$date_stringGT_yyyy_MM_dd.invoke(helper.cljc:23) at wellness2tcx.core$raw_data__GT_tcx_map.invokeStatic(core.cljc:76) at wellness2tcx.core$raw_data__GT_tcx_map.invoke(core.cljc:73) at wellness2tcx.core$_main.invokeStatic(core.cljc:105) at wellness2tcx.core$_main.invoke(core.cljc:102) at clojure.lang.AFn.applyToHelper(AFn.java:160) at clojure.lang.AFn.applyTo(AFn.java:144) at wellness2tcx.core.main(Unknown Source)
Is there a workaround or can you fix it please?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/alsterman/wellness2tcx/issues/8?email_source=notifications&email_token=AFROXCR32EW4GEPDIUIO7STQ673TFA5CNFSM4KKBKBPKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IH3XZAA, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFROXCSPBBP6FUT24ERSL7LQ673TFANCNFSM4KKBKBPA.
Hi Marcus, thanks for your quick response. Here are the problematic data. data.txt
Hello Marcus,
I nearly get the same error on my Windows 10 machine.
java -jar wellness2tcx-0.1.1-standalone.jar mywellness_2020-01-31_18-24.json 18:24:00 mywellness_2020-01-31_18-24.tcx
Converting mywellness_2020-01-31_18-24.json to tcx Exception in thread "main" java.lang.AssertionError: Assert failed: (re-matches #"....-..-.." %) at wellness2tcx.helper$date_string__GT_yyyy_MM_dd.invokeStatic(helper.cljc:23) at wellness2tcx.helper$date_string__GT_yyyy_MM_dd.invoke(helper.cljc:23) at wellness2tcx.core$raw_data__GT_tcx_map.invokeStatic(core.cljc:76) at wellness2tcx.core$raw_data__GT_tcx_map.invoke(core.cljc:73) at wellness2tcx.core$_main.invokeStatic(core.cljc:105) at wellness2tcx.core$_main.invoke(core.cljc:102) at clojure.lang.AFn.applyToHelper(AFn.java:160) at clojure.lang.AFn.applyTo(AFn.java:144) at wellness2tcx.core.main(Unknown Source)
Here is the output from my Java version:
java version "1.8.0_241" Java(TM) SE Runtime Environment (build 1.8.0_241-b07) Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)
Regards, Knud
I have now found the error. In the test data the date is formatted in the format YYYY-mm-dd
, whereas in the export from the german My Wellness dataset the date is formatted as dd.mm.YYYY
. It is enough to change the date to the correct format.
Please adjust the code to also accept dates in other formats.
Love the fact that someone made time to put effort in making this!
Now I'm just trying to figure out where I have to change the date. I'm lost. Also I never spend any time programming or what so ever.
Hi, I'm very happy to see a tool to generate tcx fies. But when I use your tool , I get an error message: Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on Converting training1.json to tcx Exception in thread "main" java.lang.AssertionError: Assert failed: (re-matches #"....-..-.." %) at wellness2tcx.helper$date_stringGT_yyyy_MM_dd.invokeStatic(helper.cljc:23) at wellness2tcx.helper$date_stringGT_yyyy_MM_dd.invoke(helper.cljc:23) at wellness2tcx.core$raw_data__GT_tcx_map.invokeStatic(core.cljc:76) at wellness2tcx.core$raw_data__GT_tcx_map.invoke(core.cljc:73) at wellness2tcx.core$_main.invokeStatic(core.cljc:105) at wellness2tcx.core$_main.invoke(core.cljc:102) at clojure.lang.AFn.applyToHelper(AFn.java:160) at clojure.lang.AFn.applyTo(AFn.java:144) at wellness2tcx.core.main(Unknown Source)
Is there a workaround or can you fix it please?