Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ [REQUEST] Monica - Personal CRM #1325

Open
2 tasks done
paviro opened this issue Mar 30, 2024 · 28 comments
Open
2 tasks done

✨ [REQUEST] Monica - Personal CRM #1325

paviro opened this issue Mar 30, 2024 · 28 comments
Labels
enhancement New feature or request prevent stale Prevents stale being applied

Comments

@paviro
Copy link

paviro commented Mar 30, 2024

Checked

  • If a new addon, I have checked on Google that such as addon doesn't already exists
  • If a new feature, I have searched in the discussions & issues that it was not already covered

Which addon?

It would be great to have a add-on for Monica.

Is your feature request related to a problem? Please describe

Not related to a problem / existing add-on.

Describe the solution you'd like

Creating an add-on for Monica would be amazing and sadly I failed to implement anything myself as I am just not familiar enough with Docker and Home Assistant Add-ons. I understand if it is too much work and would like to thank you for all the adding you already created!

@paviro paviro added enhancement New feature or request prevent stale Prevents stale being applied labels Mar 30, 2024
@alexbelgium
Copy link
Owner

Hi, who wouldn't want a Monica :) i'll look at the addon when i'll have some time I don't think I have anything like this currently in the repo. Have a nice day!

@paviro
Copy link
Author

paviro commented Mar 30, 2024

Thank you so much! I really appreciate you taking the time!

@alexbelgium
Copy link
Owner

Note to self :

  • https://hub.docker.com/_/monica/tags
  • Require mariadb
  • Use latest with apache server
  • p 8080:80 monica
  • monica_data:/var/www/html/storage
  • https://github.com/monicahq/monica/blob/4.x/.env.example
  • To expose your Monica instance for the internet, it's important to set environment variable APP_ENV=production. In this case https mode will be mandatory.
  • One way to expose your Monica instance is to use a proxy webserver from your host with SSL capabilities. This is possible with a reverse proxy. => not optimal, need for embedded nginx & ssl from homeassistant (lsio approach?)

@bilogic
Copy link
Contributor

bilogic commented Jun 21, 2024

Hi,

I suppose this is stuck?

@alexbelgium
Copy link
Owner

Uh indeed I had completely forgotten and currently am a bit focused on the birdnet-pi add-on..

@PineappleEmperor
Copy link

Any chance you'll gift this to us all for Christmas? 🙃

alexbelgium added a commit that referenced this issue Dec 6, 2024
@alexbelgium
Copy link
Owner

Hi! Well, when you put it that way... Please find a first version! Let me know how it goes - it's a preliminary version so some things might not work straight away ;-)

Btw I went straight to beta 5.0

@alexbelgium
Copy link
Owner

Please let me know if you prefer version 4

@paviro
Copy link
Author

paviro commented Dec 6, 2024

Thaaaaanks! So far I cannot create an account. I get "419 PAGE EXPIRED" every time I try.

@alexbelgium
Copy link
Owner

Mmh same here honestly their documentation is not super straightforward :-) I saw it boot and thought it was good but I also can't add an user both from webui nor command line !

I'll try a version based on 4 in case 5 was "too beta"

@paviro
Copy link
Author

paviro commented Dec 6, 2024

Which is strange since this one seems to suggest to use 5 :D monicahq/monica#6904

@alexbelgium
Copy link
Owner

Thanks for that link actually it explains how to get the info to create the first user through a specific variable, I'll go back to 5

@alexbelgium
Copy link
Owner

Up until now I've tried :

  • Webui from local ip
  • Various database : MariaDB addon auto-connect (my code auto-creates the table) or sqlite
  • Data remanence

Remaining :

  • Create first user (perhaps useful)

@alexbelgium
Copy link
Owner

Well well using "MAIL_MAILER=log" seemed like the solution but now it tells me "These credentials do not match our records" which is rather logical for a new installation ;-) Looks like an issue from the core system : monicahq/monica#6162

@paviro
Copy link
Author

paviro commented Dec 6, 2024

Also also love this monicahq/chandler#409 (comment) kind of reads like "don't use the old version but also don't use the new one!" Which makes me unsure if one is just supposed to wait until 5.0 releases?

@alexbelgium
Copy link
Owner

Ok I've got it to work! Sqlite created the database but for some reason lead to "These credentials do not match our records"
With Mariadb, I can create the user up to the moment where it says it "send the email". However, instead of looking for a never received email, you should look in the log for If you’re having trouble clicking the "Verify Email Address" button, copy and paste the URL below
I did that, and it worked :-)

@alexbelgium
Copy link
Owner

What I would want to do is create a default admin user so people can avoid this complexity but I did not find yet how to do that

@paviro
Copy link
Author

paviro commented Dec 6, 2024

Worked for me as well!

@PineappleEmperor
Copy link

I'm just catching up, but it seems to work with the default settings (mysql) 🥳 Initially I had some issues actually connecting to the instance, not really sure what happened there to be honest. Like you say, once you pick out the verification link in the log it works!
Thank you so much again!

@alexbelgium
Copy link
Owner

I've modified the message from Monica to reflect that the link is in the log and not by email. However it would be much simpler if we can find how to create a default user :-) The functionality exists for a dummy user so it should work !

@PineappleEmperor
Copy link

Agreed! I'll try and do some digging also.
I was doing some quick checks and did note that it (seems) to limit the storage size to 50MB by default.. and according to this issue monicahq/monica/issues/7451 from last month v5 might not respect changing that in the config 😬

@alexbelgium
Copy link
Owner

Mmh we can modify the code on the fly so actually this should be solvable. Here is BTW how to add custom env variables : https://github.com/alexbelgium/hassio-addons/wiki/Add%E2%80%90ons-feature-:-add-env-variables

@PineappleEmperor
Copy link

Thanks! I took a look at that link once I saw the limitation -> it's on my todo list to solve later 😄

@alexbelgium
Copy link
Owner

I've modified the line in addon but it didn't change. I wonder if this is only for new accounts.

@PineappleEmperor
Copy link

On storage? The issue I mentioned had an update that sounded like there was some confusion around the name of the env variable: 'default_storage_limit_in_mb' => env('DEFAULT_STORAGE_LIMIT', 50).

@Scraggarax
Copy link

Really looking foward to using this on my home assistant instance. Please keep up the work guys!

@weisserd
Copy link

weisserd commented Jan 5, 2025

For me it works out of the box with SQLite.

However I'm not able to upload images for contacts. The link is even missing in comparison to a test on https://beta.monicahq.com

@weisserd
Copy link

weisserd commented Jan 5, 2025

OK solved! Upload works in Monica 5 just with a UPLOADCARE account and then keys in the config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request prevent stale Prevents stale being applied
Projects
None yet
Development

No branches or pull requests

6 participants