Author Topic: LuaUPnP discussion -- the next big feature in Vera  (Read 55229 times)

Offline chevdor

  • Jr. Member
  • **
  • Posts: 78
  • Karma: +0/-0
Re: LuaUPnP discussion -- the next big feature in Vera
« Reply #45 on: May 15, 2012, 03:37:36 pm »
Getting the temperature withe decimal values. Is that SOO hard?

Offline psykokwak

  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
Re: LuaUPnP discussion -- the next big feature in Vera
« Reply #46 on: May 24, 2012, 05:02:40 pm »
Getting the temperature withe decimal values. Is that SOO hard?

+1

Some other points :
- Improve the "/var/log/cmh/LuaUPnP.log" update rate. It's very annoying to have to wait few time when we debug our program...
- Please, update your wiki. For exemple the luup.attr_get("foo", 9) function does not exists anymore. (I use "luup.devices[9].foo" instead).
- Maybe it could be nice to add a "print_r" function to help debugging. I use this one : http://www.hpelbers.org/lua/print_r
- Add a luup.call_timer_cancel(...) function.
- Add a json lua library (as discussed here http://forum.micasaverde.com/index.php/topic,10521.msg74064.html#msg74064


Thanks.

Offline oTi@

  • Beta Testers
  • Master Member
  • *****
  • Posts: 4041
  • Karma: +32/-6
  • UI what ?!
Re: LuaUPnP discussion -- the next big feature in Vera
« Reply #47 on: May 24, 2012, 08:41:30 pm »
- Improve the "/var/log/cmh/LuaUPnP.log" update rate. It's very annoying to have to wait few time when we debug our program...
In /etc/cmh/cmh.conf set:
Code: [Select]
ImmediatelyFlushLog=1
Dezwaved at the moment...

Offline psykokwak

  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
Re: LuaUPnP discussion -- the next big feature in Vera
« Reply #48 on: May 25, 2012, 03:19:16 am »
- Improve the "/var/log/cmh/LuaUPnP.log" update rate. It's very annoying to have to wait few time when we debug our program...
In /etc/cmh/cmh.conf set:
Code: [Select]
ImmediatelyFlushLog=1

Yeahhh. Thanks.
Maybe it could be a good idea to put that on the wiki ?

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1756
  • Karma: +11/-3
Re: LuaUPnP discussion -- the next big feature in Vera
« Reply #49 on: May 25, 2012, 06:27:34 am »
  • When you enable VerboseLogging (either from the UI, or from the console using VerboseLogging.sh enable) ImmediatelyFlushLog is automatically set to 1.
  • The attr_get function has been added recently and it's not available in 1.5.346.
  • A Lua json library will be added in the next firmware.

Offline RichardTSchaefer

  • Master Member
  • *******
  • Posts: 10059
  • Karma: +759/-141
Re: LuaUPnP discussion -- the next big feature in Vera
« Reply #50 on: June 04, 2012, 02:13:28 pm »
A hook to have trap notifications in a plugin.
I would like to have all notifications be sent via  VeraAlert instead of Mios EMail/SMS

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1756
  • Karma: +11/-3
Re: LuaUPnP discussion -- the next big feature in Vera
« Reply #51 on: June 05, 2012, 05:54:35 am »
@RichartTSchaefer

Not exactly what you want, but with a bit of work you can get a server set up and use this: http://wiki.micasaverde.com/index.php/AlternateEventServer

Offline RichardTSchaefer

  • Master Member
  • *******
  • Posts: 10059
  • Karma: +759/-141
Re: LuaUPnP discussion -- the next big feature in Vera
« Reply #52 on: June 05, 2012, 08:21:36 am »
Something like that for setting a notification handler would be great ... but with a replace option as opposed to an additional destination.

That plus add the option of a user defined string everywhere a notification is defined in the UI.

A notification plugin can then:
  • Notification Service specific customization.
  • Collect additional information for the available users (Assumes we can get at this info ... I have not looked yet)  ... i.e. for VerAlert the target ID for the user's phone. 
  • Trap the notifications with the following info: Name, Existing Notification Description Info, User Defined Optional Message, and notified user list; It can format and send the data for the custom notification service

Offline fouclo62

  • Full Member
  • ***
  • Posts: 105
  • Karma: +2/-0
Re: LuaUPnP discussion -- the next big feature in Vera
« Reply #53 on: April 18, 2014, 03:19:09 pm »
Not sure if this is the right place for my question...   but I stumbled upon LUA Development Tool (LDT) and I was wondering if there was a way to make it work with LuaUPnP  (maybe by adding libraries or something???)  Please bare with me, I'm still new at all this and I don't know what I'm talking about but any constructive help will be appreciated.
Thx
Claude

Offline fouclo62

  • Full Member
  • ***
  • Posts: 105
  • Karma: +2/-0
Re: LuaUPnP discussion -- the next big feature in Vera
« Reply #54 on: April 18, 2015, 09:53:36 pm »
Wow... how did this post show up here "now"... This was one of my first post that I did years ago.  Anyway, I guess I have my answer now... I stumbled on ZeroBrane for Vera and it is not too shabby for troubleshooting LUUP... look it up  ;-)

Offline akbooer

  • Master Member
  • *******
  • Posts: 5869
  • Karma: +249/-69
  • "Less is more"
Re: LuaUPnP discussion -- the next big feature in Vera
« Reply #55 on: April 19, 2015, 05:38:37 am »
@fouclo62, thank you for reawakening this thread.

It reminds me to ask if anyone knows whether the promised JSON library ever appeared?

  • When you enable VerboseLogging (either from the UI, or from the console using VerboseLogging.sh enable) ImmediatelyFlushLog is automatically set to 1.
  • The attr_get function has been added recently and it's not available in 1.5.346.
  • A Lua json library will be added in the next firmware.
3x Vera Lite-UI5/Edge-UI7, 25x Fibaro, 23x TKB, 9x MiniMote, 2x NorthQ Power, 2x Netatmo, 1x Foscam FI9831P, 9x Philips Hue,
Razberry, MySensors Arduino, HomeWave, AltUI, AltHue, DataYours, Grafana, openLuup, ZWay, ZeroBrane Studio.

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1756
  • Karma: +11/-3
Re: LuaUPnP discussion -- the next big feature in Vera
« Reply #56 on: April 20, 2015, 02:35:24 am »
UI7 contains the dkjson library.