-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hi,
It's me again. Sorry to raise another issue. My previous issue seemed to be resolve as I had it working albeit with a need to get my tariffs right.
I only edited the tariffs section in the config and now I get the errors below....
For clarity I am running this in a debian lxc on proxmox.
I created a folder octo2influx and copied octo2influx.py, config.yaml and requirements.txt.
Ran pip3 install -r requirements.txt and edited config.yaml to my needs.
I run octo2influx.py and get the errors. I'm no expert but it seems to infer that the influx url can't be found.
I'm running a separate influx instance in proxmox and using the IP address of it which was working before.
Any idea where I'm going wrong?
$python3 ./octo2influx.py
/usr/lib/python3/dist-packages/requests/init.py:109: RequestsDependencyWarning: urllib3 (2.2.3) or chardet (5.1.0)/charset_normalizer (3.0.1) doesn't match a supported version!
warnings.warn(
Traceback (most recent call last):
File "/root/octo2influx/./octo2influx.py", line 413, in
client = InfluxDBClient(url=cfg['influx_url'],
~~~^^^^^^^^^^^^^^
File "/root/octo2influx/./octo2influx.py", line 130, in getitem
return self.get_validated(key)
^^^^^^^^^^^^^^^^^^^^^^^
File "/root/octo2influx/./octo2influx.py", line 119, in get_validated
value = super().getitem(key).get(self.params[key].cfg_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/confuse/core.py", line 308, in get
return templates.as_template(template).value(self, template)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/confuse/templates.py", line 70, in value
return self.get_default_value(view.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/confuse/templates.py", line 79, in get_default_value
raise exceptions.NotFoundError(u"{} not found".format(key_name))
confuse.exceptions.NotFoundError: influx_url not found