Page 1 of 1

Calculate with gas value toon

Posted: Sunday 26 March 2017 18:59
by phoenixblue
Hi,

I want to calculate with the day usage of gas that is coming from the Toon readout.
Only when I want to use this value of gas I'm getting this error:

Code: Select all

2017-03-26 18:49:31.526 Error: EventSystem: in Split usage gas: [string "commandArray = {} ..."]:12: attempt to concatenate global 'Gas' (a nil value) 
After this error I have insert an print command -> print ("Status Gas: "..Gas) to check what's inside this Gas device but get the same nil value.

Code: Select all

2017-03-26 18:49:51.519 Error: EventSystem: in test gas: [string "commandArray = {} ..."]:4: attempt to concatenate global 'g' (a nil value) 


But my day amount for now is 2.55m3 so there must be something higher then nil.
Knipsel.PNG
Knipsel.PNG (13.81 KiB) Viewed 327 times
Update: After some testing I receive the total gas amount with print('Gas'..otherdevices_svalues['Gas']) but stil not getting tot day usage.