Current section
Files
Jump to
Current section
Files
lib/tehama_client/mock_data.ex
defmodule TehamaClient.MockData do
@moduledoc false
def site() do
%{
access_code: "88471391331",
address: "",
city: "Pembroke",
dcap_ip_adrs: "",
get_port_num: "false",
knocker_dly: "5",
knocker_dly_enbld: "False",
name: "Elan Flower Mound #12294 (28667)",
nodeId: "614",
nodeType: "DCAP",
note: "",
parent_node_id: "4462",
property_id: "4706362",
sql_user_name: "cituser",
state: "NC",
zipcode: "28372"
}
end
def device() do
%{
Addr: "",
Apt: "68 ",
NodeId: "5532",
Building: "1",
LocationNote: "Vacant",
LatestLinkStatusDataReadTime: "2022-03-02 04:51:12",
BattVolt: "3020",
LP: "e3000a78",
"RadioID-Dec": "2175922659",
"RadioID-Hex": "81B1F1E3",
readings: [
%{
RawReading: 47190,
ReadTime: "2022-03-02 04:29:41",
Reading: 491_900,
alerts: [],
display_type: "Encoded_Meter_1",
factor: "10.000",
meter_serial_number: "0000203389",
meter_style: "A",
meter_type: "W",
sensor_type: "53"
}
]
}
end
end