Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WebRiva on Android
#11
Yes, see below.

[Image: io1vgT5l.png]
------------------------------------
Some of my devices: Sonos, Aeotec zWave, Nest, Rain8Net, Various H/T
What's next: CQC-Voice, Brultech GEM
My vlogs: https://www.youtube.com/c/IVBsHomeAutomation
Reply
#12
(07-15-2018, 01:58 PM)IVB Wrote: George or anyone else: Do you know how to change the icon affiliated with that home screen CQC shortcut?

I haven't found a way. Wish there was one.
Thanks
George M
Reply
#13
Dean,
Looks like the icon that is added is controlled by the webserver content(seems like a favicon type deal maybe)
Not sure if it just an Android Oreo thing but I can add Chrome shortcuts to homescreen with icons from the following sites. I am on android 8.0 and AT&T.

weather.com
www.androidpolice.com
www.nasa.gov

Not sure if this gives you a hint but it looks like you can make a CQC icon for homescreen icons(maybe just for newer android versions).

https://www.androidheadlines.com/2017/05...tcuts.html


If it is served up by the cqc webriva server maybe even let people substitute their own android shortcut icon file.
I would probably use the default CQC one, but with user/password on the URL people could have android icons for different sets of CQC screens. (wife, kids, upstairs, downstairs,etc).
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#14
(07-16-2018, 07:43 AM)kfly Wrote: If it is served up by the cqc webriva server maybe even let people substitute their own android shortcut icon file.
I would probably use the default CQC one, but with user/password on the URL people could have android icons for different sets of CQC screens. (wife, kids, upstairs, downstairs,etc
Great idea!  At a minimum default to generic CQC if nothing there otherwise an icon by User ID.
Reply
#15
Dang, I thought I posted this like three times now only to close the browser before finishing... I don't think this is going to work. The favorite icon is a domain thing, not a specific URL thing. I can add a favorite icon for our web site (and I did though it won't show up until I upload next time.) You could create a favorite by dropping one into HTMLRoot and putting an index.html file there in root for some local web site of your own. But WebRIVA is just an arbitrary URL, and the browser won't try to download a favorite for that, even if I put a link statement in the WebRIVA/index.html file to try to force it.

There really probably needs to be some more formalized mechanism for this, but currently it's just sort of an ad hoc convention of browsers, designed for overall web site domains.
Dean Roddey
Explorans limites defectum
Reply
#16
Looks like this is how you do it. Can we test to see if it set the android chrome desktop icon when creating a shortcut?
https://stackoverflow.com/questions/4601...-in-chrome


<link rel="shortcut icon" sizes="192x192" href="https://matchball.org/images/Png - Only Logo - Variant 3.png" type="image/x-icon">
<meta property="og:image" content="https://matchball.org/images/Png%20-%20Only%20Logo%20-%20Variant%203.png" />
<meta property="og:image" content="https://matchball.org/images/Png - Only Logo - Variant 3.png" />


I see Android Police does something with apple icons also so maybe work testing also.

Android Police html:
<link rel="shortcut icon" type="image/png" href="https://www.androidpolice.com/wp-content/themes/ap2/images/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" href="https://www.androidpolice.com/wp-content/themes/ap2/images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="https://www.androidpolice.com/wp-content/themes/ap2/images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="https://www.androidpolice.com/wp-content/themes/ap2/images/apple-touch-icon-114x114.png">

Thanks
kevin
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply
#17
Dean, could we implememt some way to send dynamic javascript to webriva clients? The main CQC magic still takes place on the HTML5 canvas, but some of the surrounding could be more dynamic
Reply
#18
(07-20-2018, 04:48 AM)kfly Wrote: Looks like this is how you do it. Can we test to see if it set the android chrome desktop icon when creating a shortcut?
https://stackoverflow.com/questions/4601...-in-chrome

That's how it's generally done. And I tried many variations on that, but it doesn't work so well. It would also cause that icon to be used for help and any web site you created. You can of course just drop some favicon.ico file into HTMLRoot and the browser may pick it up, since that's where typically it looks, i.e. for that file in the root directory. Or it may not. I think mostly it works because it's in the root and when you go to a web site, you start by loading the index.html from the root and all the browsers know that's probably the time to look for that file. For files anywhere else, it seems to be not so well defined.
Dean Roddey
Explorans limites defectum
Reply
#19
(07-20-2018, 07:05 AM)lleo Wrote: Dean, could we implememt some way to send dynamic javascript to webriva clients? The main CQC magic still takes place on the HTML5 canvas, but some of the surrounding could be more dynamic

What do you mean by the surrounding? You can set the color of any of the unused parts of the screen already if you want to do that.
Dean Roddey
Explorans limites defectum
Reply
#20
I am still struggling to achieve effects on small android screens that are common on such interfaces with sufficient speed, for example as discussed here

http://www.charmedquark.com/vb_forum/sho...#pid150135

and a bigger issue for my eyes at least is the lack of pinch in/out zoom in browsers.
Went back to your explanation on the thread above, but now not sure why does not work for the webriva canvas, since just about any HTML5 canvas demo or example I could find, pinch in/out zooming on the canvas is supported. In webriva this is blocked.

I gather that you are trying to stay within the Windows IV framework, but ignoring the potential for web client-server setup we already have, with widely accepted standards (including windows) such as HTML5 and JS I think does not help CQC on the long run.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  WebRiva add to home screen fix NishanF 2 735 11-16-2020, 08:54 AM
Last Post: sic0048
  WebRiva will not render graphics fze9002 16 1,574 09-06-2020, 02:59 PM
Last Post: Dean Roddey
  With webriva, anyway to get an embedded browser window? ghurty 1 588 04-26-2020, 04:43 PM
Last Post: Dean Roddey
  WebRIVA on iOS dlmorgan999 14 2,443 04-26-2020, 04:08 PM
Last Post: dlmorgan999
  Check Box widget on WebRIVA vs Interface Viewer bryanb 1 662 04-23-2020, 06:15 AM
Last Post: bryanb
  CQC WebRIVA and BlueIris in a secure environment bryanb 2 682 03-23-2020, 03:24 AM
Last Post: bryanb
  WebRIVA Splash Screen gReatAutomation 4 1,144 03-02-2020, 05:15 PM
Last Post: gReatAutomation
  Phone/WebRIVA Login/Security Alternatives? gReatAutomation 14 3,510 01-27-2020, 05:19 AM
Last Post: gReatAutomation
  Changing WebRIVA Splash Image? gReatAutomation 4 1,311 01-07-2020, 05:28 PM
Last Post: gReatAutomation
  IOS Homescreen Webriva fails to connect zra 5 1,927 10-05-2019, 12:26 PM
Last Post: zra

Forum Jump:


Users browsing this thread: 1 Guest(s)