Dont know why this new continuous sample project appeared if a lib was already available since 2013 made by myself and used with great success since then.
Take a look :
https://openenergymonitor.org/emon/node/2406