Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.3.15: Artist field is triggered as changed in around 10 seconds interval despite there is no real data change #90

Closed
hsteinme opened this issue Sep 12, 2024 · 1 comment

Comments

@hsteinme
Copy link

Test script:

on({id: 'squeezeboxrpc.0.Players.CCA_EssZimmer.state', change: 'ne'}, function(Obj) {
    log('New state: ' + ['PAUSE', 'PLAY', 'STOP'][Obj.state.val]);
})
on({id: 'squeezeboxrpc.0.Players.CCA_EssZimmer.Artist', change: 'ne'}, function(Obj) {
    log('Artist changed');
})

Resulting log:

javascript.0 | 22:06:44.927 | info | script.js.common._Test._Test~: New state: PLAY
javascript.0 | 22:06:45.825 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:06:45.829 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:06:55.329 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:06:55.333 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:07:04.838 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:07:04.846 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:07:14.359 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:07:14.363 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:07:15.307 | info | script.js.common._Test._Test~: New state: PAUSE
javascript.0 | 22:07:23.859 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:07:23.862 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:07:33.379 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:07:33.383 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:07:42.913 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:07:42.917 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:07:50.498 | info | script.js.common._Test._Test~: New state: STOP
javascript.0 | 22:07:52.400 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:07:52.449 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:08:01.918 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:08:01.921 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:08:12.196 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:08:12.199 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:08:20.944 | info | script.js.common._Test._Test~: Artist changed
javascript.0 | 22:08:20.947 | info | script.js.common._Test._Test~: Artist changed
@oweitman
Copy link
Owner

oweitman commented Sep 12, 2024

yes. the adapter receives minimum information every 950 ms.
every 10 seconds LMS sends some additional information.
the adapter has to write this information into data points for each grouped player (synchronized player).

The comparison and data management requires additional performance in the adapter and iobroker (1.reading the previous data, 2.comparing the data and 3.writing the data 4.updating the internal memory for next comparison).

Therefore all data is written as it is sent by the LMS (so only 1+3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants