2

Influx should not be capitalized as it's a variable name None of this code: with open("config.yaml", "r") as ymlfile: cfg = yaml.load(ymlfile,Loader=SafeLoader) server_URL=cfg["InfluxDB"]["server_URL"] token=cfg["InfluxDB"]["token"] org=cfg["InfluxDB"]["org"] Influx = ...


1

Review There are bugs and the code is accessibly noisy. Style Some source code style points Avoid unneeded code as it is just noise. Code noise makes code harder to read amd maintain. The script tag default type is "text/javascript" and thus is not required. JavaScript does type conversion automatically. Thus 'some_element_' + String(i) is the ...


1

Use enum class Consider using enum class instead of a plain enum for a little more type safety. I would also recommend you use all-caps for the names of the enum options, as this is commonly done and is a strong hint that those are constants and not variables. Prefer using switch-statements when enums are involved Use a switch-statement instead of a chain of ...


Only top voted, non community-wiki answers of a minimum length are eligible