Fred'ô / Diaro App : backup format

Created Mon, 04 Feb 2019 00:00:00 +0000 Modified Mon, 04 Feb 2019 00:00:00 +0000

Le format est en XML : DiarioBackup.xml , la syntaxe est la suivante :

<data version="2"><table name="diaro_folders"><r><uid>0773341a39b09938e234d0c4e2970988</uid><title>Nom du fichier</title><color>#ff921c</color><pattern></pattern></r>...</table><table name="diaro_tags"><r>   <uid>0b2cc127642c774a77e4e048278fb716</uid>   <title>Nom du tags</title></r>...</table><table name="diaro_locations"><r>   <uid>008e9d97ecbae5876ceefc3463c57753</uid>   <title>Lieu</title>   <address>Address</address>   <lat>YY.YYYYY</lat>   <lng>X.XXXXX</lng>   <zoom>10</zoom></r>...</table><table name="diaro_entries"><r>   <uid>f4526cfd9536ecc422df849bc4b69d89</uid>   <date>1475771220000</date>   <tz_offset>+02:00</tz_offset>   <title>Titre</title>   <text>Texte</text>   <folder_uid>4c4db654f97a84333d4e29fd949cbada</folder_uid>   <location_uid>85c77bb40d800da8f5a9d9777967d325</location_uid>   <tags>,28f79fcdf75cb5a3deb10ab40d1ed956,</tags>   <primary_photo_uid></primary_photo_uid>   <weather_temperature>null</weather_temperature>   <weather_icon></weather_icon>   <weather_description></weather_description>   <mood>0</mood></r>....</table><table name="diaro_attachments"><r>   <uid>0237499c90decb1cc9787ecb11718a35</uid>   <entry_uid>53b97932b1acc1b4a5be5895d22bc16d</entry_uid>   <type>photo</type>   <filename>name.jpg</filename>   <position>1</position></r>...</table></data>

Sachant qu’ensuite les photos dans dans le répertoire media/photo/ .

Mon but est de convertir cela en fichier .ENEX pour ensuite faire un import dans Joplin. J’ai vu un programme en Python assez intéressant : https://github.com/andrewheiss/nvalt2evernote “Convert plain text notes stored in Notational Velocity or nvALT to an .enex file to import into Evernote.”

A suivre.