brantje / nextnote

A full Evernote / OneNote style WYSIWYG note editor for Nextcloud / ownCloud. Join our telegram at: https://t.me/NextNote
GNU Affero General Public License v3.0
163 stars 19 forks source link

Feature Request: Import Notes from Synology Note Station (*.nsx) #111

Closed mikedolx closed 2 years ago

mikedolx commented 6 years ago

Hi,

first of all i need to get one thing off my chest: "Yay, finally a WYSIWYG editor for Nextcloud!".

Ok, to my Feature Request. Currently i am using Synology Note Station link to manage all my Notes. I would like to import all my notes from Synology Note Station client and import them into Nextnote.

It is possible to export notebooks from SNS into *.nsx files. As it seems these files are nothing more than zip files containing the following content:

the content of each file is json formatted. The content of a note is 'as it seems' HTML formatted.

Please find attached the exported notebook in nsx format - i had to zip it, so don't get confused :-).

I could write a small command line tool, that allows to convert from nsx to nextnote. Unfortunately i am only into .NET and C#. I guess it would be better to have the importer/converter directly in nextnote, but my skills are limited :-(.

Regards,

Michael

config.json example

{
"note": 
    [
        "note_RW5jcnlwdGVkIE5vdGUgLSBWZXJzY2hs_HNzZWxuMDIyOTg3NTYwMg==",
        "note_Tm90aXogb2huZSBUaXRlbDE1MjQ0MjgwMTcxNTk=",
        "note_Tm90aXogb2huZSBUaXRlbDE1MjQzODcyMzc0MTA=",
        "note_Tm90aXogb2huZSBUaXRlbDE1MjQzODcyMDE5NDU=",
        "note_Tm90aXogb2huZSBUaXRlbDE1MjQzODY3NTQzNjc="
    ],
"notebook": 
    [
        "nb_VGVzdDE1MjQzODY5NDM5OTQ="
    ]
}

notebook example

{
    "category": "notebook",
    "title": "Test",
    "ctime": 1524386947,
    "mtime": 1524386947,
    "stack": ""
}

note example:

{
    "category": "note",
    "parent_id": "nb_VGVzdDE1MjQzODY5NDM5OTQ=",
    "title": "Test Note",
    "thumb": null,
    "mtime": 1524386765,
    "ctime": 1524386777,
    "latitude": 0,
    "longitude": 0,
    "encrypt": false,
    "attachment":   
},
    "brief": "test 123\n",
    "content": "<div>test 123</div>",
    "tag": []
}

note example with picture attachment

{
    "category": "note",
    "parent_id": "nb_VGVzdDE1MjQzODY5NDM5OTQ=",
    "title": "Test Note with pictures",
    "thumb": "_WVlZs4gzR3l_t9MrLS65fw",
    "mtime": 1524387232,
    "ctime": 1524387211,
    "latitude": 0,
    "longitude": 0,
    "encrypt": false,
    "attachment": {
        "_WVlZs4gzR3l_t9MrLS65fw": {
            "md5": "c16b26caf3e353706cf7513c14ce01ba",
            "name": "ns_attach_image_51101524387232366.png",
            "size": 375393,
            "width": 640,
            "height": 400,
            "type": "image/png",
            "ctime": 1524380197,
            "ref": "MTUyNDM4NzIzMjQxNG5zX2F0dGFjaF9pbWFnZV81MTEwMTUyNDM4NzIzMjM2Ni5wbmc="
        }
    },
    "brief": "",
    "content": "<div><img class=\" syno-notestation-image-object\" src=\"webman/3rdparty/NoteStation/images/transparent.gif\" border=\"0\" ref=\"MTUyNDM4NzIzMjQxNG5zX2F0dGFjaF9pbWFnZV81MTEwMTUyNDM4NzIzMjM2Ni5wbmc=\" adjust=\"true\" /></div>",
    "tag": []
}

20180423_135232_794.zip