-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af9d062
commit 692b642
Showing
149 changed files
with
803 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,4 @@ jobs: | |
- name: Test with pytest | ||
run: | | ||
pytest | ||
# pytest --log-cli-level=DEBUG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
tests/fixtures/7.6.175_envoy_s_metered/ivp_meters_readings_log.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"headers": { | ||
"server": "openresty/1.17.8.1", | ||
"date": "Sun, 03 Sep 2023 12:45:33 GMT", | ||
"content-length": "4843", | ||
"connection": "keep-alive", | ||
"strict-transport-security": "max-age=63072000; includeSubdomains", | ||
"x-frame-options": "DENY", | ||
"x-content-type-options": "nosniff" | ||
}, | ||
"code": 200 | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
tests/fixtures/7.6.175_envoy_s_metered/production.json_log.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"headers": { | ||
"server": "openresty/1.17.8.1", | ||
"date": "Sun, 03 Sep 2023 12:45:29 GMT", | ||
"content-type": "application/json", | ||
"transfer-encoding": "chunked", | ||
"connection": "keep-alive", | ||
"pragma": "no-cache", | ||
"expires": "1", | ||
"cache-control": "no-cache", | ||
"strict-transport-security": "max-age=63072000; includeSubdomains", | ||
"x-frame-options": "DENY", | ||
"x-content-type-options": "nosniff" | ||
}, | ||
"code": 200 | ||
} |
File renamed without changes.
1 change: 1 addition & 0 deletions
1
tests/fixtures/7.6.175_envoy_s_metered_cts_disabled/admin_lib_tariff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"tariff":{"currency":{"code":"EUR"},"logger":"mylogger","date":"1688623885","storage_settings":{"mode":"self-consumption","operation_mode_sub_type":"","reserved_soc":30.0,"very_low_soc":10,"charge_from_grid":false,"date":"1688623885"},"single_rate":{"rate":0.38914,"sell":0.0},"seasons":[{"id":"all_year_long","start":"1/1","days":[{"id":"all_days","days":"Mon,Tue,Wed,Thu,Fri,Sat,Sun","must_charge_start":0,"must_charge_duration":0,"must_charge_mode":"CG","enable_discharge_to_grid":false,"periods":[{"id":"filler","start":0,"rate":0.38914},{"id":"period_1","start":420,"rate":0.4424},{"id":"filler","start":1381,"rate":0.38914}]}],"tiers":[]}],"seasons_sell":[]},"schedule":{"source":"Tariff","date":"2023-07-06 06:11:26 UTC","version":"00.00.02","reserved_soc":30.0,"operation_mode_sub_type":"","very_low_soc":10,"charge_from_grid":false,"battery_mode":"self-consumption","schedule":{"Disable":[{"Sun":[{"start":0,"duration":1440,"setting":"ID"}]},{"Mon":[{"start":0,"duration":1440,"setting":"ID"}]},{"Tue":[{"start":0,"duration":1440,"setting":"ID"}]},{"Wed":[{"start":0,"duration":1440,"setting":"ID"}]},{"Thu":[{"start":0,"duration":1440,"setting":"ID"}]},{"Fri":[{"start":0,"duration":1440,"setting":"ID"}]},{"Sat":[{"start":0,"duration":1440,"setting":"ID"}]}],"tariff":[{"start":"1/1","end":"1/1","Sun":[{"start":0,"duration":1440,"setting":"ZN"}],"Mon":[{"start":0,"duration":1440,"setting":"ZN"}],"Tue":[{"start":0,"duration":1440,"setting":"ZN"}],"Wed":[{"start":0,"duration":1440,"setting":"ZN"}],"Thu":[{"start":0,"duration":1440,"setting":"ZN"}],"Fri":[{"start":0,"duration":1440,"setting":"ZN"}],"Sat":[{"start":0,"duration":1440,"setting":"ZN"}]}]},"override":false,"override_backup_soc":30.0,"override_chg_dischg_rate":0.0,"override_tou_mode":"StorageTouMode_DEFAULT_TOU_MODE"}} |
1 change: 1 addition & 0 deletions
1
tests/fixtures/7.6.175_envoy_s_metered_cts_disabled/admin_lib_tariff_log.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"headers": {"server": "openresty/1.17.8.1", "date": "Fri, 08 Sep 2023 14:12:46 GMT", "content-type": "application/json", "transfer-encoding": "chunked", "connection": "keep-alive", "pragma": "no-cache", "expires": "1", "cache-control": "no-cache", "strict-transport-security": "max-age=63072000; includeSubdomains", "x-frame-options": "DENY", "x-content-type-options": "nosniff"}, "code": 200} |
6 changes: 6 additions & 0 deletions
6
tests/fixtures/7.6.175_envoy_s_metered_cts_disabled/api_v1_production
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"wattHoursToday": 0, | ||
"wattHoursSevenDays": 0, | ||
"wattHoursLifetime": 0, | ||
"wattsNow": 0 | ||
} |
100 changes: 100 additions & 0 deletions
100
tests/fixtures/7.6.175_envoy_s_metered_cts_disabled/api_v1_production_inverters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
[ | ||
{ | ||
"serialNumber": "122107031694", | ||
"lastReportDate": 1694182111, | ||
"devType": 1, | ||
"lastReportWatts": 193, | ||
"maxReportWatts": 289 | ||
}, | ||
{ | ||
"serialNumber": "122107031731", | ||
"lastReportDate": 1694182200, | ||
"devType": 1, | ||
"lastReportWatts": 22, | ||
"maxReportWatts": 296 | ||
}, | ||
{ | ||
"serialNumber": "122107033673", | ||
"lastReportDate": 1694182140, | ||
"devType": 1, | ||
"lastReportWatts": 21, | ||
"maxReportWatts": 296 | ||
}, | ||
{ | ||
"serialNumber": "122107033629", | ||
"lastReportDate": 1694182081, | ||
"devType": 1, | ||
"lastReportWatts": 194, | ||
"maxReportWatts": 289 | ||
}, | ||
{ | ||
"serialNumber": "122107035554", | ||
"lastReportDate": 1694182170, | ||
"devType": 1, | ||
"lastReportWatts": 21, | ||
"maxReportWatts": 296 | ||
}, | ||
{ | ||
"serialNumber": "122107033602", | ||
"lastReportDate": 1694181992, | ||
"devType": 1, | ||
"lastReportWatts": 22, | ||
"maxReportWatts": 296 | ||
}, | ||
{ | ||
"serialNumber": "122107035597", | ||
"lastReportDate": 1694182052, | ||
"devType": 1, | ||
"lastReportWatts": 21, | ||
"maxReportWatts": 296 | ||
}, | ||
{ | ||
"serialNumber": "122107032623", | ||
"lastReportDate": 1694181960, | ||
"devType": 1, | ||
"lastReportWatts": 190, | ||
"maxReportWatts": 279 | ||
}, | ||
{ | ||
"serialNumber": "122107035544", | ||
"lastReportDate": 1694182140, | ||
"devType": 1, | ||
"lastReportWatts": 191, | ||
"maxReportWatts": 283 | ||
}, | ||
{ | ||
"serialNumber": "122107035551", | ||
"lastReportDate": 1694182111, | ||
"devType": 1, | ||
"lastReportWatts": 191, | ||
"maxReportWatts": 287 | ||
}, | ||
{ | ||
"serialNumber": "122107032918", | ||
"lastReportDate": 1694181930, | ||
"devType": 1, | ||
"lastReportWatts": 21, | ||
"maxReportWatts": 296 | ||
}, | ||
{ | ||
"serialNumber": "122107032940", | ||
"lastReportDate": 1694182172, | ||
"devType": 1, | ||
"lastReportWatts": 21, | ||
"maxReportWatts": 296 | ||
}, | ||
{ | ||
"serialNumber": "122107025358", | ||
"lastReportDate": 1694181961, | ||
"devType": 1, | ||
"lastReportWatts": 190, | ||
"maxReportWatts": 279 | ||
}, | ||
{ | ||
"serialNumber": "122107032484", | ||
"lastReportDate": 1694182142, | ||
"devType": 1, | ||
"lastReportWatts": 21, | ||
"maxReportWatts": 296 | ||
} | ||
] |
1 change: 1 addition & 0 deletions
1
tests/fixtures/7.6.175_envoy_s_metered_cts_disabled/api_v1_production_inverters_log.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"headers": {"server": "openresty/1.17.8.1", "date": "Fri, 08 Sep 2023 14:10:45 GMT", "content-type": "application/json", "content-length": "2109", "connection": "keep-alive", "strict-transport-security": "max-age=63072000; includeSubdomains", "x-frame-options": "DENY", "x-content-type-options": "nosniff"}, "code": 200} |
1 change: 1 addition & 0 deletions
1
tests/fixtures/7.6.175_envoy_s_metered_cts_disabled/api_v1_production_log.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"headers": {"server": "openresty/1.17.8.1", "date": "Fri, 08 Sep 2023 14:10:45 GMT", "content-type": "application/json", "content-length": "96", "connection": "keep-alive", "strict-transport-security": "max-age=63072000; includeSubdomains", "x-frame-options": "DENY", "x-content-type-options": "nosniff"}, "code": 200} |
Oops, something went wrong.