I’ve been writing agent/device code to enable my imps to be configured from settings stored in an online database (Firebase). The idea is to make the initialization of each device as parameterized as possible, so there’s no need for hardcoded configuration values directly in the code files. In this way all imps can use identical versions of common boilerplate code (for mail notification, logging and posting to IoT channels, etc.). On start-up each device then just has to fetch it’s own configuration settings from the database (basically by doing a look-up on some hash of the device identifier).
It works pretty well now. However, there’s one last hardcoded piece left, and that’s the connection string for the Firebase database (URL and stuff). It is needed for bootstrapping everything else and obviously has to go somewhere Currently, the only option is to embed it directly in the code. Instead, it would be nice if this information could be saved in some kind of environment variable in the IDE to be shared among all running agents within the same account/group/model. Any thoughts on this from the Imp team? Perhaps it’s already on the list - or maybe something similar is available to commercial users?