This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

New JavaScript API in the upcoming firmware
#2
Hi Admin,

I would like to request the following items:

tag.listen() returns object.name, object.address, object.value, state from event trigger object of tag group so we can listen to a tag group and know what object triggers the listen event.

grp.timediff(alias) returns time difference of updatetime and os.time() as client time is not the same as server time, this way you have a cleaner value

Also add to grp.listen() / tag.listen() the option to set a deadband for callback, for setting a minimal/maximal change of value before callback is triggered. 

Maybe all the other functions from App engine should be available from API like:

grp.all()
grp.find(alias) 
grp.tag(tags [, mode])
grp.read(alias)
grp.gettags(alias) 
grp.addtags(alias, tags)  
grp.removetags(alias, tags) 
grp.removealltags(alias) 
grp.create(config) 

Does App engine already have grp.listen()? Would be good to align those commands (:

BR,

Erwin
Reply


Messages In This Thread
RE: New JavaScript API in the upcoming firmware - by Erwin van der Zwart - 14.06.2016, 22:39

Forum Jump: