You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
The text was updated successfully, but these errors were encountered:
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:
Do we have something similar in 0.6.2 ?
The text was updated successfully, but these errors were encountered: