Flow Meter Integration

Hi

Has anybody figured out a way to use the API and Raspberry PI / Adafruit Flow sensors to give remaining keg volume , same as Kegtron and Plaato. I know would be easier to use either of these than home build but both not working for me for various reasons

I am fine with the assembly and building part but lost on the programming side

Cheers
Mike