Skip to content

openLuup

The goodness of vera without the bad. Discuss installation problems and improvements.

186 Topics 3.0k Posts

Subcategories


  • Discuss your other openLuup plugins here

    44 Topics
    871 Posts
    M

    Hi Ak,
    Not sure what the issue is for me then. I first had it running on Pi3 with Debian, now on Pi4 with Ubuntu, same issue of not getting the token. I did copy the user_data.json, so maybe something in that.
    As a test I tried on my openLuup clean test install running in a container and that is working. So must be something at my end.
    Thanks again anyway, I have a new workaround :-).

  • The vera integration of openLuup

    8 Topics
    102 Posts
    parkercP

    Just wanted to add that my Vera Bridges stopped working, I can’t be sure exactly when, maybe after a reboot ? But wanted to share here as they were working fine..

    850065d5-00f8-44e6-b75d-5ae9a21a272d-image.png

    The Variable for the RemotePort on both is /port_3480

    Updating to :3480 fixes it..

    @akbooer - not sure why this worked first and then stopped..

  • 0 Topics
    0 Posts
    No new posts.
  • The Z-way integration for openLuup

    20 Topics
    418 Posts
    akbooerA

    You only get that lucky once in every four years!

  • 4 Topics
    73 Posts
    akbooerA

    It doesn’t really matter, but it does need to have the executable permission.

  • AltUI access over VPN

    7
    0 Votes
    7 Posts
    342 Views
    CatmanV2C

    Interesting. I shall have a poke when I get home. Of course that will require the 'correct' computer 🙂

    C

  • Problem with luup.call_delay nexted in luup.call_timer

    8
    0 Votes
    8 Posts
    405 Views
    akbooerA

    Thanks for that – I'll look into it, but it hasn't been a problem internally when used in scheduling scenes. These are, however, run in the Startup Lua context and not in any device.

  • OpenLuup installation

    33
    0 Votes
    33 Posts
    2k Views
    akbooerA

    @archers said in OpenLuup installation:

    I had to reinstall the Z-way plugin (plugins->update now button) to get it working, the login fields did not exist (see above) until I did that. After the reinstall I could log in and get it to work.

    Thanks for the feedback!

    Yes, some plugins do make first-time initialisations like this.

    @archers said in OpenLuup installation:

    run the reload openLuup script from the cmh-ludl folder
    ./openLuup_reload backup/backup.openLuup-nnnn.lzap

    Really glad to hear this worked smoothly. It's something I very rarely do, but it was certainly well tested when first implemented.

    Sorry that I can't advise on the Reactor issue.

    @archers said in OpenLuup installation:

    is it better to do a reinstall from App Store when restoring a backup of from of from Plugins->update now button? Or should it not matter?

    For an already installed plugin, they're equivalent (unless you specify to install anything other than the master version.) For a new plugin, you obviously have to use the App Store. It is possible to maliciously damage the install configuration data which is used for existing plugins, but you'd have to try very hard. In that case, recourse to the store is necessary. The only thing I'm aware of is that there is no install button for VeraBridge, and it's not in the App Store, but since Vera is EOL this hardly matters.

  • Unexpected stop of openLuup

    21
    0 Votes
    21 Posts
    1k Views
    D

    tnks akbooer for your fix.

    About VPN, my server is on a cloud hosting and the web app is accessed by authenticated users so I suppose the only solution is to activate some fw rule on the openluup/datayours server.

  • OpenLuup - problem with solar AZ and ALT variables?

    9
    0 Votes
    9 Posts
    408 Views
    akbooerA

    OK. This bad argument error should be fixed in development version 22.06.20

    Can you give it a go?

    Still thinking about the GetSolarCoords error. Can you confirm that everything is correct in the running system (ie. their current values on the device panel / variables) it's only the returns from this action call that are in error?

    Thanks.

    AK

  • OpenLuup : Basic UI

    9
    0 Votes
    9 Posts
    451 Views
    akbooerA

    You can store things anywhere you like in or below the openLuup root folder. Your problem may well be to do with ownership permissions of the files/folders.

  • Lua using do - end file

    9
    0 Votes
    9 Posts
    455 Views
    parkercP

    Ok, seems to be working now, and it now provides me with an alternative (very basic) UI for OpenLuup.

    7CE29464-1A12-4346-A9BB-1D31331BDA7C.jpeg

    Plus for my plug-ins I can use this to create more kiosk type interfaces for OpenLuup.. e.g.

    https://smarthome.community/topic/813/openluup-kiosk-touchscreen-idea/5?_=1646900153582

  • luup.variable_watch

    10
    0 Votes
    10 Posts
    458 Views
    B

    @akbooer Ok, that's clear enough. Thanks

  • openLuup : Kiosk (Touchscreen) Idea ?

    12
    0 Votes
    12 Posts
    523 Views
    akbooerA

    Glad you have it working to your satisfaction.

    I'm not quite sure what you're suggesting as an openLuup feature, but as you've found, all the tools are there and it's not hard. Not sure how much use it might get since there are so many difference options for this sort of thing.

  • Luup reload required after server reboot

    16
    0 Votes
    16 Posts
    603 Views
    M

    Hi Ak,

    I did a test on a PI as after a reboot would still require a loop reload. I found this article https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ and put network-online.target in the openluup.service file:

    [Unit]
    Description=openLuup and AltUI Server for PI
    Wants=network-online.target
    After=network-online.target

    I can see openLuup gets started later and it seems more reliable in my situation.

    Cheers Rene

  • luaJIT

    33
    2 Votes
    33 Posts
    2k Views
    rafale77R

    Something I recently noticed: CPU utilization drop even under heavy I/O http call situations. I haven't updated anything on my setup since April besides the regular linux kernel updates inside the VM running openLuup/HKbridge/Z-way-server. Where I used to see spikes to 5-7% CPU utilization, they now spike to 1.6%. I usually get a spike when one of my cameras detect a movement and I get homeassistant to send http calls to openLuup to update whether it is seeing a person/ a dog / a car etc... Not sure what changed in the linux kernel but it is a pretty big drop.
    Very noticeable on my system because it is the first time I see my grafana display show such a scale.

    Edit: All of a sudden, this is making me less motivated to explore MQTT...

    Screen Shot 2021-09-14 at 08.38.24.png

  • Altui file not found errors

    21
    0 Votes
    21 Posts
    1k Views
    B

    @akbooer My apologies for not being clear. I'll try to explain what I mean with the following screen shots. The folder holding the localcdn files is "/etc/cmh-ludl/localcdn/"

    062fb793-f3dc-46f9-8f84-17cf68b0c61d-image.png

    A sample error message in openLuup is:

    file not found:etc/cmh-ludl/localcdn/joint.css

    The two paths are identical. Because the two paths are expressed as the same, the impression that one gets from the log is that the actual files in the folder are somehow not accessible to the calling program.

    Because files are retrieved from a relative position to the base folder, the actual path that is being called is probably: /etc/cmh-ludl/etc/cmh-ludl/localcdn/joint.css. If I saw the below path in the error log, I would immediately understand why the files were not being found:

    file not found:etc/cmh-ludl/etc/cmh-ludl/localcdn/joint.css

    Knowing now that the underlying problem was relative paths, the issue is not really a concern for me. And I completely understand the need for relative paths given the chaotic working folder structure on a vera device--and the need to account for this structure in a more rational manner in openLuup. However, others may encounter similar file not found error messages, and be completely flummoxed as to why files that are obviously showing as being in a proper folder, are then not found by the calling function.

    Displaying the full path in the log would give an immediate understanding of why the error is occurring. As for why the original path worked for so long, my guess is that the lua routine walked the path in various ways, and found the files. Why it broke is a mystery, perhaps a more restrictive linux update -- I usually do an OS update when I update openLuup.

  • luup.watch callback

    5
    0 Votes
    5 Posts
    251 Views
    toggledbitsT

    Agree here completely. I suspect, unfortunately, that the early developers had no idea what a "closure" was or how to use it, so they just punted and did the easiest thing. The real sin is that it's easy to tell the difference between a parameter that is a string (name of a global function) and one that is a function reference or closure, so they could have easily improved the operation of these API functions at any time without creating any incompatibility with older versions/styles, but instead they just ignored and perpetuated it. They weren't big enough consumers of their own product to really get in touch with its inconveniences, and for the developers that did note them, well, we're just complainers. 🙂

  • AltUi device VeraBridge

    8
    0 Votes
    8 Posts
    330 Views
    akbooerA

    Great to know. Sorry for the inconvenience!

  • io module async ?

    7
    0 Votes
    7 Posts
    359 Views
    R

    Maybe adding sockproxyd natively into openluup and modifying io.lua to optionally use sockproxyd could be a real winner to finally solve the limitations/problems in the I/O module.

  • Long-overdue roll-up of the last year's development!!!

    2
    1 Votes
    2 Posts
    156 Views
    akbooerA

    Thanks so much. I have to say that a lot of the innovation comes from others (like yourself!)

    Following your message, I've updated the version log to list some of the improvements over the last year.

    I do have some things in progress, including:

    better support for scenes – although I rather suspect that nobody will use scenes since the advent of Reactor / MSR AltAppStore updates (for openLuup only) through GitHub pull-requests possible real-time updates for console device and scene pages finish missing parts of console interface use of standard HTTP servers through CGI interface (perhaps, one day)

    @a-lurker said in Long-overdue roll-up of the last year's development!!!:

    an "App Store" plugin download count

    ...Ah yes, well that will be tricky, and of course we've missed more than a few downloads already!

  • "Tunnel" to MSR from Openluup?

    3
    1 Votes
    3 Posts
    171 Views
    PerHP

    And I'm not fully versed in what a request handler encompasses, that may be a solution?

    How about making some sort of MSR implementation in openLuup? As in having its own tab that embed's the web page? No idea about the scope of that myself, but it would definately be cool.. 🙂

  • Openluup System ID 88800000?

    3
    0 Votes
    3 Posts
    199 Views
    PerHP

    Forgot about the lua startup, it was there all along. 🙂
    Changed it to a different number, and all is in order. Thanks.

  • Data Historian in-memory Cache

    3
    0 Votes
    3 Posts
    149 Views
    akbooerA

    @a-lurker

    Latest development version (v21.6.22b) has this change (trash icon, final column)

    However, it's probably easier, now, to examine the cache from the device Variables pages, since the plotting option allows you to select the cache as well as any of the archives – it's easier to find the variable there too, rather than on the fairly lengthy cache page.

  • Historian

    25
    0 Votes
    25 Posts
    1k Views
    akbooerA

    Yes, my fault entirely. I had changed the structure of the archive rules, making them entirely independent of the Whisper/DataYours .conf files, but failed to remove an old test for schema names. I hadn’t tested that thoroughly enough, clearly!

Recent Topics