SensorScape is a data collection, transport, and analysis framework for sensor networks and the Internet of Things.
Data is collected from hardware devices with modules, queued and sent reliably to a server by the client, and parsed, analyzed, and presented by a server.
- Fill out
nodeIDmust be registered on the server (using the
- Keys can be generated on the server using the
keypaircommand, or you can generate them yourself
- From the top level:
- Run modules
Note: You must run
./build.sh after updating the
ss_c.conf file for changes to take effect.
helpat the command line
- Modules that you run may register commands with the client. The output of the
helpcommand will include information about registered commands as well
- Metric granularity is one second. If you send the same metric twice in a second, the most recent is what's stored on the server.
- The client listens for metric data from modules on
listenPort, and sends data to the server on
- Should the connection between the client and the server be interrupted, the client will queue metrics to send later
- Data is sent from the client to the server in protocol buffers over ZeroMQ
- show nodeID when press enter
- notification framework. the server can message the client to:
- act as an intermediary to send messages between clients (implement a message command in the client)
- let clients know about interesting events they're subscribed to
- example: 'stationxx is close to you'
- don't use zmq pub/sub because it is filtered at the client side. roll our own.
- show throughput for each module, and total estimated throughput to server
- verify when server returns a TSDB error client disconnects w/ message and tries to reconnect
- fix client sends last heartbeat from before disconnect (measurement also if it was last to be sent? it's queued and uses it to test reconnect...)
Copyright (C) 2019 Joshua Davis
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.