-
Notifications
You must be signed in to change notification settings - Fork 1
Description
@kdebrab, @saroele I was able to take a look at Karel's code, to find out it works fine! Well done!
I did run in to some JsonDecodeError's in the beginning, when I was furiously adding, removing and syncing sensors, but this was behaviour I had also encountered sometime in the past so I don't think it has anything to do with what we're doing right now. I decided to start fresh: deleted my .tmpo-folder, pip-uninstalled tmpo so I could import directly from the branch.
Doing a houseprint.init_tmpo() works fine (which creates a tmpo session and adds all sensors), doing houseprint.sync_tmpos() also works fine. Fetching data works just as you'd expect.
I was able to init_tmpo on two separate houseprints in two separate notebooks, without getting the database locked errors. I can fetch data in one notebook, then go to the other one and fetch data too. No problems. The really cool part is I was able to run get_data() simultaneously in two separate notebooks!
Could you guys check it out too?