Update: I found the shadowed URL by removing a variable connected to the
http_request block. At first, I directly specified the API key as a part of the URL, then replaced it with the variable.
Posts made by kotobuki
RE: Can't connect servers other than http://api.m5stack.com/v1 with UIFlow_Lite firmware versions after v.1.9.7
Update: I confirmed that I can reproduce this issue with the latest version (i.e., v1.12.3). I also tried specifying the SSID and PASSWORD using a Network block but got no luck. Can anybody else reproduce this issue?
How to remove secrets from a .mf5 file?
I want to publish examples for UIFlow using HTTP requests. I did as follows.
- Create an example with the actual API key
- Replace the key with
- Save as a .mf5 file
- Open the .mf5 file with a text editor and check if the API key is not available in the saved file
I found that the variable for URL is replaced as I expected. However, the original URL containing the API key seems to be available in the
How can I remove the key in UIFlow? Alternative ideas are removing it with a text editor or creating a utility tool, but I want to know if there is a way in UIFlow.
Can't connect servers other than http://api.m5stack.com/v1 with UIFlow_Lite firmware versions after v.1.9.7
The following code works fine with the UIFlow_Lite firmware versions between v1.7.5 and v1.9.6.
However, the HTTP request fails with versions after v1.9.7, including v.12.2. If I change the URL to http://api.m5stack.com/v1, it also works fine with those versions. It seems that firmware versions after v1.9.7 only accept the URL for GET HTTP requests.
I'm sorry if this is a false alarm.
How to prepare a firmware for M5Burner v3.0
I want to deploy my custom firmware. I have submitted firmware in the past, but it seems that the format has been changed (it was .zip but now .bin only).
As a trial, I exported a .bin file by Sketch > Export compiled binary then specified the .bin file but got no luck.
Where is the document explaining how to prepare the firmware for use in the User Custom tab of M5Burner v3.0?
RE: The range of values from an ANGLE between directly connected to PORT B and connected to PORT A via PbHUB is different
ESP32 and mega328 has different ADC resolution
Thank you very much for your reply.
Yes, the ADC module on mega328 has a 10-bit resolution, whereas ESP32 has a 12-bit resolution. If this issue is just a resolution issue, the result should be 0 - 1023 instead of 15 - 745 or 0 - 715. If nobody can reproduce this issue, the PbHUB may be broken...
The range of values from an ANGLE between directly connected to PORT B and connected to PORT A via PbHUB is different
I'm testing my
ANGLE, and I have a question.
When I connect the
ANGLEto port B of the
M5GO, the range of values from the
ANGLEis between 0 and 4095.
However, when I connect the
ANGLEto port A via the
M5GO, the range of values from the
ANGLEis between 15 and 745 (when connected to between ch0 and ch3) or 0 and 715 (when connected to between ch4 and ch5).
I confirmed with both Arduino and UIFlow. Is this normal, or my
PbHUBseems to be broken?
from m5stack import * from m5ui import * from uiflow import * import time import unit setScreenColor(0x222222) pbhub0 = unit.get(unit.PBHUB, unit.PORTA) label0 = M5TextBox(10, 10, "Text", lcd.FONT_DejaVu18, 0xFFFFFF, rotate=0) while True: label0.setText(str((str('ANGLE: ') + str((pbhub0.analogRead(0)))))) wait_ms(100) wait_ms(2)
Can't launch electron-m5burner-v2-eletron on macOS Catalina (10.15.5)
I just downloaded M5Burner v2 from https://m5stack.com/pages/download, unzipped, and tried to launch. However, I got an error message like 'The application "electron-m5burner-v2-eletron" can't be opened'. I also tried unzipping with The Unarchiver and could open the app, then got error messages as follows (an excerpt).
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
Library not loaded: @rpath/Electron Framework.framework/Electron Framework
Referenced from: /Applications/electron-m5burner-v2-eletron.app/Contents/MacOS/electron-m5burner-v2-eletron
Reason: no suitable image found. Did find:
/Applications/electron-m5burner-v2-eletron.app/Contents/MacOS/../Frameworks/Electron Framework.framework/Electron Framework: file too short
/Applications/electron-m5burner-v2-eletron.app/Contents/MacOS/../Frameworks/Electron Framework.framework/Electron Framework: stat() failed with errno=1
M5Burner v1.0.1 has been working fine in the same environment. Could you please let me know if you know anything about this issue.
BTW, I found an article that seems to be related to this issue. https://medium.com/cacher-app/getting-your-electron-app-working-on-macos-catalina-10-15-63e53f397da2
RE: M5StickC HAT PIN control in UIFlow
I want to utilize the HAT pin in UIFlow to add a digital sensor. Are there any plans to support the HAT pin in UIFlow? Though I can code in the Arduino environment, I want to go with UIFlow if possible. Because UIFlow is easy to deploy and let non-experts tinker.