Closed swilliams-dev closed 2 years ago
Also opened upstream: https://github.com/MHDante/Habitica-SitePass/issues/13
@swilliams-dev Hi, I'm not sure if I understand.... Can you explain what do you mean by "serverUrl in SitePass/app/background.js". Also there is no redirect DNS in this extension (unlike MHDante's extension) - I replaced the redirect to google with a website overlay.
Thanks
If you mean to change the Habitica serverUrl for the API, it would be great if you explain in details what do you need for this to work. I never used Habitica locally but if you explain exactly what is needed I can add this feature :)
I think just an easy option to modify the serverUrl should do it, it is for this setup: https://habitica.fandom.com/wiki/Setting_up_Habitica_Locally_on_Docker
You may find some benift from the ability to test via local api... https://habitica.fandom.com/wiki/Using_Your_Local_Install_to_Modify_Habitica%27s_Website_and_API Should just require setting here... I could fork and rebuild, but this would be better to be a user definable var: https://github.com/ofekmiz/Habitica-Pomodoro-SiteKeeper/blob/master/SitePass/app/background.js#L4
will do :)
@swilliams-dev Sorry for the delay. It's a simple feature but I have other priorities for now. Thank you for your patient!
@swilliams-dev added this option for the next update
Please note that I couldn't install habitica locally (I got some errors during installation and I'm still trying to fix it). so I didn't test it properly... Stay tuned for the update and please let me know if it works for you.
@swilliams-dev any update? :)
Apologies, I'm out of town currently, but will be back by end of month. Thanks for implementing, I'll be sure to test asap :)
@swilliams-dev any updates? :)
Sorry for the insane levels of delay... I just got it up in docker and can test it out. How do I build/install this from your fork @ofekmiz?
I just tested this on my own local install and it works! Using version 6.1.2 on Firefox
You need to append /api/v3/ to the end of the url.
Since I also did it on my local machine the url I used,
http://localhost:8080/api/v3/
Currently we must modify the serverUrl in SitePass/app/background.js manually every update, or redirect via DNS. Ideally, we would have an area in settings we could enter in our local address.