rusty_home/demo_config.json

256 lines
6.0 KiB
JSON
Raw Normal View History

2024-02-07 10:29:24 +01:00
{
"influx": {
"url": "http://localhost:8086",
"database": "rust",
"username": "8< snip >8",
"password": "8< snip >8"
},
"vars": {
"site_id": "8< snip >8",
"api_key": "8< snip >8"
},
"configs": [
{
"url": "https://pass.telekom.de/api/service/generic/v1/status",
"values": [
{
"path": [
"usedVolume"
],
"tags": {
"system": "internet_fraenk",
"metric": "used_volume",
"unit": "B"
}
}
]
},
{
"url": "https://monitoringapi.solaredge.com/site/{{site_id}}/overview?api_key={{api_key}}",
"values": [
{
"path": [
"overview",
"lifeTimeData",
"energy"
],
"tags": {
"system": "photovoltaik",
"metric": "liftimeEnergyProduced",
"unit": "Wh"
},
"measurement": "environmental_benefits"
},
{
"path": [
"overview",
"lastYearData",
"energy"
],
"tags": {
"system": "photovoltaik",
"metric": "current_year_production",
"unit": "Wh"
},
"measurement": "environmental_benefits"
},
{
"path": [
"overview",
"lastMonthData",
"energy"
],
"tags": {
"system": "photovoltaik",
"metric": "current_month_production",
"unit": "Wh"
},
"measurement": "environmental_benefits"
},
{
"path": [
"overview",
"lastDayData",
"energy"
],
"tags": {
"system": "photovoltaik",
"metric": "current_day_production",
"unit": "Wh"
},
"measurement": "environmental_benefits"
}
]
},
{
"url": "https://monitoringapi.solaredge.com/site/{{site_id}}/storageData?api_key={{api_key}}&startTime={{day_start}}&endTime={{day_end}}",
"values": [
{
"path": [
"storageData",
"batteries",
0,
"telemetries",
-1,
"power"
],
"tags": {
"system": "photovoltaik",
"metric": "battery_power",
"unit": "W"
},
"measurement": "environmental_benefits"
},
{
"path": [
"storageData",
"batteries",
0,
"telemetries",
-1,
"lifeTimeEnergyDischarged"
],
"tags": {
"system": "photovoltaik",
"metric": "battery_lifetime_energy_discharged",
"unit": "Wh"
},
"measurement": "environmental_benefits"
},
{
"path": [
"storageData",
"batteries",
0,
"telemetries",
-1,
"lifeTimeEnergyCharged"
],
"tags": {
"system": "photovoltaik",
"metric": "battery_lifetime_energy_charged",
"unit": "Wh"
},
"measurement": "environmental_benefits"
},
{
"path": [
"storageData",
"batteries",
0,
"telemetries",
-1,
"batteryPercentageState"
],
"tags": {
"system": "photovoltaik",
"metric": "battery_charge_state",
"unit": "%"
},
"measurement": "environmental_benefits"
},
{
"path": [
"storageData",
"batteries",
0,
"telemetries",
-1,
"fullPackEnergyAvailable"
],
"tags": {
"system": "photovoltaik",
"metric": "battery_full_charge_energy",
"unit": "Wh"
},
"measurement": "environmental_benefits"
},
{
"path": [
"storageData",
"batteries",
0,
"telemetries",
-1,
"internalTemp"
],
"tags": {
"system": "photovoltaik",
"metric": "battery_temp",
"unit": "C"
},
"measurement": "environmental_benefits"
}
]
},
{
"url": "https://monitoringapi.solaredge.com/site/{{site_id}}/envBenefits?api_key={{api_key}}",
"values": [
{
"path": [
"envBenefits",
"lightBulbs"
],
"tags": {
"system": "photovoltaik",
"metric": "lightBulbs",
"unit": "pieces"
},
"measurement": "environmental_benefits"
},
{
"path": [
"envBenefits",
"treesPlanted"
],
"tags": {
"system": "photovoltaik",
"metric": "trees_planted",
"unit": "pieces"
},
"measurement": "environmental_benefits"
},
{
"path": [
"envBenefits",
"gasEmissionSaved",
"nox"
],
"tags": {
"system": "photovoltaik",
"metric": "nox_saved",
"unit": "kg"
},
"measurement": "environmental_benefits"
},
{
"path": [
"envBenefits",
"gasEmissionSaved",
"so2"
],
"tags": {
"system": "photovoltaik",
"metric": "so2_saved",
"unit": "kg"
},
"measurement": "environmental_benefits"
},
{
"path": [
"envBenefits",
"gasEmissionSaved",
"co2"
],
"tags": {
"system": "photovoltaik",
"metric": "co2_saved",
"unit": "kg"
},
"measurement": "environmental_benefits"
}
]
}
]
}