Hi all,
i’m using mycodo for two years now mainly for measuring and alert mails and it’s great.
I setup the latest version on a new rpi4 with 64Bit RaspianOS.
I created one input “openweather city” and it is collecting values fine.
I set up the mosquitto mqtt server and created an action to write temperature from input to mqtt.
On the existing rpi the collection of these values worked sucessfully.
So far so good.
However, i noticed that the values from the input were not written to the influxdb, with an error:
2023-07-27 10:52:26,576 - DEBUG - mycodo.influx - Write point fail: (401)
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json; charset=utf-8', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Version': 'v2.6.1', 'X-Platform-Error-Code': 'unauthorized', 'Date': 'Thu, 27 Jul 2023 09:52:26 GMT', 'Content-Length': '62'})
HTTP response body: {
"code": "unauthorized",
"message": "unauthorized access"
}
I followed kyles wiki and moved the mycodo.db to another filename and created a new db with new mycodo user.
Right after recreating the input everything was working, until:
2023-07-27 10:51:16,565 - DEBUG - mycodo.influx - Write point success: b'C,channel=0,device_id=4a8b73b6-80b2-490e-841c-e92f1d14ed31,measure=temperature value=16.43\npercent,channel=1,device_id=4a8b73b6-80b2-490e-841c-e92f1d14ed31,measure=humidity value=94\nPa,channel=2,device_id=4a8b73b6-80b2-490e-841c-e92f1d14ed31,measure=pressure value=1005\nC,channel=3,device_id=4a8b73b6-80b2-490e-841c-e92f1d14ed31,measure=dewpoint value=15.460587966760425\nm_s,channel=4,device_id=4a8b73b6-80b2-490e-841c-e92f1d14ed31,measure=speed value=5.14\nbearing,channel=5,device_id=4a8b73b6-80b2-490e-841c-e92f1d14ed31,measure=direction value=190'
2023-07-27 10:51:26,568 - DEBUG - mycodo.influx - Write point success: b'C,channel=0,device_id=b3dbe3c5-7943-4345-beb3-4adec048a328,measure=temperature value=43.816\nC,channel=1,device_id=b3dbe3c5-7943-4345-beb3-4adec048a328,measure=temperature value=43.3'
2023-07-27 10:51:41,502 - DEBUG - mycodo.influx - Write point success: b'C,channel=0,device_id=b3dbe3c5-7943-4345-beb3-4adec048a328,measure=temperature value=43.816\nC,channel=1,device_id=b3dbe3c5-7943-4345-beb3-4adec048a328,measure=temperature value=44.3'
2023-07-27 10:51:56,495 - DEBUG - mycodo.influx - Write point success: b'C,channel=0,device_id=b3dbe3c5-7943-4345-beb3-4adec048a328,measure=temperature value=43.816\nC,channel=1,device_id=b3dbe3c5-7943-4345-beb3-4adec048a328,measure=temperature value=44.3'
2023-07-27 10:52:11,852 - DEBUG - mycodo.influx - Write point success: b'C,channel=0,device_id=b3dbe3c5-7943-4345-beb3-4adec048a328,measure=temperature value=42.842\nC,channel=1,device_id=b3dbe3c5-7943-4345-beb3-4adec048a328,measure=temperature value=42.8'
2023-07-27 10:52:20,778 - DEBUG - mycodo - Refreshing misc settings
2023-07-27 10:52:26,576 - DEBUG - mycodo.influx - Write point fail: (401)
Reason: Unauthorized
HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json; charset=utf-8', 'X-Influxdb-Build': 'OSS', 'X-Influxdb-Version': 'v2.6.1', 'X-Platform-Error-Code': 'unauthorized', 'Date': 'Thu, 27 Jul 2023 09:52:26 GMT', 'Content-Length': '62'})
HTTP response body: {
"code": "unauthorized",
"message": "unauthorized access"
}
: b'C,channel=0,device_id=b3dbe3c5-7943-4345-beb3-4adec048a328,measure=temperature value=42.355\nC,channel=1,device_id=b3dbe3c5-7943-4345-beb3-4adec048a328,measure=temperature value=42.8'
Seems like it lost access to influxdb after “DEBUG - mycodo - Refreshing misc settings”
Anyone an idea, what that might be? Is “misc settings” the general settings page?