I fixed an error with a simple hack, somebody with more lua knowledge should fix it more precisely.
There was "Attempt to index a nil value " error in function ddd_save(card) on the line
"user_name = card:find_first({label='hoderSurname'}):get_attribute("alt")".
I just changed it to user_name = "my_cronotachygraphe".
Had to do the same on the next line.
==============
There is also an ERROR [string "tachograph.lua"]:291: attempt to index local 'conversion' (a nil value).
local converted = conversion:iconv(data:sub(1):format("%C"))
If somebody could look into it, it would be great.
But at least we can now save the results in a .ddd file.
That is if you put ddd_save(CARD) function call before the for loop because the script crashes in there.
Hi,
[tachograph.lua]
I fixed an error with a simple hack, somebody with more lua knowledge should fix it more precisely.
There was "Attempt to index a nil value " error in function ddd_save(card) on the line "user_name = card:find_first({label='hoderSurname'}):get_attribute("alt")".
I just changed it to user_name = "my_cronotachygraphe". Had to do the same on the next line.
==============
There is also an ERROR [string "tachograph.lua"]:291: attempt to index local 'conversion' (a nil value).
local converted = conversion:iconv(data:sub(1):format("%C"))
If somebody could look into it, it would be great.
But at least we can now save the results in a .ddd file. That is if you put ddd_save(CARD) function call before the for loop because the script crashes in there.
Thanks