ofekmiz / Habitica-Pomodoro-SiteKeeper

Chrome Extension for Habitica that charges you gp for visiting sites, including a Pomodoro Timer
MIT License
73 stars 9 forks source link

Feature Request: UI element to set serverUrl (for a local Habitica instance) #36

Closed swilliams-dev closed 2 years ago

swilliams-dev commented 3 years ago

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.

swilliams-dev commented 3 years ago

Also opened upstream: https://github.com/MHDante/Habitica-SitePass/issues/13

ofekmiz commented 3 years ago

@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

ofekmiz commented 3 years ago

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 :)

swilliams-dev commented 3 years ago

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

swilliams-dev commented 3 years ago

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

ofekmiz commented 3 years ago

will do :)

ofekmiz commented 3 years ago

@swilliams-dev Sorry for the delay. It's a simple feature but I have other priorities for now. Thank you for your patient!

ofekmiz commented 3 years ago

@swilliams-dev added this option for the next update image

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.

ofekmiz commented 3 years ago

@swilliams-dev any update? :)

swilliams-dev commented 3 years ago

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 :)

ofekmiz commented 3 years ago

@swilliams-dev any updates? :)

swilliams-dev commented 2 years ago

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?

bootymcjudy commented 2 years ago

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/