hippyau / rnc Goto Github PK
View Code? Open in Web Editor NEWFlutter App for remote configuring OrangePi firmwares by AvV
License: Other
Flutter App for remote configuring OrangePi firmwares by AvV
License: Other
Hi Hip, getting this error when DISPLAY_UDF
is defined in the firmware.
flutter: GET /json/display.txt: {display.txt: {intensity: 127, sleep_timeout: 5, flip_vertically: 0, title: 0, board_name: 0, ip_address: 0, version: 0, universe: 0, active_ports: 0, hostname: 0, universe_port_a: 0, universe_port_b: 0, universe_port_c: 0, universe_port_d: 0, net_mask: 0, dmx_start_address: 0, default_gateway: 0, dmx_direction: 0}}
flutter: type '_Smi' is not a subtype of type 'String'
flutter: #0 _ConfigScreenState.configList.<anonymous closure> (package:rcmnode/confignodescreen.dart:203)
flutter: #1 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:400)
flutter: #2 _ConfigScreenState.configList (package:rcmnode/confignodescreen.dart:121)
flutter: #3 _ConfigScreenState._buildDirectoryList.<anonymous closure> (package:rcmnode/confignodescreen.dart:759)
flutter: #4 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:400)
flutter: #5 _ConfigScreenState._buildDirectoryList (package:rcmnode/confignodescreen.dart:751)
flutter: #6 _ConfigScreenState.build (package:rcmnode/confignodescreen.dart:809)
flutter: #7 StatefulElement.build (package:flutter/src/widgets/framework.dart:4782)
flutter: #8 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4665)
flutter: #9 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4840)
flutter: #10 Element.rebuild (package:flutter/src/widgets/framework.dart:4355)
flutter: #11 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2620)
flutter: #12 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:882)
flutter: #13 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:319)
flutter: #14 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1143)
flutter: #15 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1080)
flutter: #16 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:996)
flutter: #20 _invoke (dart:ui/hooks.dart:166)
flutter: #21 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:270)
flutter: #22 _drawFrame (dart:ui/hooks.dart:129)
flutter: (elided 3 frames from dart:async)
Every port can have its own label.
The new JSON property is label_port_|port|
{
"artnet.txt": {
"long_name": "DMX4 Art-Net 4 https://gd32-dmx.org",
"enable_rdm": 0,
"failsafe": "hold",
"universe_port_a": 1,
"direction_port_a": "output",
"label_port_a": "Port 1",
"universe_port_b": 2,
"direction_port_b": "output",
"label_port_b": "Port 2",
"universe_port_c": 3,
"direction_port_c": "output",
"label_port_c": "Port 3",
"universe_port_d": 4,
"direction_port_d": "output",
"label_port_d": "Port 4",
"merge_mode_port_a": "htp",
"output_style_a": "const",
"rdm_enable_port_a": 0,
"merge_mode_port_b": "htp",
"output_style_b": "delta",
"rdm_enable_port_b": 0,
"merge_mode_port_c": "htp",
"output_style_c": "delta",
"rdm_enable_port_c": 0,
"merge_mode_port_d": "htp",
"output_style_d": "delta",
"rdm_enable_port_d": 0,
"destination_ip_port_a": "192.168.2.255",
"destination_ip_port_b": "192.168.2.255",
"destination_ip_port_c": "192.168.2.255",
"destination_ip_port_d": "192.168.2.255",
"protocol_port_a": "artnet",
"priority_port_a": 100,
"protocol_port_b": "artnet",
"priority_port_b": 100,
"protocol_port_c": "artnet",
"priority_port_c": 100,
"protocol_port_d": "artnet"
}
}
-> https://github.com/hippyau/rnc/releases/download/MacOS/rnc-0.2.zip
Hi Hip, the console output is full with the error below.
[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: Null check operator used on a null value
#0 State.setState (package:flutter/src/widgets/framework.dart:1108)
#1 _ControlScreenState.initState.<anonymous closure> (package:rcmnode/controlnodescreen.dart:36)
#2 _rootRunUnary (dart:async/zone.dart:1436)
#3 _CustomZone.runUnary (dart:async/zone.dart:1335)
#4 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1244)
#5 _CustomZone.bindUnaryCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1281)
#6 _rootRunUnary (dart:async/zone.dart:1444)
#7 _CustomZone.runUnary (dart:async/zone.dart:1335)
#8 _CustomZone.bindUnaryCallback.<anonymous closure> (dart:async/zone.dart:1265)
#9 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:395)
#10 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:426)
#11 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184)
The DMX output can be delta
or constant
The new JSON property is output_style_|port|
{
"artnet.txt": {
"long_name": "DMX4 Art-Net 4 https://gd32-dmx.org",
"enable_rdm": 0,
"failsafe": "hold",
"universe_port_a": 1,
"direction_port_a": "output",
"label_port_a": "Port 1",
"universe_port_b": 2,
"direction_port_b": "output",
"label_port_b": "Port 2",
"universe_port_c": 3,
"direction_port_c": "output",
"label_port_c": "Port 3",
"universe_port_d": 4,
"direction_port_d": "output",
"label_port_d": "Port 4",
"merge_mode_port_a": "htp",
"output_style_a": "const",
"rdm_enable_port_a": 0,
"merge_mode_port_b": "htp",
"output_style_b": "delta",
"rdm_enable_port_b": 0,
"merge_mode_port_c": "htp",
"output_style_c": "delta",
"rdm_enable_port_c": 0,
"merge_mode_port_d": "htp",
"output_style_d": "delta",
"rdm_enable_port_d": 0,
"destination_ip_port_a": "192.168.2.255",
"destination_ip_port_b": "192.168.2.255",
"destination_ip_port_c": "192.168.2.255",
"destination_ip_port_d": "192.168.2.255",
"protocol_port_a": "artnet",
"priority_port_a": 100,
"protocol_port_b": "artnet",
"priority_port_b": 100,
"protocol_port_c": "artnet",
"priority_port_c": 100,
"protocol_port_d": "artnet"
}
}
Hi Hip,
For artnet.txt
, there are 2 objects returned. These are just 2 individual objects, not returned as an array. Any idea how we can fix this? Which side ;-) ?
flutter: GET /json/directory: {files: {artnet.txt: Art-Net, params.txt: DMX Transmit, network.txt: Network, rconfig.txt: Remote configuration}}
[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: FormatException: Unexpected character (at character 821)
..."destination_ip_port_d":"192.168.2.255"}}{"artnet.txt":{"map_universe0":0}}
^
#0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1405)
#1 _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:870)
#2 _parseJson (dart:convert-patch/convert_patch.dart:40)
#3 JsonDecoder.convert (dart:convert/json.dart:506)
#4 JsonCodec.decode (dart:convert/json.dart:157)
#5 _ConfigScreenState.getJSONData.<anonymous closure>.<anonymous closure> (package:rcmnode/confignodescreen.dart:36)
#6 State.setState (package:flutter/src/widgets/framework.dart:1088)
#7 _ConfigScreenState.getJSONData.<anonymous closure> (package:rcmnode/confignodescreen.dart:33)
#8 _rootRunUnary (dart:async/zone.dart:1436)
<asynchronous suspension>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.