Weird behavior with custom camera page (network traffic)

Post Reply
Nautilus
Posts: 678
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi
Domoticz version: beta
Location: Finland
Contact:

Weird behavior with custom camera page (network traffic)

Post by Nautilus » Monday 05 December 2016 11:17

Hi,

I've recently added a new custom page to ~/domoticz/www/templates and it seems to be working well. However, while checking something on the dev console (network tab in Chrome's "inspect" console) I noticed that once I visit this custom page and return to any other tab, the requests for camera images keep coming in until I close the whole tab. There are four cameras with HD image so this is quite significant network traffic which I'd like to avoid when possible. Can anyone give me a hint - should I specify "something" in the custom page code to stop this? Could it relate to some (app)cache behavior? The page is simple html page with some javascript to update the images (source of which are .php pages), same logic as used in many of custom front page examples here.

Here's an example when I have returned from the custom page to Dashboard tab:
Capture.PNG
Capture.PNG (80.52 KiB) Viewed 519 times

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests