Page 1 of 1

Getting counter data from p1

Posted: Saturday 06 March 2021 12:40
by EdwinK
Hi,

I want to have the following. My P1 meter has a data field

Data: "6132890;5945574;0;0;313;0",
result: [
{
AddjMulti: 1,
AddjMulti2: 1,
AddjValue: 0,
AddjValue2: 0,
BatteryLevel: 255,
Counter: "12078.464",
CounterDeliv: "0.000",
CounterDelivToday: "0.000 kWh",
CounterToday: "3.735 kWh",
CustomImage: 0,
Data: "6132890;5945574;0;0;313;0",
Description: "",
Favorite: 1,
HardwareDisabled: false,
HardwareID: 2,
HardwareName: "P1 meter",
HardwareType: "P1 Smart Meter USB",
HardwareTypeVal: 4,
HaveTimeout: false,
ID: "0001",
LastUpdate: "2021-03-06 12:26:35",
Name: "P1 Elektra",
Notifications: "false",
PlanID: "0",
PlanIDs: [
0
],
Protected: false,
ShowNotifications: true,
SignalLevel: "-",
SubType: "Energy",
SwitchTypeVal: 0,
Timers: "false",
Type: "P1 Smart Meter",
TypeImg: "counter",
Unit: 1,
Usage: "313 Watt",
UsageDeliv: "0 Watt",
Used: 1,
XOffset: "0",
YOffset: "0",
idx: "1"
}
],
Something like this would be ideal.

2meterstand.jpg
2meterstand.jpg (65.7 KiB) Viewed 401 times

Re: Getting counter data from p1

Posted: Sunday 07 March 2021 0:12
by Lokonli
You will get something like this in the next beta.

Sent from my SM-A320FL using Tapatalk


Re: Getting counter data from p1

Posted: Sunday 07 March 2021 10:27
by HansieNL
Maybe for now you can use the following codes (change 274 and 320 to your own IDX):

Code: Select all

blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Meterstanden'

blocks['274_8'] = {
	idx: '274_8',
	title: 'Meterstand laag',
}
blocks['274_7'] = {
	idx: '274_7',
	title: 'Meterstand normaal',
}
blocks['320_2'] = {
	idx: '320_2',
	title: 'Meterstand',
}

Code: Select all

columns[1] = {}
columns[1]['blocks'] = ['blocktitle_1','274_8','274_7','320_2']
columns[1]['width'] = 5;

Re: Getting counter data from p1

Posted: Sunday 07 March 2021 11:11
by EdwinK
Lokonli wrote: Sunday 07 March 2021 0:12 You will get something like this in the next beta.

Sent from my SM-A320FL using Tapatalk
Thanks :)

Re: Getting counter data from p1

Posted: Sunday 07 March 2021 11:12
by EdwinK
HansieNL wrote: Sunday 07 March 2021 10:27 Maybe for now you can use the following codes (change 274 and 320 to your own IDX):

Code: Select all

blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Meterstanden'

blocks['274_8'] = {
	idx: '274_8',
	title: 'Meterstand laag',
}
blocks['274_7'] = {
	idx: '274_7',
	title: 'Meterstand normaal',
}
blocks['320_2'] = {
	idx: '320_2',
	title: 'Meterstand',
}

Code: Select all

columns[1] = {}
columns[1]['blocks'] = ['blocktitle_1','274_8','274_7','320_2']
columns[1]['width'] = 5;
Lokonli wrote: Sunday 07 March 2021 0:12 You will get something like this in the next beta.

Sent from my SM-A320FL using Tapatalk
Thanks :) Will try it latertoday.