@bwduncan - schoolboy error - I had it installed twice. Getting there.
It doesn’t like the pulse_pins option… I think you may have used the wrong settings
object? I think this should be an init setting rather than runtime.
I needed to hardcode the pin
to get it to work.
GPIO.setmode(GPIO.BOARD)
GPIO.setup(15, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.add_event_detect(15, GPIO.FALLING, callback=self.process_pulse, bouncetime=1)
emonhub.conf (I did try the pulse_pins setting)
[[pulse2]]
Type = EmonHubPulseCounterInterfacer
[[[init_settings]]]
[[[runtimesettings]]]
pubchannels = ToEmonCMS,
However* although it says it couldn’t create it, it seems it is running as I am seeing pulses!
2020-06-10 23:18:40,995 INFO MainThread EmonHub emonHub emon-pi variant v3-beta
2020-06-10 23:18:40,998 INFO MainThread Opening hub...
2020-06-10 23:18:41,002 INFO MainThread Logging level set to DEBUG
2020-06-10 23:18:41,006 INFO MainThread Creating EmonHubPulseCounterInterfacer 'pulse2'
2020-06-10 23:18:41,014 DEBUG MainThread Setting pulse2 pause: off
2020-06-10 23:18:41,017 ERROR MainThread Unable to create 'pulse2' interfacer: 'int' object has no attribute 'isdigit'
2020-06-10 23:18:41,030 INFO MainThread Creating EmonHubEmoncmsHTTPInterfacer 'emoncmsorg'
2020-06-10 23:18:41,035 DEBUG MainThread Setting emoncmsorg subchannels: ['ToEmonCMS']
2020-06-10 23:18:41,037 INFO MainThread Setting emoncmsorg apikey: set
2020-06-10 23:18:41,047 INFO MainThread Setting emoncmsorg url: http://192.168.7.243/
2020-06-10 23:18:41,049 INFO MainThread Setting emoncmsorg senddata: 1
2020-06-10 23:18:41,053 INFO MainThread Setting emoncmsorg sendstatus: 1
2020-06-10 23:18:44,135 DEBUG Dummy-3 Process pulse
2020-06-10 23:18:44,139 DEBUG Dummy-3 Channel 15 pulse: 1
2020-06-10 23:18:48,818 DEBUG Dummy-3 Process pulse
2020-06-10 23:18:48,822 DEBUG Dummy-3 Channel 15 pulse: 2
2020-06-10 23:18:53,486 DEBUG Dummy-3 Process pulse
2020-06-10 23:18:53,489 DEBUG Dummy-3 Channel 15 pulse: 3
2020-06-10 23:18:58,173 DEBUG Dummy-3 Process pulse
2020-06-10 23:18:58,176 DEBUG Dummy-3 Channel 15 pulse: 4
On restart now getting
Unable to create 'pulse2' interfacer: Conflicting edge detection already enabled for this GPIO channel
But again it seems to sort itself out as I see the processing messages.
That is me for tonight. Thanks for your help.