Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

aerospike-examples/modeling-iot-sensors

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modeling IoT Sensors in Aerospike

This is companion code for my Medium article Aerospike Modeling: IoT Sensors.

Populate Test Data

chmod +x run_sensors.sh
./run_sensors.sh

Query the Data

python query_iot_data.py --help
usage: query_iot_data.py [--help] [-U <USERNAME>] [-P <PASSWORD>]
                         [-h <ADDRESS>] [-p <PORT>] [-n <NS>] [-s <SET>]
                         [--sensor <SENSOR-ID>] [-i]

optional arguments:
  --help                Displays this message.
  -U <USERNAME>, --username <USERNAME>
                        Username to connect to database.
  -P <PASSWORD>, --password <PASSWORD>
                        Password to connect to database.
  -h <ADDRESS>, --host <ADDRESS>
                        Address of Aerospike server.
  -p <PORT>, --port <PORT>
                        Port of the Aerospike server.
  -n <NS>, --namespace <NS>
                        Port of the Aerospike server.
  -s <SET>, --set <SET>
                        Port of the Aerospike server.
  --sensor <SENSOR-ID>  Sensor ID
  -i, --interactive     Interactive Mode
Morty Proxy This is a proxified and sanitized view of the page, visit original site.