ESPEasy statistics access

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
chromo23
Normal user
Posts: 932
Joined: 10 Sep 2020, 16:02
Location: germany

ESPEasy statistics access

#1 Post by chromo23 » 17 Jan 2025, 09:25

Is there a way to access a specific stats array of a device from the outside? I was thinking about integrating this visually into easyfetch.

TD-er
Core team member
Posts: 9596
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESPEasy statistics access

#2 Post by TD-er » 17 Jan 2025, 09:35

It should, but I just tested it and it doesn't produce valid JSON, so I will have to look into that
You need to add "showpluginstats" as an argument

Like this: http://192.168.10.222/json?sensorupdate ... ginstats=1

TD-er
Core team member
Posts: 9596
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESPEasy statistics access

#3 Post by TD-er » 17 Jan 2025, 09:45

Ah seems to be a simple error where ",}" is failing the JSON linter.

TD-er
Core team member
Posts: 9596
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESPEasy statistics access

#4 Post by TD-er » 17 Jan 2025, 10:09

OK, found the bug, will make a commit for it.
You really need to add the =1 to the argument, like this:
http://192.168.11.55/json?showpluginstats=1

User avatar
chromo23
Normal user
Posts: 932
Joined: 10 Sep 2020, 16:02
Location: germany

Re: ESPEasy statistics access

#5 Post by chromo23 » 17 Jan 2025, 10:12

TD-er wrote: 17 Jan 2025, 10:09 OK, found the bug, will make a commit for it.
You really need to add the =1 to the argument, like this:
http://192.168.11.55/json?showpluginstats=1
Ahh..great. Thanks :)


Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 0 guests