-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Hi,
In previous versions 0.4.0, was possibility in python to extract all data from Mate3 and export in a JSON file.
The code was like this:
from mate3.api import mate3_connection
from mate3.parsers import ChargeControllerParser, ChargeControllerConfigurationParser
from mate3.base_structures import Device
import json
import time
with mate3_connection ('192.168.0.150') as client:
blocks = client.all_blocks()
block_dicts = [b._asdict() for b in blocks]
for block_dict in block_dicts:
block_dict['device'] = block_dict['device'].name
print(json.dumps(block_dicts))
file = open("mate3allblocks.json","w")
file.write(json.dumps(block_dicts))
file.close()
Do we have something similar in 0.6.2 ?
Metadata
Metadata
Assignees
Labels
No labels