Comments (2)
DigitalOcean Singapore server running (Linux). Option to switch to Azure (have servers running there as well) for advanced DB storage and ML model integration, but I think we rather want to keep it simple.
from nus-cs3237-iot-buoys.
MQTT Broker
104.248.98.70:1883 or iot.ckteo.com:1883
user: cs3237
pass: thisisag00dp4ssw0rd
Functionality
Currently, a python listener is subscribed to test/#
. Upon receiving any incoming messages to the channel, it will insert an entry into the mongodb database under the collection abc
, where the test/abc
is the published channel.
The current format of the document is as follows:
[
{
"time": 5555,
"temp": 26.0,
"light": 512,
"acc": [<x>, <y>, <z>, <g_res>],
"gyro": [<pitch>, <yaw>, <roll>]
},
...
]
Accessing Database
- SSH into the droplet
mongosh cs3237 -u cs3237 -p thisisag00dp4ssw0rd
- mongodb commands to select relevant documents
View Logs from Listener
- SSH into the droplet
docker logs listener -f
Testing with mosquitto locally
Subscribe: mosquitto_sub -u cs3237 -P thisisag00dp4ssw0rd -t "test/<TOPIC>" -h iot.ckteo.com
Publish: mosquitto_pub -u cs3237 -P thisisag00dp4ssw0rd -t "test/<TOPIC>" -h iot.ckteo.com -m "[{key: value}]"
from nus-cs3237-iot-buoys.
Related Issues (10)
- Prof briefing 1 HOT 5
- data collection HOT 2
- power management and wake up
- WeMOS - Phone communication HOT 3
- Phone - Cloud communication HOT 5
- Sensors HOT 5
- Cloud Servers HOT 6
- Check-in 2 Pointers HOT 2
- Cloud Analytics HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nus-cs3237-iot-buoys.