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

start domodroid using MQ get.device instead of /rest/sensor #119

Open
tikismoke opened this issue Oct 10, 2016 · 0 comments
Open

start domodroid using MQ get.device instead of /rest/sensor #119

tikismoke opened this issue Oct 10, 2016 · 0 comments
Labels

Comments

@tikismoke
Copy link
Collaborator

tikismoke> cereal_, if i remember for the moment i still using /rest/sensor(s) about #296
cereal_> /rest/sensors?
cereal_> i think it should be some mq message
cereal_> like device.get
cereal_> it is currently implemented only for mq
tikismoke> looking for this part of code to confirm (maybe /rest/devices do not remmeber) but i'm tryng to use more MQ in domodroid
cereal_> for now it only works in device.get
cereal_> device.get qwithout params = all device
cereal_> device.get with timestamp as parm = return all devices changed after tthat timestamp
tikismoke> Confirm when domogik API version >0.8 the url to get all at start is currently /rest/sensor
cereal_> hmm
cereal_> let me check what i can do in rest
tikismoke> Not to sync?
cereal_> but not sure it will be easy
tikismoke> No problem a mq to advise user he need to sync is fine for me too ;)
cereal_> hmm, ok, but the mq message will also return you the updated devices
tikismoke> to sync i use /rest/device
cereal_> ok you should be able to convert this to device.get
tikismoke> INteresting to auto update the domodroid db. need to add this in the todo
cereal_> and if you then always do device.get timestamp=12345
cereal_> then you get only the updates from domogik
tikismoke> includeng delted one or not?
tikismoke> crapy keyboard....
cereal_> in case you do device.get timestamp=0000 will return all data
cereal_> or device.get without params also returns all data

@tikismoke tikismoke added the Todo label Oct 10, 2016
@tikismoke tikismoke changed the title start domodroid using MQ get/device instead of /rest/sensor start domodroid using MQ get.device instead of /rest/sensor Oct 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant