Giter Site home page Giter Site logo

Comments (2)

leon-thomm avatar leon-thomm commented on July 19, 2024

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.

exetr avatar exetr commented on July 19, 2024

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

  1. SSH into the droplet
  2. mongosh cs3237 -u cs3237 -p thisisag00dp4ssw0rd
  3. mongodb commands to select relevant documents

View Logs from Listener

  1. SSH into the droplet
  2. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.