Replies: 1 comment 2 replies
-
It works, but you have to close Obsidian, change the setting value, and re-open Obsidian. Otherwise the setting change isn't read or is overwritten.
Actually, the HTTP server was specifically intended to be used by 3rd-party tools, so you're using it right 😄 I developed this feature solely to inject Omnisearch results into web search engines. Other Obsidian plugins can rely on Omnisearch through a direct API without using the HTTP server. So, if I understand well, what you're asking would be a client-server connection between 2 Obsidian instances? Like, you're making an Omnisearch request on "Client Obsidian", the request is forwarded to "Server Obsidian", which answers back? In that case, it would probably be simpler and cleaner to develop your own plugin that mimics Omnisearch's UI, but just queries the HTTP server, than implement it into Omnisearch. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Little side tidbit: I want to add that the way
DANGER_HttpHostis implemented right now, the "Started non-localhost HTTP server at port" message does not appear. That is due to the AND condition implemented for the message logic. (Needless to say, there isn't a proper setting for turning off localhost-only in Obsidian, and you have to alter the typescript manually to allow it.)If you set it to your LAN IP, most firewalls/routers will ban access to the port due to its obscure port number. I learned this when I used to host DOOM servers in my hay-day. That said, it's always good to add redundancy by blocking the port from anywhere but LAN.
Ideally, of course, what would be best is to do all that with end-to-end encryption. Hence, the title of this discussion! :)
Albeit, having Obsidian open is mandatory for this to work, and I suppose if I were to run end-to-end encryption, I would want it between Obsidian programs on two separate devices with separate profiles. I run around my apartment with a few old laptops that are terribly inefficient due to HDD's, low RAM capacity, low-end CPUs, etc. So, having a stripped-down version of Obsidian on those devices means I can rely on Omnisearch to run the searches on my more decent host computer.
With the current version of Omnisearch, I run a simple PowerShell script on my laptop to extract and parse the JSON data without issue. I typically pair this with the LAN functionality of Html Server (currently version 1.0.8), which allows me to put any one note on my laptop. Typically, it's a page full of quiz flashcards, stripped of plugins, and read-only. Very simple but very effective! In the end, all I'm really doing is using these tools to write notes down by hand, but if Omnisearch were able to run a client-server setup between two Obsidian programs on LAN, I would be able to stop taking hand-written notes and just put them on my laptop.
And yes, I know this was intended for third-party plugins, so it's unorthodox for me to use it wily-nilly with PowrShell. I suppose I am a bit too old-fashioned, so I am open to ideas or suggestions. However, I would also be open to assisting with this feature. I am new to the FOSS community, and I think it would be a fine first feature issue to work on.
Beta Was this translation helpful? Give feedback.
All reactions