update to newest version but graphs are not updating (Solved)

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
sash
Posts: 9
Joined: Thursday 28 February 2019 16:58
Target OS: Linux
Domoticz version:
Contact:

update to newest version but graphs are not updating (Solved)

Post by sash »

Version: 2025.1 (build 16581)
Build Hash: 13cb08fcd
Compile Date: 2025-03-18 21:51:10
dzVents Version: 3.1.8
Python Version: 3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0]
Active User: admin
arm64 debian on a orangepie 5plus also riscv64 spacemit bpi-f3 they both had the newest domoticz installed and both have the same behavior

hi there for some reason graphs are not updating for virtual-device (energy counter). I used this method for years but it does not seam to work in the newer versions domoticz .
perl script that takes a live MQTT feed and publishes it to domoticz

what the code does it take a MQTT live feed from an energy monitor. , sample it then averages it over a certtian period then publishes it to domoticz and a second mqtt stream that an mqtt connected lcd screen displaying current data

Code: Select all

#!/usr/bin/perl -w
my $MQTT2=0;
sleep(15);
open(SUB, "/usr/bin/mosquitto_sub -h 192.168.168.150 -t /solar |");
my $cnt=0;
while ($MQTT = <SUB>) {
$cnt++;
$MQTT2=($MQTT2+$MQTT);
print "$MQTT";
if ($cnt >15){
$MQTT2=($MQTT2/$cnt);
$MQTT2=int($MQTT2);
$cnt=0;
print " average = $MQTT2\n";
system("mosquitto_pub  -t /energy/solar -m '$MQTT2'");
system("curl -s 'http://127.0.0.1:8080/json.htm?type=command&param=udevice&idx=2&nvalue=0&svalue=$MQTT2;0' ");
$MQTT2=0;
}
}
it publishes correctly and live data displays in domoticz but there never any entry points into the graphs.
Image
it displays live data
Image
but not the historical data
Image

I have zigbee outlet switch with energy capabilities it displays historical energy usage
sash
Posts: 9
Joined: Thursday 28 February 2019 16:58
Target OS: Linux
Domoticz version:
Contact:

Re: update to newest version but graphs are not updating

Post by sash »

I compiled from the current dev to the current stable and it is the same. no graphs are drawn. when you first initiated the virtual device it draws one instantaneous block. but at the next graph update. that one block is gone... I will keep rolling back and see when it last worked. I have current version running on a device and it 2022.1 I believe another device had 2023.2 and it it was working as well
sash
Posts: 9
Joined: Thursday 28 February 2019 16:58
Target OS: Linux
Domoticz version:
Contact:

Re: update to newest version but graphs are not updating

Post by sash »

okay it seams that i forgot that I needed to enable compute now it seams to drawing my graphs
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest