how to persist and instantiate models?

Si Chen <sichen@...>


I'm looking at integrating OpenEEMeter with opentaps some more, and I have a couple of questions about how to save and re-use the models from OpenEEMeter.

Are these the classes with the hourly and daily models?

They both have .json() methods to return the model as a JSON.  Should we save those JSON strings in our database?  

Is there a method for bringing those models back from JSON string?


Si Chen
Open Source Strategies, Inc.

opentaps and open source business models
at the VOLTTRON conference:

Join to automatically receive all group messages.