Well adding;
post_url = self._settings['url']+'/input/bulk'+'.json?apikey='
post_body = "data="+data_string+"&sentat="+str(sentat)
to emonhub_reporter.py gives the log;
2018-05-05 15:01:41,494 DEBUG 5 NEW FRAME : 1525528901.49 OK 10 170 255 162 9 80 4 97 96 8 8 (-72)
2018-05-05 15:01:41,496 DEBUG 5 Timestamp : 1525528901.49
2018-05-05 15:01:41,497 DEBUG 5 Node : 10
2018-05-05 15:01:41,498 DEBUG 5 Values : [-86, 2466, 1104, 24673, 2056]
2018-05-05 15:01:41,500 DEBUG 5 RSSI : -72
2018-05-05 15:01:46,473 DEBUG 6 NEW FRAME : 1525528906.47 OK 10 172 255 154 9 80 4 95 96 8 8 (-76)
2018-05-05 15:01:46,475 DEBUG 6 Timestamp : 1525528906.47
2018-05-05 15:01:46,478 DEBUG 6 Node : 10
2018-05-05 15:01:46,480 DEBUG 6 Values : [-84, 2458, 1104, 24671, 2056]
2018-05-05 15:01:46,482 DEBUG 6 RSSI : -76
Whilst adding;
# time that the request was sent at
sentat = int(time.time())
# Construct post_url (without apikey)
post_url = self._settings['url']+'/input/bulk'+'.json?apikey='
post_body = "data="+data_string+"&sentat="+str(sentat)
gives this;
2018-05-05 15:06:17,744 WARNING emonCMS couldn't send to server, HTTPError: 403
2018-05-05 15:06:17,747 WARNING emonCMS send failure: wanted 'ok' but got ''
2018-05-05 15:06:17,849 INFO emonCMS sending: https://digitalnut.co.uk/emoncms/input/bulk.json?apikey=E-M-O-N-C-M-S-A-P-I-K-E-Y&data=[[1525529171.26,9,1111,24741,2493,-75],[1525529176.45,10,-1206,2417,1109,24724,2512,-77]]&sentat=1525529177
Tried that, but I’m still getting the 403 error rolling back emoncms, and stashing the emonhub changes.