Define explicit time range for the first 30 minutes of the tariff.

Add tariff-config to define the tariff as dynamic, meaning that it can start
at any minute (modulo operation times).
This commit is contained in:
Gerhard Hoffmann 2024-02-21 11:19:53 +01:00
parent a813ea48bc
commit e441d62f4d

View File

@ -1,6 +1,6 @@
{ {
"Project" : "Kirchdorf", "Project" : "Kirchdorf",
"Version" : "1.0.0", "Version" : "1.1.0",
"Info" : "", "Info" : "",
"Currency": [ "Currency": [
{ {
@ -49,51 +49,11 @@
"time_range_tbase_id": 1, "time_range_tbase_id": 1,
"time_range_payment_rate_id": 2, "time_range_payment_rate_id": 2,
"time_range_from": 0, "time_range_from": 0,
"time_range_to": 5,
"time_range_comment": "[from, to[ in minutes"
},
{
"time_range_id": 2,
"time_range_tbase_id": 1,
"time_range_payment_rate_id": 2,
"time_range_from": 5,
"time_range_to": 10,
"time_range_comment": "[from, to[ in minutes"
},
{
"time_range_id": 3,
"time_range_tbase_id": 1,
"time_range_payment_rate_id": 2,
"time_range_from": 10,
"time_range_to": 15,
"time_range_comment": "[from, to[ in minutes"
},
{
"time_range_id": 4,
"time_range_tbase_id": 1,
"time_range_payment_rate_id": 2,
"time_range_from": 15,
"time_range_to": 20,
"time_range_comment": "[from, to[ in minutes"
},
{
"time_range_id": 5,
"time_range_tbase_id": 1,
"time_range_payment_rate_id": 2,
"time_range_from": 20,
"time_range_to": 25,
"time_range_comment": "[from, to[ in minutes"
},
{
"time_range_id": 6,
"time_range_tbase_id": 1,
"time_range_payment_rate_id": 2,
"time_range_from": 25,
"time_range_to": 30, "time_range_to": 30,
"time_range_comment": "[from, to[ in minutes" "time_range_comment": "[from, to[ in minutes"
}, },
{ {
"time_range_id": 7, "time_range_id": 2,
"time_range_tbase_id": 1, "time_range_tbase_id": 1,
"time_range_payment_rate_id": 1, "time_range_payment_rate_id": 1,
"time_range_from": 30, "time_range_from": 30,
@ -101,7 +61,7 @@
"time_range_comment": "[from, to[ in minutes" "time_range_comment": "[from, to[ in minutes"
}, },
{ {
"time_range_id": 8, "time_range_id": 3,
"time_range_tbase_id": 1, "time_range_tbase_id": 1,
"time_range_payment_rate_id": 1, "time_range_payment_rate_id": 1,
"time_range_from": 35, "time_range_from": 35,
@ -109,7 +69,7 @@
"time_range_comment": "[from, to[ in minutes" "time_range_comment": "[from, to[ in minutes"
}, },
{ {
"time_range_id": 9, "time_range_id": 4,
"time_range_tbase_id": 1, "time_range_tbase_id": 1,
"time_range_payment_rate_id": 1, "time_range_payment_rate_id": 1,
"time_range_from": 40, "time_range_from": 40,
@ -117,7 +77,7 @@
"time_range_comment": "[from, to[ in minutes" "time_range_comment": "[from, to[ in minutes"
}, },
{ {
"time_range_id": 10, "time_range_id": 5,
"time_range_tbase_id": 1, "time_range_tbase_id": 1,
"time_range_payment_rate_id": 1, "time_range_payment_rate_id": 1,
"time_range_from": 45, "time_range_from": 45,
@ -125,7 +85,7 @@
"time_range_comment": "[from, to[ in minutes" "time_range_comment": "[from, to[ in minutes"
}, },
{ {
"time_range_id": 11, "time_range_id": 6,
"time_range_tbase_id": 1, "time_range_tbase_id": 1,
"time_range_payment_rate_id": 1, "time_range_payment_rate_id": 1,
"time_range_from": 50, "time_range_from": 50,
@ -133,7 +93,7 @@
"time_range_comment": "[from, to[ in minutes" "time_range_comment": "[from, to[ in minutes"
}, },
{ {
"time_range_id": 12, "time_range_id": 7,
"time_range_tbase_id": 1, "time_range_tbase_id": 1,
"time_range_payment_rate_id": 1, "time_range_payment_rate_id": 1,
"time_range_from": 55, "time_range_from": 55,
@ -141,7 +101,7 @@
"time_range_comment": "[from, to[ in minutes" "time_range_comment": "[from, to[ in minutes"
}, },
{ {
"time_range_id": 13, "time_range_id": 8,
"time_range_tbase_id": 1, "time_range_tbase_id": 1,
"time_range_payment_rate_id": 1, "time_range_payment_rate_id": 1,
"time_range_from": 60, "time_range_from": 60,
@ -149,7 +109,7 @@
"time_range_comment": "[from, to[ in minutes" "time_range_comment": "[from, to[ in minutes"
}, },
{ {
"time_range_id": 14, "time_range_id": 9,
"time_range_tbase_id": 1, "time_range_tbase_id": 1,
"time_range_payment_rate_id": 1, "time_range_payment_rate_id": 1,
"time_range_from": 65, "time_range_from": 65,
@ -157,7 +117,7 @@
"time_range_comment": "[from, to[ in minutes" "time_range_comment": "[from, to[ in minutes"
}, },
{ {
"time_range_id": 15, "time_range_id": 10,
"time_range_tbase_id": 1, "time_range_tbase_id": 1,
"time_range_payment_rate_id": 1, "time_range_payment_rate_id": 1,
"time_range_from": 70, "time_range_from": 70,
@ -165,7 +125,7 @@
"time_range_comment": "[from, to[ in minutes" "time_range_comment": "[from, to[ in minutes"
}, },
{ {
"time_range_id": 16, "time_range_id": 11,
"time_range_tbase_id": 1, "time_range_tbase_id": 1,
"time_range_payment_rate_id": 1, "time_range_payment_rate_id": 1,
"time_range_from": 75, "time_range_from": 75,
@ -173,7 +133,7 @@
"time_range_comment": "[from, to[ in minutes" "time_range_comment": "[from, to[ in minutes"
}, },
{ {
"time_range_id": 17, "time_range_id": 12,
"time_range_tbase_id": 1, "time_range_tbase_id": 1,
"time_range_payment_rate_id": 1, "time_range_payment_rate_id": 1,
"time_range_from": 80, "time_range_from": 80,
@ -181,7 +141,7 @@
"time_range_comment": "[from, to[ in minutes" "time_range_comment": "[from, to[ in minutes"
}, },
{ {
"time_range_id": 18, "time_range_id": 13,
"time_range_tbase_id": 1, "time_range_tbase_id": 1,
"time_range_payment_rate_id": 1, "time_range_payment_rate_id": 1,
"time_range_from": 85, "time_range_from": 85,
@ -189,6 +149,18 @@
"time_range_comment": "[from, to[ in minutes" "time_range_comment": "[from, to[ in minutes"
} }
], ],
"TimeStepConfig" : [
{
"tsconfig_id" : 1,
"tsconfig_label" : "static",
"tsconfig_comment" : "read time steps as given in jsonfiles"
},
{
"tsconfig_id" : 2,
"tsconfig_label" : "dynamic",
"tsconfig_comment" : "determine timesteps at runtime"
}
],
"PaymentOption": [ "PaymentOption": [
{ {
"pop_id": 1049, "pop_id": 1049,
@ -214,7 +186,7 @@
{ {
"pra_payment_option_id": 1049, "pra_payment_option_id": 1049,
"pra_payment_unit_id": 2, "pra_payment_unit_id": 2,
"pra_price": 5 "pra_price": 30
} }
], ],
"Duration": [ "Duration": [