Stand Alone Page/URL To Test Luup Code (Lua)

Hi

Rather than always having to go to Apps->Develop Apps–>Test Luup Code (Lua) to learn/test code, i was wondering is there a standalone URL/option that can be used?

I work on the iPad nearly all the time now and already have the direct URL to view the logs, however it would be great to be able to go straight into a test Luup code page too, rather than have to jump through all those hoops each time.

[quote=“parkerc, post:1, topic:173318”]Hi

Rather than always having to go to Apps->Develop Apps–>Test Luup Code (Lua) to learn/test code, i was wondering is there a standalone URL/option that can be used?

I work on the iPad nearly all the time now and already have the direct URL to view the logs, however it would be great to be able to go straight into a test Luup code page too, rather than have to jump through all those hoops each time.[/quote]

sorry, don’t have the answer, but what url do you use for logs?

Here you go djs73

http://192.168.1.xxx/cgi-bin/cmh/log.sh?Device=LuaUPnP

Replace with your Vera IP and away you go, please note there is a short delay at times and if you have verbose logging enabled it can become unmanageable (especially on the iPad)

Thx, makes debugging a lot easier, even on the iPad :wink:

Being a ipad user you can probably understand why it would be good to have a stand along web page (or even an app) to run/test Luup/Lua code in Vera.

I do not know how you can tolerate to do any coding on an iPad. ;D

It’s a tough job, but somebody has to do it :wink: - Textastic the app helps too…

Does anyone else have any idea how you can have (or create) a standalone code window/URL for testing code on Vera? One you can bookmark and tab between when checking the logs URL and/or the dashboard if you’re trying to change the state of a device etc.

It’s an old thread, but I wanted to resurface it just to see if anything had maybe changed since Nov 2012. (While that’s well over a year ago, I’m still a big iPad user)

As the web UI can submit the code, surely there has to be a way to send code, without needing to load the full UI?

Is this just to test the syntax of the code? Or, is it to test the effect on a scene?

If the former, I wonder if something like the links suggested here may help:

The goal is simply to submit on off bits of code/Luup to Vera, in some other way, rather than having to load up you the full web UI and then go to apps etc.

Vera has a test code page with button to press to submit it,

Is there is a more direct way to do that code submission
(RunLua seems to be the log entry identifier for anything you submit via that page)

Just wanted to link this thread to the great work @Rex has done to help me do more Luup/lua code testing on Vera from my iPad - introducing LuaTest

http://forum.micasaverde.com/index.php/topic,24018.0.html

If you are interested to read how LuaTest came to life, and also how I use it with Textastic (iOS app) and Vera via mapped (CIFS share) to my NAS - read this thread.

http://forum.micasaverde.com/index.php/topic,23832.0.html

wow, handy link. Thanks for that.

On a slightly OT note, how are you handling startup scripts for your CIFS mounts in vera?

I only have the one CIFS mount and that’s handled via the DataMine plugin, which maps it as part of it’s start up procedure

got it, thanks!