Logic Machine Forum
LM Home app (Andrоid/iOS starter) - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Application Store (https://forum.logicmachine.net/forumdisplay.php?fid=11)
+--- Thread: LM Home app (Andrоid/iOS starter) (/showthread.php?tid=5220)

Pages: 1 2 3 4 5 6 7 8


RE: LM Home app (Andrоid/iOS starter) - CristianAgata - 13.02.2025

(13.02.2025, 17:42)Chandrias Wrote:
(13.02.2025, 16:27)Daniel Wrote: If you using Push notifications app then you are not using LM Home app.  The script above is for LM home app not LogicMachine app which is the older version.
https://kb.logicmachine.net/notifications/push-notifications/

I installed the LM Home app also, but when I open it, the gear icon is not there.
Check the attached picture
For see the gear icon and system you must log as administrator, not user
BR Cristian


RE: LM Home app (Andrоid/iOS starter) - Chandrias - 13.02.2025

(13.02.2025, 19:26)CristianAgata Wrote:
(13.02.2025, 17:42)Chandrias Wrote:
(13.02.2025, 16:27)Daniel Wrote: If you using Push notifications app then you are not using LM Home app.  The script above is for LM home app not LogicMachine app which is the older version.
https://kb.logicmachine.net/notifications/push-notifications/

I installed the LM Home app also, but when I open it, the gear icon is not there.
Check the attached picture
For see the gear icon and system you must log as administrator, not user
BR Cristian

Still no success


RE: LM Home app (Andrоid/iOS starter) - admin - 14.02.2025

To login into LM Cloud via LM Home app either click and hold LM Home icon and select "Go to LM Cloud" or temporarily turn of Wi-Fi on your phone.


RE: LM Home app (Andrоid/iOS starter) - Chandrias - 14.02.2025

(14.02.2025, 07:43)admin Wrote: To login into LM Cloud via LM Home app either click and hold LM Home icon and select "Go to LM Cloud" or temporarily turn of Wi-Fi on your phone.

That worked. Thanks


RE: LM Home app (Andrоid/iOS starter) - jerryhenke - 16.02.2025

Hi.
I still have two questions:
1) In local network, credentials seems to be unsaved (however password stored in iphone, but need to put user name + password every time). I can of course store the password in icloud, but i really think it is disturbing having to enter password all time (no, I don't use admin).
2) Any way to use simpler names instead of full token? Also any way to make groups of phones or to push to all phones?
If we are three users, it would be nice to have "xxx's phone", "yyy's phone", and "zzz's phone". + "push to all".

Thanks a lot for your helplfulness.


RE: LM Home app (Andrоid/iOS starter) - admin - 17.02.2025

1. Check that "Remember login and password" is enabled in LM > Users > User access settings. Don't use admin user for the app. Keep the app running in the background after the first login otherwise the credentials might not be saved.

2. Create a user library named push, provide user names, tokens and create groups as needed.
Code:
local tokens = {
  ['User A'] = 'user-token-A',
  ['User B'] = 'user-token-B',
  ['User C'] = 'user-token-C',
}

local groups = {
  ['Group A'] = { 'User A', 'User B' },
  ['Group B'] = { 'User B', 'User C' },
}

return function(name, title, body)
  local push = require('applibs.lmcloud.push')

  local token = tokens[ name ]
  if token then
    return push(token, title, body)
  end
  
  local group = groups[ name ]
  if group then
    local ress, errs = {}, {}
    
    for _, tname in ipairs(group) do
      token = tokens[ tname ]
      
      if token then
        local res, err = push(token, title, body)
        if res then
          ress[ name ] = true
        else
          errs[ name ] = err
        end
      else
        errs[ name ] = 'not found'
      end
    end
    
    return ress, errs
  end
  
  return nil, 'not found'  
end

Usage:
Code:
push = require('user.push')

name = 'Group A'
title = 'Push title'
body = 'Push message body'

res, err = push(name, title, body)
log(res, err)



RE: LM Home app (Andrоid/iOS starter) - jerryhenke - 17.02.2025

(17.02.2025, 08:00)admin Wrote: 1. Check that "Remember login and password" is enabled in LM > Users > User access settings. Don't use admin user for the app. Keep the app running in the background after the first login otherwise the credentials might not be saved.

2. Create a user library named push, provide user names, tokens and create groups as needed.
Code:
local tokens = {
  ['User A'] = 'user-token-A',
  ['User B'] = 'user-token-B',
  ['User C'] = 'user-token-C',
}

local groups = {
  ['Group A'] = { 'User A', 'User B' },
  ['Group B'] = { 'User B', 'User C' },
}

return function(name, title, body)
  local push = require('applibs.lmcloud.push')

  local token = tokens[ name ]
  if token then
    return push(token, title, body)
  end
 
  local group = groups[ name ]
  if group then
    local ress, errs = {}, {}
   
    for _, tname in ipairs(group) do
      token = tokens[ tname ]
     
      if token then
        local res, err = push(token, title, body)
        if res then
          ress[ name ] = true
        else
          errs[ name ] = err
        end
      else
        errs[ name ] = 'not found'
      end
    end
   
    return ress, errs
  end
 
  return nil, 'not found' 
end

Usage:
Code:
push = require('user.push')

name = 'Group A'
title = 'Push title'
body = 'Push message body'

res, err = push(name, title, body)
log(res, err)

Wow. Great! Thanks. Works like a charm.


RE: LM Home app (Andrоid/iOS starter) - Chandrias - 24.02.2025

I managed to connect to LM Home app, but while I have all applications active, when I login to the application,
I only see the Mosaic, Schedulers and Trend Logs.


RE: LM Home app (Andrоid/iOS starter) - admin - 24.02.2025

No other apps support cloud connectivity at the moment.


RE: LM Home app (Andrоid/iOS starter) - Chandrias - 24.02.2025

(24.02.2025, 07:52)admin Wrote: No other apps support cloud connectivity at the moment.

That's too bad. Any indication on when to expect more?


RE: LM Home app (Andrоid/iOS starter) - admin - 24.02.2025

Which apps do you want to access via cloud?


RE: LM Home app (Andrоid/iOS starter) - Chandrias - 24.02.2025

(24.02.2025, 07:58)admin Wrote: Which apps do you want to access via cloud?

Visualization & Touch


RE: LM Home app (Andrоid/iOS starter) - admin - 24.02.2025

Right now we are working on new Visu that will have cloud connectivity later this year. Open beta testing: https://forum.logicmachine.net/showthread.php?tid=5684&pid=38128#pid38128


RE: LM Home app (Andrоid/iOS starter) - Chandrias - 24.02.2025

How about an application that would give the user access to Scenes?
Create new scenes , or at least edit existing ones


RE: LM Home app (Andorid/iOS starter) - PolymorphedCust - 26.02.2025

(05.03.2024, 06:09)admin Wrote: Do you have "Remember login and password" enabled in User access settings?

Hi. I've got the same issue, but can't find the setting in User Access.

Is it possible with my Firmware version. (FW is for the new Visu app)

Thanks!

---- SORRY! Wasn't looking properly! Found it !


RE: LM Home app (Andrоid/iOS starter) - admin - 26.02.2025

LM > User access tab > User access settings (manual page 80).


RE: LM Home app (Andrоid/iOS starter) - Chandrias - 26.02.2025

(26.02.2025, 07:51)admin Wrote: LM > User access tab > User access settings (manual page 80).

Is it also possible to give access to the user for Scenes?


RE: LM Home app (Andrоid/iOS starter) - Daniel - 26.02.2025

In Mosaic, user can create its own scenes and edit them.
https://youtu.be/LB96DfbQzM0


RE: LM Home app (Andrоid/iOS starter) - Chandrias - 27.02.2025

(26.02.2025, 08:53)Chandrias Wrote:
(26.02.2025, 07:51)admin Wrote: LM > User access tab > User access settings (manual page 80).

Is it also possible to give access to the user for Scenes?

Goodmorning, 

I was unable to find an option to give the user access to scenes manipulation

(26.02.2025, 08:56)Daniel Wrote: In Mosaic, user can create its own scenes and edit them.
https://youtu.be/LB96DfbQzM0

Goodmorning,

I have checked that. The user is limited to the widgets on the current page. Is that correct?


RE: LM Home app (Andrоid/iOS starter) - Daniel - 27.02.2025

yes