-
Notifications
You must be signed in to change notification settings - Fork 71.7k
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
Wip/mqtt/init - tracking mqtt experiments #190
Conversation
Introduce basic mqtt.
Simple conflicts merged. Conflicts: env.js package.json
I can see some messages being delivered from some past experiment, interesting. |
Uses experimental support in sgvdata for protobuf.
This should work with @ktind's mqtt uploader with the download model to at least debug the thing (it won't record anything yet, but should be able to receive the messages and print them). |
Really want to arrange the last will and testament message, the on connect message, and a message for usb connection status. The combination will allow us to put a real-time widget on the web app with the connection status. |
See also #272 |
|
…nto wip/mqtt/init Conflicts: lib/mqtt.js Merging @ktind's version.
…rds via MQTT New method to create device status with a backdated timestamp
This is intended to allow multiple listeners on mqtt to each receive data from MQTT, so long as they are writing to different databases.
…t-merge Conflicts: lib/mqtt.js
Converting Sensor filtered and unfiltered data to a proper number
Conflicts: lib/devicestatus.js
@@ -167,6 +167,11 @@ function storage(name, storage, pushover) { | |||
}); | |||
} | |||
|
|||
function writeStream (opts) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't look like this is used by anything
context range fix
Make sure indexes are created for commonly sought fields.
Resolved Conflicts: lib/devicestatus.js package.json server.js
The rebasing includes re-plays on top of |
Changes Unknown when pulling 82032f4 on wip/mqtt/init into * on dev*. |
|
||
function index (opts) { | ||
function calc (data) { | ||
var o = lo.pick(data, opts.keys); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should lo
be _
?
Changes Unknown when pulling 0cdd3c0 on wip/mqtt/init into * on dev*. |
1 similar comment
Changes Unknown when pulling 0cdd3c0 on wip/mqtt/init into * on dev*. |
Changes Unknown when pulling d185010 on wip/mqtt/init into * on dev*. |
1 similar comment
Changes Unknown when pulling d185010 on wip/mqtt/init into * on dev*. |
Changes Unknown when pulling d185010 on wip/mqtt/init into * on dev*. |
Wip/mqtt/init - tracking mqtt experiments
W00t exciting
|
The corresponding uploader changes (there are a few actually)
The protobuf model:
https://github.com/nightscout/android-uploader/blob/master/core/src/main/java/com/nightscout/core/model/Download.proto
Feel free to close/ignore if this gets in the way of things, I'll move it to my personal fork if it becomes a distraction.