I made a better remote-live-view page [OLD]

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,679
Reaction score
14,042
Location
USA
Question:

On the left hand column, where the Alerts are...the 5th line is cut off. I'm assuming that's the
time. Any way to make those fonts smaller so I can see all of the text...or maybe change the
date format?

Thanks
Doug
Hmm. This is caused by the region/localization settings on the computer running the web browser. What country/region is your PC set for?

Perhaps I should change this code to output a more predictable date and time format, even if it isn't the standard for the country the user lives in?

Thank you bp2008, for this terrific interface. A small token of appreciation is on its way.
Thanks!
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,679
Reaction score
14,042
Location
USA
Question:

On the left hand column, where the Alerts are...the 5th line is cut off. I'm assuming that's the
time. Any way to make those fonts smaller so I can see all of the text...or maybe change the
date format?

Thanks
Doug
I have coded UI2 such that the next release will always output the date in the format: YYYY/MM/DD HH:MM:SS AM/PM

In the meantime, you can override the existing functionality by creating a file named ui2-local-overrides.js in the ui2 directory and pasting in the following code. This code will stop working in the next release.

Code:
// Customize date localization string.
Date.prototype.toLocaleString = function ()
{
	var date = this;
	var ampm = "AM";
	var hour = date.getHours();
	if (hour == 0)
	{
		hour = 12;
	}
	else if (hour == 12)
	{
		ampm = "PM";
	}
	else if (hour > 12)
	{
		hour -= 12;
		ampm = "PM";
	}
	var s = date.getFullYear() + "/" + (date.getMonth() + 1) + "/" + date.getDate() + " " + hour + ":" + date.getMinutes().toString().padLeft(2, '0') + ":" + date.getSeconds().toString().padLeft(2, '0') + " " + ampm;
	return s;
};
 

jclguru

Young grasshopper
Joined
Jul 13, 2015
Messages
31
Reaction score
0
Thanks. I'll give it a shot today.

As far as my locale, I'm in Ohio, so nothing really odd there.

Doug
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,679
Reaction score
14,042
Location
USA
I've uploaded an update.

v0.9.6 - 2016-01-08
+ Added a "Save Snapshot" button, which you can click to download a copy of the currently loading video frame in full resolution and quality.
+ Added a frame rate counter, which you can enable in Options > Top Bar.
+ Replaced the 3rd party dialog box code with my own code, which is much simpler and works better.
+ Added the ability to draw video to an html5 <canvas> element as an alternative to the <img> element. The canvas has little practical purpose at this time, but enables the image data to be manipulated by script.
+ Added a simple video filtering system which allows the user to choose between a set of predefined video filters, or write their own with JavaScript. Requires canvas drawing to be enabled.
* Changed the date and time formatting used in the clip list so it is now independent of the browser locale. The format is now YYYY/MM/DD hh:mm:ss [AM|PM].
 

broper30

n3wb
Joined
Nov 12, 2015
Messages
10
Reaction score
0
Sorry if I have overlooked it, but where do I locate the new version 0.9.6?
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,679
Reaction score
14,042
Location
USA
Sorry if I have overlooked it, but where do I locate the new version 0.9.6?
In the first post of this thread is where the download link is kept.

Any option to keep logged in to this page. I got logged out very so often.
I don't know why you get logged out. The page does not attempt to log you out. Perhaps Blue Iris is crashing on your server.
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,679
Reaction score
14,042
Location
USA
This is what happens after a while. I have to refresh the page and presented with a log in box again.
Mac OS, Chrome.

View attachment 7563
First, that page (jpegpull.htm) is not mine. That is one of Blue Iris' built-in pages and contains none of my enhancements.

My earlier suspicion remains, I think Blue Iris may be crashing periodically on your server. That would cause the session to suddenly expire, resulting in the behavior you see. Try updating Blue Iris to the latest version, and make sure your Blue Iris machine is not running out of memory or running higher than about 80% CPU utilization.

If you use the page I wrote, ui2.htm (download from the first post of this thread) then it may be able to automatically recover for you after this failure.
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,679
Reaction score
14,042
Location
USA
my UI2 page is stuck on "loading clip list BUSY" and won't seem to progress. Any tips?
jclguru's advice is the first step. Re-install the ui2 files and then refresh the page in your browser.

If it does not solve the problem, then I'll need you to open your browser's developer tools and copy the errors shown in the console. To open developer tools in Firefox or Chrome, press CTRL + i. In Internet Explorer or Edge, press F12. Then open the "Console" tab in the developer tools. Finally, refresh the page (F5) to ensure that all errors appear in the console.

Some 404 errors are to be expected, for ui2-local-overrides.css and ui2-local-overrides.js. Any other error is usually an indication of what went wrong.
 

jmburton2001

Getting the hang of it
Joined
Aug 16, 2015
Messages
98
Reaction score
40
I love your interface. A few days ago I noticed that I was experiencing problems with opening it in Firefox. I've spent the last few days going through my routing, port forwarding, etc and everything's working properly. I also updated BI to version 4.2.8.2 and also downloaded the updated UI2 (0.9.6) files because the interface said there was an update.

Since then I have experienced the following anomalies (screenshots attached):

Chrome - Just shows a blank screen even though it allows a login.

Edge - After login content can't be shown in frame. If I select "Open this in a new window", it loads in a new tab.

Firefox - Same as Chrome, blank screen.

Internet Explorer 11 - Same as Edge.

Opera - Same as Edge and IE11.

localhost works great!

Has anyone else experienced this? Where should I start looking? I had a friend try to access the site from across the country and they're experiencing the same difficulties.

Thanks in advance for any insight you can provide!
 

djangel

Pulling my weight
Joined
Aug 30, 2014
Messages
335
Reaction score
148
I've uploaded an update.

v0.9.6 - 2016-01-08
+ Added a "Save Snapshot" button, which you can click to download a copy of the currently loading video frame in full resolution and quality.
@bp2008 Would it be possible in a future update to add a hotkey option to the save snapshot feature? Thanks!
 
Last edited by a moderator:

DokkenVersusChicken

Young grasshopper
Joined
Jan 4, 2015
Messages
63
Reaction score
4
jclguru's advice is the first step. Re-install the ui2 files and then refresh the page in your browser.

If it does not solve the problem, then I'll need you to open your browser's developer tools and copy the errors shown in the console. To open developer tools in Firefox or Chrome, press CTRL + i. In Internet Explorer or Edge, press F12. Then open the "Console" tab in the developer tools. Finally, refresh the page (F5) to ensure that all errors appear in the console.

Some 404 errors are to be expected, for ui2-local-overrides.css and ui2-local-overrides.js. Any other error is usually an indication of what went wrong.
is this what i'm looking for?

ui2.htm:23 GET http://192.168.2.149:8071/ui2/ui2-local-overrides.css
ui2.htm:22 GET http://192.168.2.149:8071/ui2/ui2-local-overrides.js
ui2.js:489 Uncaught TypeError: Cannot read property 'replace' of undefined

I stopped BI, turned off as a service, and re-copied all of the latest version to the folder. it stays stuck at loading clip list busy.

this worked a couple of months ago.
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,679
Reaction score
14,042
Location
USA
I love your interface. A few days ago I noticed that I was experiencing problems with opening it in Firefox. I've spent the last few days going through my routing, port forwarding, etc and everything's working properly. I also updated BI to version 4.2.8.2 and also downloaded the updated UI2 (0.9.6) files because the interface said there was an update.

Since then I have experienced the following anomalies (screenshots attached):

Chrome - Just shows a blank screen even though it allows a login.

Edge - After login content can't be shown in frame. If I select "Open this in a new window", it loads in a new tab.

Firefox - Same as Chrome, blank screen.

Internet Explorer 11 - Same as Edge.

Opera - Same as Edge and IE11.

localhost works great!

Has anyone else experienced this? Where should I start looking? I had a friend try to access the site from across the country and they're experiencing the same difficulties.

Thanks in advance for any insight you can provide!
UI2 doesn't do anything with frames, and I've never seen such an error before. I suspect you and your friend are using some strange browser plugin. Or maybe have a malware infection.

@bp2008 Would it be possible in a future update to add a hotkey option to the save snapshot feature? Thanks!
Yes, I'll put that on my list.

is this what i'm looking for?

ui2.htm:23 GET http://192.168.2.149:8071/ui2/ui2-local-overrides.css
ui2.htm:22 GET http://192.168.2.149:8071/ui2/ui2-local-overrides.js
ui2.js:489 Uncaught TypeError: Cannot read property 'replace' of undefined

I stopped BI, turned off as a service, and re-copied all of the latest version to the folder. it stays stuck at loading clip list busy.

this worked a couple of months ago.
That is exactly what you are looking for, and it tells me you have not updated UI2 in a very long time. Redownload from post #1 of this thread and re-extract to your www folder, making sure to overwrite all files.
 
Last edited by a moderator:

acvb

Getting the hang of it
Joined
Mar 30, 2014
Messages
156
Reaction score
24
bp2008: reading above.... you have the patience of a saint. Thanks for the program, it works very well.
 
Top