I am trying to work on updating the fitbit node. I have discovered that where it is saving the credentials file, is not appropriate for using the node in the HomeAssistant addon (it seems to clean out the folder on each restart when loading the node from the config via git), so I think the right thing is to force it to save the file in the
userDir, rather than using a hardcoded path (that can then fail).
I believe the way to get to this is to use
RED.settings.get(userDir). Is this correct?
However, where I need to call this, I get an error saying effectively
RED is not available.