No data recorded after 'Clear Feed' is used

I have a feed generated from an MQTT source

I used the ‘clear feed’ functionality to clear the data, but now no data is recorded.

The meta file simply has a x in it.

Log extract (grep on =30)

2018-11-10 19:21:19.647|INFO|feed_model.php|insert_data() feedid=30 updatetime=1541877679 feedtime=1541877679 value=56.6 arg=
2018-11-10 19:21:19.647|INFO|PHPFina.php|post() id=30 timestamp=1541877679 value=56.6 padding=
2018-11-10 19:23:15.689|INFO|feed_model.php|insert_data() feedid=30 updatetime=1541877795 feedtime=1541877795 value=56.7 arg=
2018-11-10 19:23:15.689|INFO|PHPFina.php|post() id=30 timestamp=1541877795 value=56.7 padding=
2018-11-10 19:25:17.615|INFO|feed_model.php|insert_data() feedid=30 updatetime=1541877917 feedtime=1541877917 value=56.9 arg=
2018-11-10 19:25:17.615|INFO|PHPFina.php|post() id=30 timestamp=1541877917 value=56.9 padding=
2018-11-10 19:25:36.808|INFO|PHPFina.php|get_data() feed=30 st=1541273138 end=1541877938 int=756 sk=1 lm=1 pts=854 st=1541775480
2018-11-10 19:25:42.208|INFO|PHPFina.php|get_data() feed=30 st=1541723907 end=1541877938 int=193 sk=1 lm=1 pts=854 st=1541775480
2018-11-10 19:25:58.900|INFO|PHPFina.php|get_data() feed=30 st=1541273160 end=1541877960 int=756 sk=1 lm=1 pts=854 st=1541775480
2018-11-10 19:26:20.603|INFO|feed_model.php|feed model: clear() feedid=30
2018-11-10 19:26:32.359|INFO|PHPFina.php|get_data() feed=30 st=1541394120 end=1541998920 int=756 sk=1 lm=1 pts=0 st=0
2018-11-10 19:27:01.565|INFO|PHPFina.php|get_data() feed=30 st=1541891680 end=1541998920 int=134 sk=1 lm=1 pts=0 st=0
2018-11-10 19:27:21.630|INFO|feed_model.php|insert_data() feedid=30 updatetime=1541878041 feedtime=1541878041 value=56.9 arg=
2018-11-10 19:27:21.630|INFO|PHPFina.php|post() id=30 timestamp=1541878041 value=56.9 padding=
2018-11-10 19:27:34.277|INFO|PHPFina.php|get_data() feed=30 st=1541838060 end=1542052540 int=268 sk=1 lm=1 pts=855 st=0
2018-11-10 19:27:39.013|INFO|PHPFina.php|get_data() feed=30 st=1541993878 end=1542052540 int=120 sk=1 lm=1 pts=855 st=0
2018-11-10 19:29:11.614|INFO|feed_model.php|insert_data() feedid=30 updatetime=1541878151 feedtime=1541878151 value=56.6 arg=
2018-11-10 19:29:11.615|INFO|PHPFina.php|post() id=30 timestamp=1541878151 value=56.6 padding=
2018-11-10 19:30:22.820|INFO|PHPFina.php|get_data() feed=30 st=1541791824 end=1541878224 int=120 sk=1 lm=1 pts=856 st=0
2018-11-10 19:30:36.619|INFO|PHPFina.php|get_data() feed=30 st=1541748624 end=1541921424 int=216 sk=1 lm=1 pts=856 st=0
2018-11-10 19:31:11.664|INFO|feed_model.php|insert_data() feedid=30 updatetime=1541878271 feedtime=1541878271 value=57.1 arg=
2018-11-10 19:31:11.664|INFO|PHPFina.php|post() id=30 timestamp=1541878271 value=57.1 padding=

You can see the call to clear

The get_data() calls are probably me trying to view data. Each time the number of points returnd is zero though it seems to be trying to insert_data.

Just checked again and only 'null is being stored (it seems - CSV output - dates will not match)

"Unix timestamp", "xiaomi:xia-0c-Hum"
1541612700, null
1541613600, null
1541614500, null
1541615400, null
1541616300, null
1541617200, null
1541618100, null

The tool tip does not show a start time.

As opposed to one that is working…

The feed list shows it is being updated.

Issue #1109

Thanks @borpin for finding this one. I’ve been able to fix the issue. Details on the github issue: Feed not updating once 'clear' has been used · Issue #1109 · emoncms/emoncms · GitHub

1 Like