Repository navigation
What would be the best option for using locally available data? #2446
Replies: 2 comments 1 reply
|
Hi @villeneuve You did not miss anything. FUXA does not currently read directly from local files or sockets. Using MQTT or Modbus is not really overkill here; it provides a clean separation between the hardware communication layer and the HMI layer. Your Python, Bash, or C service can handle the microcontroller communication and expose the values to FUXA. Alternatively, you can implement the required custom communication directly in the FUXA server code. |
|
OK it's done now. I've successfully installed FUXA-headless-ubuntu-24.04-arm-arm64.zip and mosquitto and configured MQTT. Everything fine so far, I get ny 27 parameters in Fuxa and start to learn how to animate this and send commands and scripts. Note: Despite "ubuntu" in the name it runs well on Raspberry pi OS Trixie |
Uh oh!
There was an error while loading. Please reload this page.
Hello Fuxa,
I want to install Fuxa on a Raspberry Pi 4 (1GB) with a 7" touchscreen running Raspberry Pi OS Trixie. This Pi is connected to a microcontroller via UART and controls a VFD. Every 15 seconds, the microcontroller sends a data series—specifically a Python list—which is captured and logged on the Pi via systemd journal. Here is an example line:
Jul 19 11:04:49 PoolBox vfd-uart[1278]: Data: ['online', '2500', '2500', '3189', '117', '23', '14', '264', '750', '2500', '5', '3025', '33', '1', '1', '1', '65000', '27.75', '0', '0', '38.0625', '85', '0', '28.75', '347', '0', '11108']
This data corresponds to the following parameters:
VFD status (online/offline)
Running frequency (Hz)
Set frequency (Hz)
Bus voltage
Output voltage
Output current
Output power
Output torque
Load speed
Feedback frequency
Cumulative power-on time
Cumulative running time
VFD heatsink temperature
Motor status
Contactor status
Circuit breaker status
Fan duty_u16 (fan speed)
PicoBox temperature
PicoBox CRC error
PicoBox other error
Motor temperature
Motor CRC error
Motor other error
Water temperature
Water CRC error
Water other error
Total access count for each sensor
Additionally, I can send commands from the Pi (Python scripts) to the microcontroller to start/stop the motor, adjust the frequency, etc.
I can use Python, Bash, or C to format the data received from the microcontroller and make it available to Fuxa. However, after reading the documentation, I don't see a way to do this without using MQTT, Modbus, or a database—all of which seem like overkill. I can't see in the documentation whether Fuxa can simply read data available locally—from a file, a socket, or something similar. Did I miss something?
According to your expérience what would be the best way to do this?
Thanks for taking the time to read this.
All reactions