I suppose I could take a few hours, or days, and cobble together all the functions needed to access Readwise and insert data into a Tinderbox file, but it would be very helpful for me – and I think others who asked for this feature – if @eastgate or someone could just post a sample Tinderbox file that has all the code needed to make the calls to Readwise and add the data to notes.
IOW, I’m asking someone to please write and donate to the Tinderbox community a kind of “plugin” for Readwise. Sans the API key, of course, which I’ll furnish myself.
Of course, absent all that, the alternative that doesn’t need 9.6 is to just watch the folder in my Obsidian vault that automatically syncs with Readwise thanks to the “Readwise Official” plugin that the Readwise owner provided for Obsidian a few years ago.
Almost. It works for some backstage people. Specific highlights in Readwise crash for other backstage people. This feels like a 2-3 day problem, but not worse.
There is! And I was just about to release the interim result for broader testing, when I had to pull back one of the latest changes :(. So, a few days more testing things backstage.
(The problem arises from note titles with reasonable names that could, unfortunately, be mistaken for Tinderbox expressions.).
The notes for each book are easy to explode if you want to have a separate note for each highlight, rather than each book.
There are LOTS of opportunities for refinement — better feedback during downloads, better problem-solving for things like “you forgot to paste your Readwise access code” or “Readwise doesn’t think that code is valid”.
I think there’s lots of opportunity for doing interesting studies of one’s reading…
Readwise buckets input as “Books” (e.g., input via Kindle), “Supplemental Books” (“popular highlights” made by others), “Articles” (e.g., captures via Readwise Reader), and Tweets. For each of these items in these buckets, we can have highlights, and highlights can have notes and tags assigned. It appears the current Readwise Tinderbox importer doesn’t distinguish books from articles, or the other types. And, the importer doesn’t capture comments (or perhaps it does but doesn’t indicate something is a comment).
The Readwise import to Obsidian, and recently added interface with Tana, does distinguish these elements in the Readwise database, so perhaps there is API tweaking that could add that level of detail to the Tinderbox import.
maybe a switch from $KeyAttributes to $DisplayedAttributes in your functions would be a good thing. Same with String.json().
I found var:string nextPage=what.json.jsonValue(“nextPageCursor”); is jsonValue() identical to json[keyStr]?
You are using the default containers like $MyDictionary or $MyBoolean a lot. Wouldn’t it be a more readable approach to create new custom attributes?! And why are you using $MyDictionary[key] instead of declaring new custom attributes (and I love dictionaries - just wonder why you use them here)?
Sorry - no useful comments - I just walked through your code to get some ideas how to…
Seems the different is .jsonValue() can use a JSN object path, whereas `.json[“key”] can only use a key name. Anyeay, function is as in the post above until the new note is fully written.
Interesting…csv export in Readwise brings over highlight_color(s) which show up nicely in Tinderbox,hightlight_date, highlight_location, MyTags and MyNotes. In addition, it seems at first glance that my article highlights (from Readwise Highlighter a companion for Chrome allowing me to highlight articles within the browser and import into my Readwise collection…very nice) these highlights are in in the color black allowing further differentiation. I also tag my articles as articles to differentiate. HTH
Readwise seems to have created multiple, often confusingly different, methods to get data out of a Readwise database. Part of it, IMO, is that Readwise Reader/Highlighter and the Readwise main web app are still on separate tracks from a UI/UX perspective. It’s a small team, so maybe sooner or later they will merge the UI, the user experience, and ultimately the API and export methods.
Completely agree, not as integrated as I would expect. I have been using Readwise for years. My usual workflow is to import everything into my DEVON. I usually use .md as import into DEVON and csv into Tinderbox which is nice because it retains the color of my highlights (yellow and red primarily). I have not messed with the API because it is so simple.
Back to the highlighter, when I get lazy and just want to read from the browser instead of importing into DEVON, I am noticing, the highlighter will also capture highlighted images within the web page or article, then, if exported as .md it shows up in DEVON. Pretty sweet. Anyway, just a new workflow I am trying on recently.
Question, I can’t seem to get the Readwise import to pull in article highlights. It only seems to be important booking highlights. Can someone help me with what I might be missing?
Tried to test this and cannot get the sample file (above) to work at all in v10. It just hangs for a long time then nothing from Readwise appears. In fairness, this was a test exercise and if Readwise changes its API then the integration in the sample file will likely break.
FWIW, I find the “Official” Readwise plugin in Obsidian to be reliable because, of course, Readwise built it themselves. I then use the Tinderbox File > Watch > Folder From Finder feature to watch the Articles, or Books, folder that Readwise creates. This method is always reliable. Since Obsidian is free, and the plugin is free, there’s no extra cost burden.