action corrently_gsi_prediction { label: "Prediction" description: "Retrieval the GreenPowerIndex (GrünstromIndex) for a given city (by zipcode) in Germany.\n" provider: corrently method: GET path: "/gsi/prediction" encoding: json input: { type: "object" properties: { key: { type: "string" } zip: { type: "string" } } additionalProperties: false } output: { type: "object" properties: { forecast: { type: "array" description: "Prediction for the upcomming hours" items: { type: "object" properties: { co2_g_oekostrom: { type: "integer" description: "CO2 footprint in Gramm per kwh (only Green Power)" } energyprice: { type: "number" description: "Local/regional energyprice modification (cent per kWh or euro per MWh)." } epochtime: { type: "integer" description: "Timestamps in Seconds" } gsi: { type: "integer" description: "Actual GreenPowerIndex for given Timestamp (between 0-100)" } scaled: { type: "boolean" description: "Indicates if scaling is in operation to predict values" } sci: { type: "integer" description: "Subindex just for Solar Energy" } timeStamp: { type: "integer" description: "Timestamp in Standard Milliseconds" } } } } location: { type: "object" description: "Standarized location info sourced for prediction" properties: { city: { type: "string" description: "Pretty Print city name" } zip: { type: "string" description: "Zipcode (Postleitzahl)" } } } matrix: { type: "object" description: "Device switching recommendation." properties: { h0: { type: "object" description: "Indicates number of hours a device should run" properties: { avg_1: { type: "string" description: "device should run in 1 hour" } avg_2: { type: "string" description: "device should run in 2 hours" } avg_3: { type: "string" description: "device should run in 3 hour" } } } } } } } }