Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. Oskars
    O
    • Continue chat with Oskars
    • Start new chat with Oskars
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    Oskars

    @Oskars

    2
    Reputation
    9
    Posts
    129
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Oskars Follow

    Posts made by Oskars

    • RE: How to get the API Key of ATOM S3

      Somehow I managed to link S3 devices to my account by flashing Alpha-9 version of UIFlow firmware, instead of the newest one.

      posted in Atom
      O
      Oskars
    • RE: How to get the API Key of ATOM S3

      @ajb2k3 Thank You for the video, however when showing how to get the API key about getting the API key I noticed only "On the bottom here is where you would normally select but as you can see it's already connected" and "I'll explain how to get that on a later video". Do You have the link to that "later video" as well?

      posted in Atom
      O
      Oskars
    • RE: Can't subscribe to MQTT topic

      @felmue Thank You, after I changed the code via Thonny and moved mqtt_client.subscribe after initialization the error disappeared. However the device still does not react to MQTT topics it has subscribed. So the bug is not only in UIFlow2 (incorrectly placed subscribe call) but also in MQTT library or firmware?

      posted in UiFlow 2.0
      O
      Oskars
    • RE: Can't subscribe to MQTT topic

      @ajb2k3In that case, is there an option to use UIFlow with S3 while UIFlow2 is "for testing only"? I did not see any warnings saying "things will not work" while buying it. Is there any timeframe when the already enabled functionality might work? I'm currently not asking about new features or support for more hardware, just for the things that already are available in UI.

      posted in UiFlow 2.0
      O
      Oskars
    • RE: Can't subscribe to MQTT topic

      Hardware used is Atom S3, software - UiFlow2.
      My UiFlow2 code:
      0_1683721000559_uiflow2.png
      Without "MQTT subscribe" block all else works.
      Error when running on device:
      0_1683721028662_error.jpeg

      Python code generated by UiFlow:

      import os, sys, io
      import M5
      from M5 import *
      from umqtt import *

      circle0 = None
      mqtt_client = None

      def mqtt_mqttDebugIncoming_event(data):
      global circle0, mqtt_client
      circle0.setColor(color=0x009900, fill_c=0x009900)

      def setup():
      global circle0, mqtt_client
      mqtt_client.subscribe('mqttDebugIncoming', mqtt_mqttDebugIncoming_event, qos=0)

      M5.begin()
      circle0 = Widgets.Circle(62, 62, 50, 0xffffff, 0xffffff)

      mqtt_client = MQTTClient('mqttDebug', 'homeassistant.local', port=1883, user='mqttdebug', password='mqttdebug', keepalive=300)
      mqtt_client.connect(clean_session=True)
      mqtt_client.publish('mqttDebugOutgoing', 'This works, broker receives message!', qos=0)
      circle0.setColor(color=0x3333ff, fill_c=0x3333ff)

      def loop():
      global circle0, mqtt_client
      M5.update()

      if name == 'main': # Forum message formatter messes this up
      try:
      setup()
      while True:
      loop()
      except (Exception, KeyboardInterrupt) as e:
      try:
      from utility import print_error_msg
      print_error_msg(e)
      except ImportError:
      print("please update to latest firmware")

      posted in UiFlow 2.0
      O
      Oskars
    • Can't subscribe to MQTT topic

      Can anyone demonstrate the example for subscribing to certain MQTT topic? All I'm getting is an error: "'NoneType' object has no attribute 'subscribe'". Meanwhile publishing to MQTT works as it should.

      posted in UiFlow 2.0
      O
      Oskars
    • RE: MQTT Block

      Nice thing is that MQTT is now available in UiFlow 2 Alpha 11, however I can not manage to get it working. When trying to subscribe to a topic, I receive an error "AtributeError: 'NoneType' object has no attribute 'subscribe'".

      posted in UiFlow 2.0
      O
      Oskars
    • RE: Atom S3 with UIFlow

      Then probably the fact that Atom S3 currently supports only tiny subset of UIFlow features should be made clearer in the product description. I bought an Atom Matrix for a DIY watering project, was fairly impressed with the device (and the whole M5Stack concept) and decided that small local display for current humidity etc would be even better. So I bought the new AtomS3 (described as supporting UIFlow development platform) and currently can't connect it neither to my Watering sensors nor the MQTT data collection server. I will switch my development back to the Matrix and will be looking forward to switch it again when the features I need will be supported in UIFlow 2

      posted in Atom
      O
      Oskars
    • RE: Atom S3 with UIFlow

      Is there a way to get Atom S3 running with the UiFlow 1, at least until some basic networking support is implemented in UiFlow 2? Currently it seems we have to choose between buying older hardware (Atom Matrix/Lite) that has mature UiFlow feature set OR buying newer hardware (Atom S3 / Atom S3 Lite) and waiting unknown amounts of time until the features we need are implemented.

      posted in Atom
      O
      Oskars