Home / GitHub Page

Diario & Awesome Notes & WebDAVNav

#21

Oups … now it’s work. But I have last issue with user_created_time and user_updated_time.

#22

My Last source : http://www.cyber-neurones.org/2019/02/diaro-app-diarobackup-xml-how-to-parse-in-python-draft-n3/

My note on REST API :

  1. Add possibility to choose ID on folder.
  2. Add possibility to choose ID on tags.
  3. Add possibility to do PUT on note to add at the end of text : [ ](:/ID_RESOURCE) . The syntax : PUT /ressources/ID_RESSOURCE/notes/ID_NOTE?token=…”
  4. Possibility to add ID of tags instead text on Notes.
#23

Last point : The software is really good, it’s really good work. I recommended it on my Twitter & Mastodon account. . https://twitter.com/CYBERNEURONES/status/1093218751745544192 & https://mamot.fr/@CYBERNEURONES/101562213452737045/ . Good job.

1 Like
#24

All this will be on the next version.

This is unlikely it will be done because it can already be done by manually appending the markdown to a note body, in either a PUT or POST call.

1 Like
#25

Thanks for the next release. And do you have an idea why user_created_time and user_updated_time isn’t UPDATE ? I can do a tcpdump if you want.

#26

Here a tcpdump :
11
-> response 1549742389782
and the data sent :
48
-> data : 1523685600000

#27

I don’t know, I can’t really make sense of the tcpdump. For debugging, it’s better if you can provide a curl request, along with response.

1 Like
#28
cat ./curl.sh 
#bin/bsh

curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"id":"ff2cc9fe6792ec8d52ed4d1585987dd0","latitude":43.621242,"longitude":8.113563,"tags":"test","title":"titre","order":1,"user_created_time":1479649895823,"author":"Diaro","body":"My Body"}' \
  http://127.0.0.1:41184/notes?token=bcf7475af70806df3e0b88dd10fcf88971e7088e3116e754e08d8a526ceeaeeb3d95d424330aab10c283eeddb7fc9f24c95472af626c03980eedfbb8d514cdeb

Result :

{"title":"titre","body":"My Body","id":"ff2cc9fe6792ec8d52ed4d1585987dd0",
"parent_id":"1acf22221d554a3fbd32c789a0a60e08",
"author":"Diaro","source":"joplin-desktop","source_application":"net.cozic.joplin-desktop",
"updated_time":1549875692535,
"created_time":1549875692535,
"user_updated_time":1549875692535,
"user_created_time":1549875692535,
"type_":1}

“user_created_time” : 1479649895823 -> 1549875692535 ?

#29

you made a POST not PUT so it’s considered as a creation if i’m not wrong

1 Like
#30

So it’s note possible to update “user_created_time” at the creation… I try with PUT.

#31

:star_struck:
It’s work !!!

"id":"ff2cc9fe6792ec8d52ed4d1585987dd0",
"parent_id":"1acf22221d554a3fbd32c789a0a60e08",
"title":"titre",
"body":"My Body",
"created_time":1549875692535,
"updated_time":1549878045048,
"is_conflict":0,"latitude":"43.62124200",
"longitude":"8.11356300","altitude":"0.0000",
"author":"Diaro","source_url":"",
"is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop",
"source_application":"net.cozic.joplin-desktop","application_data":"","order":1,
"user_created_time":1479649895823,
"user_updated_time":1549878045048,"encryption_cipher_text":"",
"encryption_applied":0,"type_":1,"tags":"test"}

So it’s necessary to do POST and after PUT with same value … it’s not logic for me , but it’s work ! Thanks.
Many Thanks .

#32

My final release : http://www.cyber-neurones.org/2019/02/diaro-app-pixel-crater-ltd-diarobackup-xml-how-to-migrate-data-to-joplin/ . Now I can do another migration :muscle: … Thanks for the support ! ( on mastodon : https://mamot.fr/@CYBERNEURONES/101574523569278720 )

1 Like
#33

Nickel, content que tu y sois parvenu. Ça fait un sacré script au final ! :smile:

1 Like
#34

N’hésite pas à le partager… je vais continuer à faire des scripts de migration.

#35

Je viens de faire un nouveau script : Import Google+ to Joplin : http://www.cyber-neurones.org/2019/02/how-to-import-data-of-google-to-joplin/ . Je voulais voir si Joplin était stable avec un grand nombre d’entrée :muscle: . https://mamot.fr/@CYBERNEURONES/101575525736793565 .

#36

Encore un script : How to import data of WordPress (Feed RSS) to Joplin ? : http://www.cyber-neurones.org/2019/02/how-to-import-data-of-wordpress-feed-rss-to-joplin/ . Le but était de faire un test avec le body_html . Test réussi :muscle: ( https://mamot.fr/@CYBERNEURONES/101580950747479185 ) .

#37

C’est cool ces scripts pour importer depuis différents blogs comme ça. Pourquoi ne pas mettre tout ça sur GitHub ou similaire ? Comme ça pourrait intéresser d’autres personnes, ensuite on pourrait poster ça sur le forum Apps pour référence.

#38

Ok, chef : https://github.com/CYBERNEURONES/Python . Je vais faire un Readme …

1 Like
#39

J’ai fait deux nouveaux programmes en Python : un pour avoir sur Google Map toutes les notes ( http://www.cyber-neurones.org/2019/02/joplin-python-gmplot-google-map-how-to-create-a-maps-with-rest-api-and-data-in-joplin/ ), et l’autre pour faire un PNG avec des PIN de toutes les notes : ( http://www.cyber-neurones.org/2019/02/joplin-python-static-map-how-to-create-a-maps-jpeg-with-rest-api-and-data-in-joplin/ ). Et cerise sur le gâteau, j’ai fait un commit sur GitHub. Le but pour moi c’était de valider la vitesse des requêtes GET sur les notes … et je dois dire que c’est le top .

#40

Nickel, c’est sympa les notes sur Google Maps aussi. Ce serait pas mal d’avoir une fonctionalité comme ça intégrée à Joplin.