-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Hi.
I found your python-script for the MTEC-API. Thanks for that work so far. All worked as i expected with the DEMO-account.
After placing my credentials into the config.yaml only menu #1-#3 worked ... menu #4 und #5 returned no values.
After doing some more investigation I realized that your script seems to return values only if there was a pv_production for that day / time. For days / hours without pv_production the MTEC_client.py returns no values (even no grid_load) and jumps back to the menu.
Note: My PV-strings are still switched off and I´m waiting for the smart meter to be changed from a oneway to twoway-meter.
Here are two examples from the script-output (generated today):
for menu (4)
Menu:
1: List system topology
2: List station data
3: List device data
4: Usage data (day)
5: Usage data (month)
x: Exit
Please select: 4
(#0) StationId '1xxxxxxxxxxxxxxxx0' : Mxxxxx Lxxxx 1xxxxx
Please select station #: 0
Select no. of days you want to export: 90
timestamp, load, grid, PV, battery, SOC
1694526600000, 0.46, -0.01, 2.8, -2.36, 28.96
1694526900000, 0.48, -0.26, 2.01, -1.8, 29.58
1694527500000, 0.47, -0.06, 3.05, -2.65, 34.36
1694527800000, 0.51, -0.07, 3.28, -2.83, 34.91
1694528700000, 0.3, 0.04, 2.34, -2.0, 36.45
1694529000000, 0.4, -0.01, 4.18, -3.8, 38.03
1694529300000, 0.43, 0.05, 3.63, -3.16, 39.96
1694529600000, 0.29, 0.02, 4.27, -3.96, 43.19
1694530200000, 0.47, -0.07, 4.29, -3.9, 48.22
1694530500000, 0.5, -0.01, 4.39, -3.91, 50.86
1694952900000, 0.47, -0.01, 4.31, -3.85, 11.62
1694953500000, 0.54, -0.02, 4.5, -3.98, 16.15
1694953800000, 0.48, -0.02, 4.4, -3.93, 19.38
1694954100000, 0.54, -0.01, 4.34, -3.81, 22.39
1694954400000, 0.5, 0.03, 4.26, -3.74, 24.82
1694954700000, 0.44, 0.02, 4.18, -3.72, 27.39
1694955000000, 0.74, -0.04, 4.12, -3.42, 29.62
1694955300000, 1.56, 0.05, 4.05, -2.44, 31.74
1694955600000, 2.96, 0.01, 3.99, -1.02, 32.8
1694955900000, 0.68, 0.03, 3.91, -3.2, 34.91
1694956200000, 0.61, 0.04, 3.79, -3.14, 37.15
1694956500000, 0.48, 0.05, 1.28, -0.75, 38.65
or for menu "5"
Menu:
1: List system topology
2: List station data
3: List device data
4: Usage data (day)
5: Usage data (month)
x: Exit
Please select: 5
(#0) StationId '1xxxxxxxxxxxxxxxx0' : Mxxxxx Lxxxx 1xxxxx
Please select station #: 0
Select no. of months you want to export: 3
date, load, pv_production, grid_load, grid_feed, battery_load, battery_feed
2023-09-12, 5.3, 3.4, 0.0, 0.0, 4.9, 3.0
2023-09-17, 10.2, 4.3, 6.0, 0.0, 3.4, 3.5
Summary:
There is no usage data in case of pv_production is switched off (?) or equals zero.
The script reads data only during my "test phases". Looking at my MTEC-App or Web-GUI I can see data for all days since sept 12th (grid_load, SOC)
Kind regards and thanks for your support in advance,
Michael