telldus / tellstick-server-plugins

Plugins for TellStick Server
14 stars 8 forks source link

Sending remote data #4

Open xeor opened 6 years ago

xeor commented 6 years ago

Since the http plugin is waiting for https://github.com/scoder/lupa/issues/84, can be get another way in the meantime to send remote-data in a more generic way..?

mickeprag commented 6 years ago

Will the mqtt plugin be available soon? Or is it possible to upload it myself?

This needs more work. Please help out to finish it. I am not using mqtt myself so I cannot continue since I don't know about the usage in a real world.

Can the http plugin be made available using a zip that we can upload ourself, even tho it might be unstable? I'm willing to take the risk..

Maybe we can disable the ability to get back the returned data for now? It will be "fire and forget" but at least the plugin will be somewhat useful.

If I make a new generic plugin, almost like pushover, that sends data over http to a configurable url, will it be accepted as a pull-request?

If it is generic and can be used by several people, then yes.

xeor commented 6 years ago

Thanks for the reply.

This needs more work. Please help out to finish it. I am not using mqtt myself so I cannot continue since I don't know about the usage in a real world.

I'll check it out and see if I can help out some time in the future. I've not used mqtt a lot my-self (saw this as a usecase), so I might end up stalling as well..

Maybe we can disable the ability to get back the returned data for now? It will be "fire and forget" but at least the plugin will be somewhat useful.

That would probably make it usefull for probably 80% of it's usecases! Fire-and-forget sounds like a good solution while we wait for lupa#84..

If it is generic and can be used by several people, then yes.

I'll add this to my project-list.. I did hit a problem tho when trying to make a tellstick plugin package.. I'll create a new issue for it if I can't find a good solution.

jibdata commented 6 years ago

Will it be possible to get the http plugin with the fire-and-forget workaround operational? Would really like to get started with sending data to remote endpoint through http via LUA.

philosomatica commented 5 years ago

Maybe we can disable the ability to get back the returned data for now? It will be "fire and forget" but at least the plugin will be somewhat useful.

That would make the http-plugin useful to 98% for me! :)

atchoo78 commented 5 years ago

@mickeprag: Speaking of which....I still haven't figured out how to configure a callback for responses through the HTTP plugin. LUA confuses me, I think. 😓

from the "HTTP" plugin description:

Due to technical reasons all calls are async. To retrieve the response from a http call a callback must be supplied.

Can you provide an example how to do this?

Also in the plugin description text:

More examples can be found here:
https://github.com/telldus/tellstick-lua-examples/tree/master/plugins/http

...but there seems to be some Jedi mind tricks blocking that particular url: Skjermbilde 1

👾 Andreas