Conversation
You can change that interval, I called it "Main update interval in seconds" Here in the code: https://github.com/richibrics/IoTuring/pull/84/files#diff-784cd4745c3ccfda1083a25f466edc21e4cabc7eaed3c8f7c6498a8540ae1efbR40 And than it's used by Warehouse.py here: https://github.com/richibrics/IoTuring/pull/84/files#diff-3e753f631e8c84279e975e1140329dbd4d0af8a2b6b7f7970f6862fa190a27e3R16 |
|
Yes sorry I made a typo, I was asking how #58 (unique method to acquire is paths) was related to this PR |
|
You can store that setting, I wanted to add that here as well, as I wrote:
So if the app init order is reworked, so somehow the configuration can be read before logging starts, than that option can be placed here as well. Or if logging becomes a warehouse, than it's not related. |
|
Continued in #90 |
This branch is based on #83 , that should be pulled first. It also contains changes you can see there, not everything is new here.
New feature: App Settings are stored in the configuration file, and you can edit them in the new UI. Actually I only wanted to add this to IoTuring, but the old config UI was too hard to edit, so I started with that first
Currently there are 4 settings in
IoTuring/MyApp/AppSettings.pyIOTURING_LOG_LEVELstill overwrites this, but it's saved in the config fileDesktopEnvironmentandUsercan change sometimes, but now they are static sensors,AppInfoshouldn't ping Github every second, that could also become a slow sensor.Problems: Logger starts before ConfigurationIO, so Logger cannot know what is the configured level. I also wanted to add Log Folder option, but same problem. I worked it around by settings a default log level used before
Configuratorstarts, but I don't like this solution. The app init order should be rethinked.I was also thinking, maybe the new
AppSettingsas a singleton would be better? Now Settings are stored in a class variable.Related issues: #5 #58
Other changes:
importlib.metadatais available as a std lib in 3.8, soimportlib_metadatabackport is not needed anymoreIoTuring --help