Devel : Is there a way to save data using javascript API?
Posted: 10 Nov 2016 00:30
Hi everyone.
I wonder if there is a way to save data of a module and load it back at module startup.
I'm thinking about automatic leanring module (ex : the module change one of it parameters (ex: a table of integer [4,5,..]) save it and load it back when the z-way server start the module.). a sort of non volatile memory in short.
I think this could be done using the module Id to create a file and save data to it, but i wonder if there is a smarter way to do it (using the Z-way API for exemple). If this options should be use I also wonder where is the perfect location to save this file?
if somebody can answer any of this questions to give me a hint...
thanks
I wonder if there is a way to save data of a module and load it back at module startup.
I'm thinking about automatic leanring module (ex : the module change one of it parameters (ex: a table of integer [4,5,..]) save it and load it back when the z-way server start the module.). a sort of non volatile memory in short.
I think this could be done using the module Id to create a file and save data to it, but i wonder if there is a smarter way to do it (using the Z-way API for exemple). If this options should be use I also wonder where is the perfect location to save this file?
if somebody can answer any of this questions to give me a hint...
thanks