I restarted power in my house today and Iotawatt stopped uploading data to by influxdbv2 database with an error “Last sent query failed. HTTPcode 400”.
Restarting the uploader did not help.
Message log:
** Restart **
SD initialized.
11/17/21 07:35:17z Real Time Clock is running. Unix time 1637134517
11/17/21 07:35:17z Reset Reason: Power-fail restart.
11/17/21 07:35:17z ESP8266 ID: 12704151, RTC PCF8523
11/17/21 07:35:17z IoTaWatt 5.0, Firmware version 02_07_03
11/17/21 07:35:17z SPIFFS mounted.
11/17/21 14:35:17 Local time zone: +7:00
11/17/21 14:35:17 device name: IotaWatt
11/17/21 14:35:20 Connecting with WiFiManager.
11/17/21 14:35:25 HTTP server started
11/17/21 14:35:25 influxDB_v2: Starting, interval:10, url:http://domain.com:18086
11/17/21 14:35:25 WiFi connected. SSID=BDSM Villa, IP=192.168.86.147, channel=11, RSSI -85db
11/17/21 14:35:25 MDNS responder started for hostname IotaWatt
11/17/21 14:35:25 LLMNR responder started for hostname IotaWatt
11/17/21 14:35:25 timeSync: service started.
11/17/21 14:35:26 statService: started.
11/17/21 14:35:26 Updater: service started. Auto-update class is NONE
11/17/21 14:35:26 dataLog: service started.
11/17/21 14:35:26 dataLog: Last log entry 11/17/21 14:26:45
11/17/21 14:35:31 historyLog: service started.
11/17/21 14:35:31 historyLog: Last log entry 11/17/21 14:26:00
11/17/21 16:02:30 influxDB_v2: stopped, Last post 01/01/70 07:00:00
Uploader config:
post interval(sec):
10
bulk send:
6
server URL:
http://ip.ip.102.66:18086/api/v2/
Bucket:
iotawatt
Organization ID:
4b9d461751e3aff8
Authorization token:
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
upload history from:
11/01/2021
measurement
default is $name
field-key
default is ‘value’
Switching server name from domain to IP did not help. tcpdump on the server side shows 0 packets coming from the iotawatt device. Oh, and I am using an unusual port (18086 instead of 8086).