fixes seed data

This commit is contained in:
Patrick McDonagh
2016-06-08 12:46:28 -05:00
parent 6b87f541b2
commit bc35d73da0
7 changed files with 82 additions and 66 deletions

View File

@@ -24,18 +24,22 @@ module.exports = {
},
seedData:[
{
id: 1,
data_type: "Floating Point",
plc_type: "REAL"
},
{
id: 2,
data_type: "Integer",
plc_type: "INT"
},
{
id: 3,
data_type: "Boolean",
plc_type: "BOOL"
},
{
id: 4,
data_type: "String (CLX Only)",
plc_type: "STRING"
}

View File

@@ -23,8 +23,8 @@ module.exports = {
}
}, seedData: [
{
id: 0,
device_type: 0,
id: 1,
device_type: 1,
address: '192.168.1.10'
}
]

View File

@@ -21,12 +21,15 @@ module.exports = {
},
seedData: [
{
id: 1,
dType: 'CLX',
},
{
id: 2,
dType: 'Micro800',
},
{
id:3,
dType: 'E300',
},
]

View File

@@ -24,12 +24,12 @@ module.exports = {
},
seedData:[
{
id: 0,
id: 1,
event_class: 'analog',
description: 'Analog Alarm'
},
{
id: 1,
id: 2,
event_class: 'bit',
description: 'Status Bit'
},

View File

@@ -21,15 +21,19 @@ module.exports = {
},
seedData:[
{
id: 1,
note_type: 'Downtime Explanation'
},
{
id: 2,
note_type: 'Configuration Change'
},
{
id: 3,
note_type: 'Info'
},
{
id: 4,
note_type: 'Other'
},
]

View File

@@ -54,7 +54,7 @@ module.exports = {
{
name: 'card_type',
tag_class: 1,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Card_Type',
data_type: 4,
change_threshold: 0,
@@ -64,7 +64,7 @@ module.exports = {
{
name: 'card_id',
tag_class: 1,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].ID',
data_type: 2,
change_threshold: 0.5,
@@ -73,7 +73,7 @@ module.exports = {
{
name: 'polished_rod_hp',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Polished_Rod_HP',
data_type: 1,
change_threshold: 1.0,
@@ -82,7 +82,7 @@ module.exports = {
{
name: 'downhole_max_load',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Downhole_Max_Load.Load',
data_type: 1,
change_threshold: 400.0,
@@ -91,7 +91,7 @@ module.exports = {
{
name: 'downhole_gross_stroke',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Downhole_GrossStroke',
data_type: 1,
change_threshold: 2.0,
@@ -100,7 +100,7 @@ module.exports = {
{
name: 'spm',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].SPM',
data_type: 1,
change_threshold: 0.5,
@@ -109,7 +109,7 @@ module.exports = {
{
name: 'fluid_gradient',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Params.Fluid_Gradient',
data_type: 1,
change_threshold: 0.002,
@@ -118,7 +118,7 @@ module.exports = {
{
name: 'tubing_head_pressure',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Params.Tubing_Head_Pressure',
data_type: 1,
change_threshold: 25.0,
@@ -127,7 +127,7 @@ module.exports = {
{
name: 'surface_min_load',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Surface_Min.Load',
data_type: 1,
change_threshold: 400.0,
@@ -136,7 +136,7 @@ module.exports = {
{
name: 'downhole_fluid_load',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Downhole_FluidLoad',
data_type: 1,
change_threshold: 400.0,
@@ -145,7 +145,7 @@ module.exports = {
{
name: 'downhole_max_position',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Downhole_Max_Position.Position',
data_type: 1,
change_threshold: 2.0,
@@ -154,7 +154,7 @@ module.exports = {
{
name: 'downhole_net_stroke',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Downhole_NetStroke',
data_type: 1,
change_threshold: 2.0,
@@ -163,7 +163,7 @@ module.exports = {
{
name: 'fillage_percent',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Fillage_Percent',
data_type: 1,
change_threshold: 5.0,
@@ -172,7 +172,7 @@ module.exports = {
{
name: 'pump_hp',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Pump_HP',
data_type: 1,
change_threshold: 1.0,
@@ -181,7 +181,7 @@ module.exports = {
{
name: 'surface_min_position',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Surface_Min.Position',
data_type: 1,
change_threshold: 1.0,
@@ -190,7 +190,7 @@ module.exports = {
{
name: 'pump_intake_pressure',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Pump_Intake_Pressure',
data_type: 1,
change_threshold: 200.0,
@@ -199,7 +199,7 @@ module.exports = {
{
name: 'surface_max_position',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Surface_Max.Position',
data_type: 1,
change_threshold: 1.0,
@@ -208,7 +208,7 @@ module.exports = {
{
name: 'tubing_movement',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Tubing_Movement',
data_type: 1,
change_threshold: 1.0,
@@ -217,7 +217,7 @@ module.exports = {
{
name: 'downhole_min_position',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Downhole_Min_Position.Position',
data_type: 1,
change_threshold: 2.0,
@@ -226,7 +226,7 @@ module.exports = {
{
name: 'surface_max_load',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Surface_Max.Load',
data_type: 1,
change_threshold: 400.0,
@@ -235,7 +235,7 @@ module.exports = {
{
name: 'stuffing_box_friction',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Params.Stuffing_Box_Friction',
data_type: 1,
change_threshold: 1.0,
@@ -244,7 +244,7 @@ module.exports = {
{
name: 'dt',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Params.dt',
data_type: 1,
change_threshold: 0.001,
@@ -253,7 +253,7 @@ module.exports = {
{
name: 'downhole_min_load',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Downhole_Min_Load.Load',
data_type: 1,
change_threshold: 400.0,
@@ -262,7 +262,7 @@ module.exports = {
{
name: 'surface_stroke_length',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Surface_StrokeLength',
data_type: 1,
change_threshold: 1.0,
@@ -271,7 +271,7 @@ module.exports = {
{
name: 'downhole_adjusted_gross_stroke',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Downhole_AdjustedGrossStroke',
data_type: 1,
change_threshold: 2.0,
@@ -280,7 +280,7 @@ module.exports = {
{
name: 'fluid_level',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Card_Past[1].Fluid_Above_Pump',
data_type: 1,
change_threshold: 200.0,
@@ -289,7 +289,7 @@ module.exports = {
{
name: 'stroke_production',
tag_class: 2,
deviceID: 0,
deviceID: 1,
tag: 'Stroke_Production',
data_type: 1,
change_threshold: 0.005,
@@ -298,7 +298,7 @@ module.exports = {
// {
// name: 'electricity_cost',
// tag_class: 3,
// deviceID: 0,
// deviceID: 1,
// tag: 'GAUGEOFF_Electricity_Cost',
// data_type: 1,
// change_threshold: 0,
@@ -307,7 +307,7 @@ module.exports = {
// {
// name: 'percent_run',
// tag_class: 3,
// deviceID: 0,
// deviceID: 1,
// tag: 'GAUGEOFF_Percent_Run',
// data_type: 1,
// change_threshold: 0,
@@ -316,7 +316,7 @@ module.exports = {
// {
// name: 'average_spm',
// tag_class: 3,
// deviceID: 0,
// deviceID: 1,
// tag: 'GAUGEOFF_Average_SPM',
// data_type: 1,
// change_threshold: 0,
@@ -325,7 +325,7 @@ module.exports = {
// {
// name: 'hour',
// tag_class: 3,
// deviceID: 0,
// deviceID: 1,
// tag: 'GAUGEOFF_DateTime.Hour',
// data_type: 'DINT',
// change_threshold: 0,
@@ -334,7 +334,7 @@ module.exports = {
// {
// name: 'min',
// tag_class: 3,
// deviceID: 0,
// deviceID: 1,
// tag: 'GAUGEOFF_DateTime.Min',
// data_type: 'DINT',
// change_threshold: 0,
@@ -343,7 +343,7 @@ module.exports = {
// {
// name: 'kwh',
// tag_class: 3,
// deviceID: 0,
// deviceID: 1,
// tag: 'GAUGEOFF_kWh',
// data_type: 1,
// change_threshold: 0,
@@ -352,7 +352,7 @@ module.exports = {
// {
// name: 'lifting_cost',
// tag_class: 3,
// deviceID: 0,
// deviceID: 1,
// tag: 'GAUGEOFF_Lifting_Cost',
// data_type: 1,
// change_threshold: 0,
@@ -361,7 +361,7 @@ module.exports = {
// {
// name: 'polished_rod_hp',
// tag_class: 3,
// deviceID: 0,
// deviceID: 1,
// tag: 'GAUGEOFF_Polished_Rod_HP',
// data_type: 1,
// change_threshold: 0,
@@ -370,7 +370,7 @@ module.exports = {
// {
// name: 'month',
// tag_class: 3,
// deviceID: 0,
// deviceID: 1,
// tag: 'GAUGEOFF_DateTime.Month',
// data_type: 'DINT',
// change_threshold: 0,
@@ -379,7 +379,7 @@ module.exports = {
// {
// name: 'inflow_rate',
// tag_class: 3,
// deviceID: 0,
// deviceID: 1,
// tag: 'GAUGEOFF_Inflow_Rate',
// data_type: 1,
// change_threshold: 0,
@@ -388,7 +388,7 @@ module.exports = {
// {
// name: 'fluid_level',
// tag_class: 3,
// deviceID: 0,
// deviceID: 1,
// tag: 'GAUGEOFF_Fluid_Above_Pump',
// data_type: 1,
// change_threshold: 0,
@@ -397,7 +397,7 @@ module.exports = {
// {
// name: 'sec',
// tag_class: 3,
// deviceID: 0,
// deviceID: 1,
// tag: 'GAUGEOFF_DateTime.Sec',
// data_type: 'DINT',
// change_threshold: 0,
@@ -406,7 +406,7 @@ module.exports = {
// {
// name: 'full_card_production',
// tag_class: 3,
// deviceID: 0,
// deviceID: 1,
// tag: 'GAUGEOFF_Full_Card_Production',
// data_type: 1,
// change_threshold: 0,
@@ -415,7 +415,7 @@ module.exports = {
// {
// name: 'year',
// tag_class: 3,
// deviceID: 0,
// deviceID: 1,
// tag: 'GAUGEOFF_DateTime.Year',
// data_type: 'DINT',
// change_threshold: 0,
@@ -424,7 +424,7 @@ module.exports = {
// {
// name: 'kwh_regen',
// tag_class: 3,
// deviceID: 0,
// deviceID: 1,
// tag: 'GAUGEOFF_kWh_regen',
// data_type: 1,
// change_threshold: 0,
@@ -433,7 +433,7 @@ module.exports = {
// {
// name: 'max_load',
// tag_class: 3,
// deviceID: 0,
// deviceID: 1,
// tag: 'GAUGEOFF_Max_Load',
// data_type: 1,
// change_threshold: 0,
@@ -442,7 +442,7 @@ module.exports = {
// {
// name: 'pump_intake_pressure',
// tag_class: 3,
// deviceID: 0,
// deviceID: 1,
// tag: 'GAUGEOFF_pump_intake_pressure',
// data_type: 1,
// change_threshold: 0,
@@ -451,7 +451,7 @@ module.exports = {
// {
// name: 'day',
// tag_class: 3,
// deviceID: 0,
// deviceID: 1,
// tag: 'GAUGEOFF_DateTime.Day',
// data_type: 'DINT',
// change_threshold: 0,
@@ -460,7 +460,7 @@ module.exports = {
// {
// name: 'production_calculated',
// tag_class: 3,
// deviceID: 0,
// deviceID: 1,
// tag: 'GAUGEOFF_Production_Calculated',
// data_type: 1,
// change_threshold: 0,
@@ -469,7 +469,7 @@ module.exports = {
// {
// name: 'min_load',
// tag_class: 3,
// deviceID: 0,
// deviceID: 1,
// tag: 'GAUGEOFF_Min_Load',
// data_type: 1,
// change_threshold: 0,
@@ -478,7 +478,7 @@ module.exports = {
// {
// name: 'v_gas',
// tag_class: 4,
// deviceID: 0,
// deviceID: 1,
// tag: 'Well_Test.Volume_Gas',
// data_type: 1,
// change_threshold: 0,
@@ -487,7 +487,7 @@ module.exports = {
// {
// name: 'test_duration',
// tag_class: 4,
// deviceID: 0,
// deviceID: 1,
// tag: 'Well_Test.Test_Duration',
// data_type: 1,
// change_threshold: 0,
@@ -496,7 +496,7 @@ module.exports = {
// {
// name: 'v_oil',
// tag_class: 4,
// deviceID: 0,
// deviceID: 1,
// tag: 'Well_Test.Volume_Oil',
// data_type: 1,
// change_threshold: 0,
@@ -505,7 +505,7 @@ module.exports = {
// {
// name: 'k_factor',
// tag_class: 4,
// deviceID: 0,
// deviceID: 1,
// tag: 'Well_Test.k_Factor',
// data_type: 1,
// change_threshold: 0,
@@ -514,7 +514,7 @@ module.exports = {
// {
// name: 'p_v_water',
// tag_class: 4,
// deviceID: 0,
// deviceID: 1,
// tag: 'Well_Test.Projected_Volume_Water',
// data_type: 1,
// change_threshold: 0,
@@ -523,7 +523,7 @@ module.exports = {
// {
// name: 'month',
// tag_class: 4,
// deviceID: 0,
// deviceID: 1,
// tag: 'Well_Test.DateTime_Complete.Month',
// data_type: 'INT',
// change_threshold: 0,
@@ -532,7 +532,7 @@ module.exports = {
// {
// name: 'sec',
// tag_class: 4,
// deviceID: 0,
// deviceID: 1,
// tag: 'Well_Test.DateTime_Complete.Sec',
// data_type: 'INT',
// change_threshold: 0,
@@ -541,7 +541,7 @@ module.exports = {
// {
// name: 'v_water',
// tag_class: 4,
// deviceID: 0,
// deviceID: 1,
// tag: 'Well_Test.Volume_Water',
// data_type: 1,
// change_threshold: 0,
@@ -550,7 +550,7 @@ module.exports = {
// {
// name: 'year',
// tag_class: 4,
// deviceID: 0,
// deviceID: 1,
// tag: 'Well_Test.DateTime_Complete.Year',
// data_type: 'INT',
// change_threshold: 0,
@@ -559,7 +559,7 @@ module.exports = {
// {
// name: 'p_v_oil',
// tag_class: 4,
// deviceID: 0,
// deviceID: 1,
// tag: 'Well_Test.Projected_Volume_Oil',
// data_type: 1,
// change_threshold: 0,
@@ -568,7 +568,7 @@ module.exports = {
// {
// name: 'day',
// tag_class: 4,
// deviceID: 0,
// deviceID: 1,
// tag: 'Well_Test.DateTime_Complete.Day',
// data_type: 'INT',
// change_threshold: 0,
@@ -577,7 +577,7 @@ module.exports = {
// {
// name: 'sg_water',
// tag_class: 4,
// deviceID: 0,
// deviceID: 1,
// tag: 'Well_Test.SG_Water',
// data_type: 1,
// change_threshold: 0,
@@ -586,7 +586,7 @@ module.exports = {
// {
// name: 'api_oil',
// tag_class: 4,
// deviceID: 0,
// deviceID: 1,
// tag: 'Well_Test.API_Oil',
// data_type: 1,
// change_threshold: 0,
@@ -595,7 +595,7 @@ module.exports = {
// {
// name: 'hour',
// tag_class: 4,
// deviceID: 0,
// deviceID: 1,
// tag: 'Well_Test.DateTime_Complete.Hour',
// data_type: 'INT',
// change_threshold: 0,
@@ -604,7 +604,7 @@ module.exports = {
// {
// name: 'min',
// tag_class: 4,
// deviceID: 0,
// deviceID: 1,
// tag: 'Well_Test.DateTime_Complete.Min',
// data_type: 'INT',
// change_threshold: 0,

View File

@@ -24,22 +24,27 @@ module.exports = {
},
seedData:[
{
id: 1,
class_type: 'stroke',
description: 'Stroke Information'
},
{
id: 2,
class_type: 'history',
description: 'Historical Data'
},
{
id: 3,
class_type: 'gaugeoff',
description: 'Gauge Off Data'
},
{
id: 4,
class_type: 'welltest',
description: 'Well Test Data'
},
{
id: 5,
class_type: 'custom',
description: 'Stroke Information'
}