Code Monkey home page Code Monkey logo

mqttwebview's Introduction

A MQTT-connected web view

How to install

  • Install the dependencies like this:
sudo apt install python3-gi gir1.2-webkit-3.0 libwebkitgtk-3.0-dev
pip3 install -r requirements.txt --user
  • Then clone the git repo: https://github.com/c-base/mqttwebview.git

How to run

  • cd into the freshly cloned directory
  • Run the program with ./run_mqttwebview.sh

Run automatically at boot time

Set i3 as the default window manage (session) in lightdm.

Add the following line to /home/$USER/.i3/config:

exec /home/$USER/mqttwebview/run_mqttwebview.sh

How to run X11 without mouse cursor and also disable display sleep

in /etc/lightdm/lightdm.conf change the line

xserver-command=X

into this:

xserver-command=X -nocursor -s 0 dpms

mqttwebview's People

Contributors

bergie avatar uwekamper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mqttwebview's Issues

Send fbp discovery messages periodically

Right now we're using a foreign participant declaration to make our "showurl" participants (provided by this software) to show up in c-flo:

https://github.com/c-base/c-flo/blob/master/participants/showurl.yml

It would be preferable for each mqttwebview instance to send these discovery messages itself. This way we could remove these foreign participants from c-flo, and each new mqttwebview instance would appear automatically in the c-flo graph when it becomes online.

mqttwebview should send these messages to the fbp topic at start up, and periodically after that (every 60 seconds is a good default).

Here are examples of how these discovery messages look like:

{
  "command": "participant",
  "protocol": "discovery",
  "payload": {
    "component": "c-base/farbgeber",
    "inports": [
      {
        "queue": "farbgeber.IN",
        "type": "bang",
        "id": "in"
      }
    ],
    "label": "Produce pleasing color palettes",
    "outports": [
      {
        "queue": "farbgeber.PALETTE",
        "type": "object",
        "id": "palette"
      }
    ],
    "role": "farbgeber",
    "id": "farbgeber92490",
    "icon": "tint"
  }
}
{
  "command": "participant",
  "protocol": "discovery",
  "payload": {
    "component": "c-base/boardingurl",
    "inports": [
      {
        "queue": "boardingurl.IN",
        "type": "object",
        "id": "in"
      }
    ],
    "label": "Generate greeting URL for crew members that are boarding",
    "outports": [
      {
        "queue": "boardingurl.OUT",
        "type": "string",
        "id": "out"
      }
    ],
    "role": "boardingurl",
    "id": "boardingurl3406",
    "icon": "check"
  }
}

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.