Logic Machine Forum
Run script or update GA from http command - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Run script or update GA from http command (/showthread.php?tid=5791)



Run script or update GA from http command - tomnord - 14.12.2024

Is it possible to execute a script or update a GA using http command? http://IPaddress etc etc etc?


RE: Run script or update GA from http command - CristianAgata - 14.12.2024

(14.12.2024, 17:30)tomnord Wrote: Is it possible to execute a script or update a GA using http command? http://IPaddress etc etc etc?

Hi, check this:
https://kb.logicmachine.net/misc/remote/
BR Cristian


RE: Run script or update GA from http command - tomnord - 15.12.2024

(14.12.2024, 17:55)CristianAgata Wrote:
(14.12.2024, 17:30)tomnord Wrote: Is it possible to execute a script or update a GA using http command? http://IPaddress etc etc etc?

Hi, check this:
https://kb.logicmachine.net/misc/remote/
BR Cristian

Brilliant, missed that one when browsing!


RE: Run script or update GA from http command - tomnord - 16.12.2024

(14.12.2024, 17:55)CristianAgata Wrote:
(14.12.2024, 17:30)tomnord Wrote: Is it possible to execute a script or update a GA using http command? http://IPaddress etc etc etc?

Hi, check this:
https://kb.logicmachine.net/misc/remote/
BR Cristian

Do you always have to enter credentials when running remote services? I get prompted for login on LM even when password is in the url command.


RE: Run script or update GA from http command - admin - 16.12.2024

Remote services are designed to be used for integration with other systems, not for user interaction.


RE: Run script or update GA from http command - tomnord - 16.12.2024

(16.12.2024, 08:40)admin Wrote: Remote services are designed to be used for integration with other systems, not for user interaction.

Is there any other way to run commands via url then?


RE: Run script or update GA from http command - Daniel - 16.12.2024

You can try this but no security:
https://forum.logicmachine.net/showthread.php?tid=3141&pid=20407#pid20407


RE: Run script or update GA from http command - tomnord - 16.12.2024

(16.12.2024, 12:04)Daniel Wrote: You can try this but no security:
https://forum.logicmachine.net/showthread.php?tid=3141&pid=20407#pid20407

Thanks, I'll have a look. It's just for use on wifi. for triggering events with a QR-code or similar.


RE: Run script or update GA from http command - admin - 17.12.2024

A more secure approach is to create a separate .lp file for each action (QR code) without any parameters.
Code:
<?
require('apps')
grp.write('1/1/1', true)