willasm / vc-weather

MIT License
8 stars 0 forks source link

can't enable plugin on mobile #3

Open htmljenn opened 1 week ago

htmljenn commented 1 week ago

Thank you so much for this update!

I installed using BRAT with no issues, but on my mobile device I can't enable. Obsidian seems to think this is a desktop plugin only.

This means I can't add my API key to get it working on my mobile device.

I'm testing on an iPad.

And thanks AGAIN for doing this. I loved your OpenWeather plugin and used it everyday. And the Visual Crossing data is so much nicer even without the API.

willasm commented 1 week ago

At the moment it is not available on mobile. In order to get the plugin working quickly (before the old one stops working) I needed to make one call using fs which is not supported on mobile. As of now the plugin is complete as far as adding features goes so I will look into this right now and find a workaround for that one call so I can re-enable mobile support. I will let you know as soon as that iss done.

Thanks, William.

willasm commented 1 week ago

Added mobile support in v0.0.5

Can you please test this for me and let me know if it is working for you now?

Thanks, William.

willasm commented 1 week ago

@htmljenn Just curious, how long did it take to get your key emailed to you? I had been considering swithching to this API for over half a year now so I requested my key a long time ago and can't recall how long it took to arrive. Just would like to know so I can add an approximate time frame for delivery in the readme file.

Thanks, William.

htmljenn commented 1 week ago

@willasm I haven't gotten my key mailed to me yet. I got it by going into my account settings and grabbing it from there. The steps:

  1. Login to Visual Crossing
  2. Click on the Account button in the top left
  3. Under "Your details" I chose "Copy" from my Key.

I pasted that in, in the plugin settings on my Mac and it began working beautifully.


side note: the plugin is expanding the shortcut codes in files that are stored in the folder I listed my templates as being in. I'd really like it to just ignore the codes in a directory and ALL subdirectories under it (that is, that's what would work best for my setup) but having two directories to blacklist is helpful.

htmljenn commented 1 week ago

I realized I hadn't answered your first question.

NEVERMIND.

I forced BRAT to reinstall and now it's working on my iPad too.

THANK YOU

willasm commented 1 week ago

The default behavior should be to exclude all sub folders under your excluded folder. You may need to check your settings file (data.json) for the plugin (it is in the plugins directory) to verify it is correct.

Note: Quick tip regarding the plugins settings file. You can edit it manually if needed then restart Obsidian for the changes to take effect. To rebuild it you can just delete the file, but then you would have to re-enter everything. To avoid having to re-enter everything you can delete every line except the ones for your API key and the primary location (the first one) then make any change to the plugin settings in Obsidian to generate the missing keys in the data file. A good reason to do this is I have in fact made changes to some of the default template strings but you will never see these changes as they are already defined in the data.json file with the old keys. You would need to delete the old keys to have them replaced with the new ones.

Thanks, William.

htmljenn commented 1 week ago

GREAT! It's working fine. I realized the issue was on my side (I tend to push Obsidian past what it wants to do quickly....) But when I rebooted (three times!!) it is now working. It blocks the directories I want blocked and is updating my files exactly as I want it to.

Thanks again for this.

willasm commented 1 week ago

Glad it is working for you. Thanks for the feedback.