Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Geschrieben

Hi,

 

noticed that the brick-mqtt-proxy is not by default installed on the red-brick - using image 1.8

 

What is the best way to install on the red-brick the brick-mqtt-proxy and ensure it is automatically started during boot?

  • 2 weeks later...
Geschrieben
  • Autor

Hi,

 

tried to install on the RED Brick via Brick Viewer > RED Brick > Programs.

After creating, receiving following error:

Traceback (most recent call last):

  File "brick-mqtt-proxy.py", line 1003, in <module>

    proxy.connect()

  File "brick-mqtt-proxy.py", line 888, in connect

    self.client.connect(self.broker_host, self.broker_port)

  File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 612, in connect

    return self.reconnect()

  File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 734, in reconnect

    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))

  File "/usr/lib/python2.7/socket.py", line 571, in create_connection

    raise err

socket.error: [Errno 97] Address family not supported by protocol

 

The red brick configuration file (tfrba) is attached.

 

Any help appreciated.

red-brick-export-20160229-110050.tfrba

Geschrieben

Uploading it as a program like that is the correct way to go.

 

The error message is a bit misleading. The script tries to connect to an MQTT broker as localhost:1883 by default. If there is no such broker then you get that error message.

 

You need to install an MQTT broker on the RED Brick or tell the script to connect to another broker. You can install a broker with this command on the RED Brick:

 

sudo apt-get install mosquitto

Geschrieben
  • Autor

Thanks for your help. Installed Mosquitto by using:

sudo apt-get install mosquitto mosquitto-clients python-mosquitto

 

It is working fine now.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.