Kiosk Home iOS App

User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Kiosk Home iOS App

Post by GlennNZ »

DaveL17 wrote:
GlennNZ wrote: Sat Dec 14, 2024 3:24 pm I thought defaulted to 23:00 Off, and 06:00 On….
Yes that was the default (and it was dimming) I emptied the fields and now it loads at default dim.
Ok - well I confused then as should not DIM at 15:00 hours if those defaults settings were in play.

Have checked code and no timezone issues at play and seems internally consistent…. Can’t replicate - and dimming appropriately here for a while at 23:00…


Sent from my iPad using Tapatalk
User avatar
DaveL17
Posts: 7323
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

Re: Kiosk Home iOS App

Post by DaveL17 »

Weird. Don't have time now, but I'll play around with the settings a bit later and see if I can find anything.

Is there a preferred way to reload changed settings other than the nuclear option? I was messing with secret keys (trying to break things to help Norm) and putting in a nonsense key still loaded the page from when the key was good.
I came here to drink milk and kick ass....and I've just finished my milk.

My Plugins and Scripts
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Kiosk Home iOS App

Post by GlennNZ »

DaveL17 wrote:Weird. Don't have time now, but I'll play around with the settings a bit later and see if I can find anything.

Is there a preferred way to reload changed settings other than the nuclear option? I was messing with secret keys (trying to break things to help Norm) and putting in a nonsense key still loaded the page from when the key was good.
Force closed would be the most reliable. We do check for a host of settings changes and reloads if changed - but wasn’t keeping up with the number of Settings I was adding. So moved to a full dict comparison in 1.8 - so will reload and update if any settings have changed.

Was worried there was some timezone setting I missed - but thankfully not the case - is based on ipad set time. But code seems good..


Sent from my iPad using Tapatalk
User avatar
norcoscia
Posts: 1346
Joined: Wed Sep 09, 2015 5:54 am

Re: Kiosk Home iOS App

Post by norcoscia »

Dave...are you saying that you had it working with an API key and then switched to secret keys and even nonsense secret keys worked? Or are you saying that you had a working secret key and then changed away to a nonsense secret key and it still worked?
DaveL17 wrote: Sat Dec 14, 2024 4:17 pm Weird. Don't have time now, but I'll play around with the settings a bit later and see if I can find anything.

Is there a preferred way to reload changed settings other than the nuclear option? I was messing with secret keys (trying to break things to help Norm) and putting in a nonsense key still loaded the page from when the key was good.
_______
Norm
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Kiosk Home iOS App

Post by GlennNZ »

norcoscia wrote:Dave...are you saying that you had it working with an API key and then switched to secret keys and even nonsense secret keys worked? Or are you saying that you had a working secret key and then changed away to a nonsense secret key and it still worked?
DaveL17 wrote: Sat Dec 14, 2024 4:17 pm Weird. Don't have time now, but I'll play around with the settings a bit later and see if I can find anything.

Is there a preferred way to reload changed settings other than the nuclear option? I was messing with secret keys (trying to break things to help Norm) and putting in a nonsense key still loaded the page from when the key was good.
I believe Dave is referring to the Dim discussion we were having.

Local-Secrets - should work the same as API-Key which is working fine across a few installs and continents now... So your issue seems to be a local secret file issue I would be guessing…

Could test in any browser using ?api_key={withlocalsecrethere} at the end of the control page call. As per the local secrets documentation:

https://wiki.indigodomo.com/doku.php?id ... entication

eg. (replacing local host with Indigo IP) and 123456789 - with device ID, and my-local-secret with local-secret
http://localhost:8176/v2/api/indigo.dev ... cal-secret


Sent from my iPad using Tapatalk
User avatar
norcoscia
Posts: 1346
Joined: Wed Sep 09, 2015 5:54 am

Re: Kiosk Home iOS App

Post by norcoscia »

OK, thanks - we will try some of that tomorrow :-)
_______
Norm
User avatar
DaveL17
Posts: 7323
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

Re: Kiosk Home iOS App

Post by DaveL17 »

@Norm

I had a functioning secret key and then I added an extra character to the key to try to break things, but the control page still loaded. I force-closed the app, reopened it and the control page still loaded -- so I don't think the key was being checked every time. Will update to the 1.8 version when it's available here.
I came here to drink milk and kick ass....and I've just finished my milk.

My Plugins and Scripts
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Kiosk Home iOS App

Post by GlennNZ »

DaveL17 wrote:@Norm

I had a functioning secret key and then I added an extra character to the key to try to break things, but the control page still loaded. I force-closed the app, reopened it and the control page still loaded -- so I don't think the key was being checked every time. Will update to the 1.8 version when it's available here.
Hi Dave,

Api Key is being passed every-time in URL. Any caching is likely happening at the Indigo end, have noticed it a few times when trying to get to it to fail..

Sent from my iPad using Tapatalk
User avatar
DaveL17
Posts: 7323
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

Re: Kiosk Home iOS App

Post by DaveL17 »

GlennNZ wrote: Sat Dec 14, 2024 7:26 pmApi Key is being passed every-time in URL. Any caching is likely happening at the Indigo end, have noticed it a few times when trying to get to it to fail..
Roger that. Trying to break things in every conceivable way is something that never seems to catch those things that happen outside our code. :wink:
I came here to drink milk and kick ass....and I've just finished my milk.

My Plugins and Scripts
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Kiosk Home iOS App

Post by jay (support) »

You have to restart when you change the secrets file. We cache it on startup.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
DaveL17
Posts: 7323
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

Re: Kiosk Home iOS App

Post by DaveL17 »

jay (support) wrote: Sat Dec 14, 2024 8:07 pm You have to restart when you change the secrets file. We cache it on startup.
If that was directed to me, I was talking about changing the secret key value in the kiosk app (not the secrets.json file) to something invalid in an attempt to generate an error.
I came here to drink milk and kick ass....and I've just finished my milk.

My Plugins and Scripts
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Kiosk Home iOS App

Post by jay (support) »

DaveL17 wrote: Sat Dec 14, 2024 9:11 pmIf that was directed to me
That might have been part of the issue Glenn was seeing.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Kiosk Home iOS App

Post by GlennNZ »

Hi Guys,

No issue from me … although don’t use local secrets. Was the Indigo file error above - which presumably means something is wrong with the XML file I would be guessing…


Sent from my iPad using Tapatalk
User avatar
durosity
Posts: 4810
Joined: Thu May 10, 2012 3:21 pm
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Kiosk Home iOS App

Post by durosity »

Out of interest, is the any particular reason why this app has a minimum of iPadOS 15? The reason I ask is that I’m so impressed with this I’m considering adding a few more around my house (like it’s 2012!) and I happen to have a couple of old iPad Air 1st Gen’s around, but of course they don’t support iPad OS 15.
Computer says no.
User avatar
GlennNZ
Posts: 1873
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: Kiosk Home iOS App

Post by GlennNZ »

Hmm. Might be able to drop to 14.0 although that also removes 4 years of code update availability… Nothing lower than that - so probably still won’t get to your 12 year machine…which seems to be iOS 12

New Changelog for 1.8, still pending store release….

1.8

Change Screen Scaling to a menu - may need to be reselected if not Default- Default, useAlternative, and FitPageWidth. Changes handling of background aspects. useAlternative will rescale background - but extra height screens still work. FitPageWidth will be most like Control Page Editor.

Stop screen from moving sideways if pulled, remove bounce - fix screen as much as possible

Add Disable Zoom Setting for all scaling screenings.

Add FitPageWidth mode - fixes screen x dimension, allows bigger screen in the Vertical dimension to scroll down to.

Redo the Settings Screen (Adds Screen Scaling Setting Default, , FitPageWidth).

Adds a timer to check every 120 seconds after screen touch, will reset Zoom of screen (incase manually zoomed) and screen position, resetting to 0,0 - 120 seconds after last touch. Fix for useAlternative Scaling not using. Update to also use for Pinch to Zoom.

Skips authentication pop up if for Indigo Server IP address (occasionally would appear if VPN turn on ) (Should not appear if API Key or Local Secret entered correctly)

Changes to default Dim Screen Time control disabled.

Adds version number to Splash Screen

Drops required iOS version to 14.0. (May increase in future as limits code to 4 years old...)


Sent from my iPad using Tapatalk
Post Reply

Return to “Kiosk Home iOS App”