I know this has probably been discussed a thousand times elsewhere on the forums but it is doing my head in.
I want to run my code on a PC (Linux in my case). The constant upload/restart/adjust code makes development very slow.
For my particular exercise I am after the just the serial/ethernet connectivity API (Is that the right term) so that I can test my interface.
My current workflow is: -
Code in L_* file using gedit (Gnome text editor)
Use Scite to check syntax.
Upload to Vera.
Restart.
Check if device that I am talking to responds how it intended.
Restart procedure for next stage or fix if response is incorrect.
I looked at how to interface a serial port to Lua in Linux and it looks straight forward but just means more time spent on getting that coded on top of what I am doing now.
I'm old-school enough to remember batch processing so it hasn't irritated me enough to do anything about it.
Yup, and yup...
and for “Upload to Vera”, this is a script with “[tt]scp[/tt]” and “[tt]pluto-lzo c[/tt]” commands in it to push from my Mac to the box, and make them look like they came through the UI.
This is most painful when working on a “live” box, with lots of devices, so keep a spare somewhere that restarts quickly (UI5/Vera3 restarts quickly when it’s empty)
For simple stuff, before integration, I use the command-line Lua processor on my Mac. Things like string matching, LuaSocket coding, etc, etc… all stuff that ends up in a lib, basically. That’ll save a few cycles.
Most of the hard work is in the JSON definition which need a Vera to run on and, for me at least, is the cause of the bulk of of the restarts. Of course, if someone were to write one, I’m sure we’d all use it 8)
Forgot that one, I am constantly reloading with a backup because I only have one box. Going to buy a Vera Lite for my main box (when I have the money).
Been working on a DALI serial interface and got close to throwing in the towel because of the amount of times I have to do restarts to test the serial functions. Although some of this is because the DALI protocol documentation for some of the functionality is sparse or costs to much to buy for a hobby project.
Forgot that one, I am constantly reloading with a backup because I only have one box. Going to buy a Vera Lite for my main box (when I have the money).[/quote]
I have the same problem! Just my Vera 2, and now that I finally convinced my wife to start using it (she actually has made a few scenes!) she gets frustrated if it stops working because I’ve cleared all the devices to make development faster…
Best Home Automation shopping experience. Shop at Ezlo!