jdeath / homeassistant-addons

MIT License
65 stars 16 forks source link

memos postgresql #47

Open kuduacz opened 4 weeks ago

kuduacz commented 4 weeks ago

How to switch to postgresql database? there is no config file to enter new value.

jdeath commented 4 weeks ago

I made the addon simple, so it does not have that configuration option. I might be able to add it, but it adds a lot of complexity.

You can download the repo, move the memos folder into /addons/ then it should show in your local addon-store store. edit the config.json and look in the environment field: make it look like:

"environment": {
"MEMOS_DRIVER": "postgres",
"MEMOS_DSN": "postgresql://root:password@localhost:5432/memos",
    "MEMOS_DATA": "/config/"
  },

Then you have to re-install the addon. If you get the URL wrong, you need to uninstall//reinstall the addon for it to register the change.

You can also look at some of my addons, like WG_EASY to figure how how to take configuration values.