Page 2 of 2

Re: Monitoring Gas Usage - UK

Posted: Wednesday 13 July 2016 13:39
by markk
amz4u2nv wrote:markk - ordered yesterday worked out £50 for both - £25 discount if both added to the basket.
Thought I would get it and see what I could do with it. If it doesnt work give it back...
Ah, I see. I'll be very interested to hear how it goes.

Re: Monitoring Gas Usage - UK

Posted: Wednesday 13 July 2016 13:47
by markk
stlaha2007 wrote:
ThinkPad wrote:Have a look at the MySensors project.

For the reflective mirror in the counting reel, a TCRT5000 / CNY70 photosensor can probably be used. But your gasmeter might also have a little magnet in the counter reel, maybe you can pickup this signal with a so called 'reed contact'.
Have you seen the picture from threadstarter. Seems to me he doesn't have a turning wheel.

I however, have looked at suggested MySensors, looks promising but need lot of cabling from outside meterhouse into central nervecenter on 2nd floor :-)

For me: my setup works for now. Builded my own gateway with bash and tesseract on domoticz-pi.
Im extending it with electricity and watermeter in a couple of days.


Sent from my D6503 using Tapatalk
Sorry, I'm picking this up a long way down but I've just started looking at Gas monitoring. The picture posted by the threadstarter looks identical to mine. No wheel but there is an RJ11 socket underneath the far right digits. I've plugged in an RJ11 cable in mine and then the two centre wires from this to a reed switch and found this reads the pulses. Now to read up about how I could connect this using mysensors I suppose!

Monitoring Gas Usage - UK

Posted: Wednesday 13 July 2016 18:19
by Marci
For the pictured gas meter, I ordered the below... early versions of that meter don't have RJ45 etc, but still have the magnet in the dial, and mounting point for the module below. I snipped wires from sensor to transmitter and attached directly to RPi GPIO, and used a python script to do the counting & calculations. The rest went in the bin: https://www.amazon.co.uk/gp/aw/d/B004MQ ... UTF8&psc=1

S'just a software-debounced magnetic reed sensor that sits by the right hand zero.

EDIT: £36 direct - http://www.saveometer.com/store.aspx?As ... eSupport=1

Re: Monitoring Gas Usage - UK

Posted: Wednesday 13 July 2016 21:27
by markk
Marci wrote:For the pictured gas meter, I ordered the below... early versions of that meter don't have RJ45 etc, but still have the magnet in the dial, and mounting point for the module below. I snipped wires from sensor to transmitter and attached directly to RPi GPIO, and used a python script to do the counting & calculations. The rest went in the bin: https://www.amazon.co.uk/gp/aw/d/B004MQ ... UTF8&psc=1

S'just a software-debounced magnetic reed sensor that sits by the right hand zero.

EDIT: £36 direct - http://www.saveometer.com/store.aspx?As ... eSupport=1
So the connector bit you kept I have already for mine? Seems all i need is a Pi and your know how then?!

Monitoring Gas Usage - UK

Posted: Wednesday 13 July 2016 23:20
by Marci
https://github.com/PatchworkBoy/gaspulse

Wire sensor between a gpio pin and grnd. Set gas_sensor variable to gpio pin.

Make 3 meter sensors in Domoticz, set IDs for these towards top of file (read the code, all fairly apparent).

Touch the 3 log files at top of script. Set url etc for your Domoticz instance.

Run in background with nohup &. It'll then update the virtual sensors in Domoticz every 5 mins.

Re: Monitoring Gas Usage - UK

Posted: Friday 15 July 2016 14:11
by markk
Marci wrote:https://github.com/PatchworkBoy/gaspulse

Wire sensor between a gpio pin and grnd. Set gas_sensor variable to gpio pin.

Make 3 meter sensors in Domoticz, set IDs for these towards top of file (read the code, all fairly apparent).

Touch the 3 log files at top of script. Set url etc for your Domoticz instance.

Run in background with nohup &. It'll then update the virtual sensors in Domoticz every 5 mins.
Thank you. I'll have a go this weekend

Re: Monitoring Gas Usage - UK

Posted: Tuesday 01 August 2017 10:17
by mikkel75
stlaha2007 wrote:Hi there,

Im not from UK but Netherlands. Here part of the household have smartmeters. Unfortunately mine will get one scheduled for end of 2017. So i have almost the same start, an analog meter with digits.

What i have done is read the number with an IPcam (bought this cheap €55,- d-link dcs-933), tried with irleds in nightvision (bad results of the reflected irleds), got a usb-ledlight (plusminus € 6,-).
Now the image is well lit without reflection (lot of trail and error).
Read the image with wget into domoticz sdcard.
Installed tesseract and imagingtools for crop, grayscale and OCR (tesseract) the number into file.
Then after OCR write the number with curl into json request into gasmeter device.
Created cronjob to read every 59th minute of the hour to get the reading of this gasmeter.
Need to say im in the testfase now, reading only the white-on-dark digits. Planning on reading the digits in de redbox later.
And still need to find out which number and divider needs to be fed and adjusted to get correct use statistics.

Sent from my D6503 using Tapatalk
Sounds exactly like what I had in mind - do you mind sharing your code? ;)

Thanks,
M

Re: Monitoring Gas Usage - UK

Posted: Tuesday 01 August 2017 10:56
by stlaha2007
mikkel75 wrote:
stlaha2007 wrote:Hi there,

Im not from UK but Netherlands. Here part of the household have smartmeters. Unfortunately mine will get one scheduled for end of 2017. So i have almost the same start, an analog meter with digits.

What i have done is read the number with an IPcam (bought this cheap €55,- d-link dcs-933), tried with irleds in nightvision (bad results of the reflected irleds), got a usb-ledlight (plusminus € 6,-).
Now the image is well lit without reflection (lot of trail and error).
Read the image with wget into domoticz sdcard.
Installed tesseract and imagingtools for crop, grayscale and OCR (tesseract) the number into file.
Then after OCR write the number with curl into json request into gasmeter device.
Created cronjob to read every 59th minute of the hour to get the reading of this gasmeter.
Need to say im in the testfase now, reading only the white-on-dark digits. Planning on reading the digits in de redbox later.
And still need to find out which number and divider needs to be fed and adjusted to get correct use statistics.

Sent from my D6503 using Tapatalk
Sounds exactly like what I had in mind - do you mind sharing your code? ;)

Thanks,
M
I don't mind to share. However abandonned the testfase. Very unstable 65% accurate digits :-(, lots of deleting failed reading (almost corrupted db)

I have solarpanels and a smartmeter since january this year. Only using a piece of code to do the snapshot of the watermeter with some resizing to 'remotely' read the watermeter. And 'still' working on the trct5000 gpio version.

If your still interrested. I can try digging up the code pieces. Let me know, ok?

Sent from my D6603 using Tapatalk