This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

Sample app for LogicMachine
#1
Attached you can find an example of simple application for starting screen of LogicMachine.
It represents a simple button. You can click on the button to control bit object and see current status.

How to install it?
  • Unarchive the ZIP file
  • Enable FTP on your LogicMachine: System config --> Services --> FTP Server
  • Set user 'apps' password in System config --> Services --> FTP Server
  • Connect to LogicMachine via regular FTP client using user 'apps'
  • Copy unarchived folder Sample to LogicMachine's folder Data
  • On LogicMachine enter Admin section on top right corner
  • Then click on + and on the left side click Menu --> Dev apps
  • Click on Sample and set Object (e.g. 1/1/1) and Status (optional; e.g. 1/1/1)
[Image: sample_app_logicMachine.jpg]


Attached Files
.zip   sample.zip (Size: 5.88 KB / Downloads: 92)
Reply
#2
Hi edgars,

is that working also in spacelynk?

BR
Habib
Reply
#3
Hi Habib,

Yes it can work in SL but there is no front end to show it on, so without modification it's useless. 

In new FW for SL there will be a front end so you have to wait a bit..

BR,

Erwin
Reply
#4
Hello everyone,

Nice widget !
I wanted to have the exact same On/Off button yet not on the widget but on the separate page (the one when you click "Go to app"). I copy paste the <? blablidibla ?> code of the widget.lp script in the info.html but it does not work. I did write the <? require("apps") ?> at the beginning.

Can someone give me a hand on this please ? I think it is pretty simple but I cannot figure out what I misunderstand.
Thank you for your help.
Reply
#5
Hi,

The client side lua can only be started from files with .lp extentions. You can simply rename your info.html file to info.lp

BR,

Erwin
Reply
#6
Hi Erwin thank you very much for your help I appreciate.
I did put the <? blablidibla ?> code of the widget.lp script in the info.html then rename to info.lp and updated the link to info.lp in widget.lp
Yet, the on/off icon does not appear in the page...
Reply
#7
Hi Hippolyte,

I checked and the startpage has some extra's already loaded to have localbus available.

I added these missing items into the info.lp and now it's working. (and changed some other items to have the button inserted on the correct position)

See here my modified sample app with button also in the 'go to app' section.


.zip   Sample Modified.zip (Size: 3.55 KB / Downloads: 69)
BR,

Erwin

Hi Edgars,

In the config.html is a function that needs to be improved with a regex if you ask me (;

There is now this:

Code:
// invalid value
if (valueSet.length==0) {

But should that not be done with a regex to make sure it's a valid KNX address notation? Now you can set any value you want as only zero length is not accepted..

Also the value status needs to be checked the same way (;

Even better would be a dropdown selection with all available addresses (:

I also think the css from the config button (div.container.cfg-container-wrap) when changing the value needs to be checked as button is now to small. (30px width)

Code:
.btn-config, .btn-install, .btn-update, .btn-uninstall, .btn-xinfo {
   padding-left: 0;
   padding-right: 0;
   width: 80px;
   display: none;
}

Anyway i think it's a cool feature like this!

BR,

Erwin
Reply
#8
Thank you Erwin !
Works like a charm.
Reply
#9
Hi
What is the main screen good for? Or maybe better question is How do you use it? Or which use has it been planned for?
I'm curious because I haven't found any use of this screen.
In reality I would be happy if this page disappears and simple http://<my_lm_IP> starts my visu with auto decision if I'm mobile or standard PC user. Admin tasks should be under /apps subfolder not available from the main page because it's confusing for a user to see it and it looks unprofessional.
LM5Lp, firmware: 2018.08.22, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151
Reply
#10
Hi Thomas,

Main screen is base location for all kind of apps, you can decide what apps you want to use and show. There will be more apps allong time, so yes it's very usefull.

You already can select the base location for your direct IP landing in the user settings and bypass this screen. 

There is no device detection but you can login from your mobile with other username and be redirected directly to your mobile visu.

So all your comments are covered already (:

BR,

Erwin
Reply
#11
(01.03.2017, 16:54)Erwin van der Zwart Wrote: You already can select the base location for your direct IP landing in the user settings and bypass this screen. 
It would be perfect. How can I do it?
LM5Lp, firmware: 2018.08.22, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151
Reply
#12
Hi Thomas,

Just checked my LM Ambient and i don't see the option we have in our homeLYnk / spaceLYnk .. I was assuming it was also available in the LM firmware...

In our controllers we can set under the user access -> user access settings this:

   
I have no idea if this will be added to LM firmware ..

Sorry for the misunderstanding..

BR,

Erwin
Reply
#13
(01.03.2017, 21:09)Erwin van der Zwart Wrote: Hi Thomas,

Just checked my LM Ambient and i don't see the option we have in our homeLYnk / spaceLYnk .. I was assuming it was also available in the LM firmware...

In our controllers we can set under the user access -> user access settings this:


I have no idea if this will be added to LM firmware ..

Sorry for the misunderstanding..

BR,

Erwin

Hello Erwin,

can it bee, that this option shown on the screenshot are only available at homeLYnk?
I have a spaceLYnk with firmware 2.0.1 and I don't see this option?

   
Best regards

forsterm
Reply
#14
Hi,

This option is from old version firmware, in the current FW this is changed / removed.

BR,

Erwin
Reply


Forum Jump: