Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outgoing events from pimatic #7

Open
sandervandegeijn opened this issue Oct 9, 2015 · 8 comments
Open

Outgoing events from pimatic #7

sandervandegeijn opened this issue Oct 9, 2015 · 8 comments
Assignees

Comments

@sandervandegeijn
Copy link

From the documentation I gather you import data from the mqtt server, but is it also possible to expose all events in pimatic to the mqtt server so other interested applications can use the events/data? :)

Thanks!

@andremiller andremiller self-assigned this Oct 9, 2015
@andremiller
Copy link
Owner

At the moment this plugin can only subscribe to mqtt messages, it cannot publish them.

I might look at that in the future though.

@sandervandegeijn
Copy link
Author

This would be really really nifty, I have two applications that need realtime data from each other and from/to pimatic as well. Without a message bus even with three apps this quickly results in a lot of connections and that's not cool.

If this plugin would expose all events by device/group/name or something, that would give great interconnectivity :) I'd like to help but I'm more of a c# dev than Coffeescript :)

@kenci
Copy link

kenci commented Jan 21, 2016

@neographikal You could use a script which connects to the websocket of pimatic. If anything is received, publish it to MQTT. I wrote a script for this behavior.

@wutu
Copy link

wutu commented Feb 1, 2016

@kenci It sounds interesting. Can I download the script somewhere ?

@kenci
Copy link

kenci commented Feb 1, 2016

Here it is.. https://gist.github.com/kenci/5c13547cfff1e2f44d36
Adjust the paths, install dependecies and run with node socket-pimatic.js

@wutu
Copy link

wutu commented Feb 1, 2016

Thx, but 404 error 😄

@kenci
Copy link

kenci commented Feb 2, 2016

@wutu
Copy link

wutu commented Feb 3, 2016

@kenci Lot of fun with your script. Thx a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants