What is it you are trying to do?
Your other thread
shows a script that posts direct to emoncms, therefore editing emonhub.conf will have no effect since the data is not flowing through emonhub, it is going direct from your script to emoncms.
if you are simply trying to post data to 2 emoncms instances you could just add a second target to your script so that it posts to 2 emoncms’s directly.
The error you see in emonhub is most likely because you are using the serial port for your datalogger and emonhub is still configured to use the serial port for a rfm2pi or emonpi, removing the “rfm2pi” section from emonhub.conf should resolve that.
Bill’s script would undoubtedly work, but it is going around the houses a bit, there is no reason to post the data to one place and then use another script to read the data from there and post it elsewhere.
The easy option would be to edit your first script to post to 2 places, the best option would be to change your script so that it sends to an emonhub socket and then emonhub can send it to as many emoncms’s as you like and offer error logging and data buffering to boot.