Code Monkey home page Code Monkey logo

rnc's People

Contributors

hippyau avatar vanvught avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

vanvught

rnc's Issues

MacOS: 0.4: flutter: type '_Smi' is not a subtype of type 'String'

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)

Add support for new property: label_port

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"
    }
}

TODO

  • UI to select relevant .txt file for editing
  • Use a directory of files from the node, rather than hard-code file names
  • Send JSON back to node
  • Send reboot command
  • Special handling of rconfig.txt to avoid user disabling remote config by accident.
  • Special treatment when node IP / netmask is changed in network.txt.... Reboot then remove from list, wait a sec, search for new IP
  • Discovery of nodes, use mDNS
  • Colour Picker
  • iOS / MacOS builds
  • Use a dark theme
  • Search screen
  • Handle "Display Udf" Device physical display user defined formatting
  • Show local IP's
  • UDP Realtime Messages
  • LTC: Art-Net time code display & controls
  • Win64 build
  • Android build
  • MacOS build
  • Linux build
  • Splash-screen and device icons

MacOS: 0.4: [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: Null check operator used on a null value

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)

Added support for new property: output_style

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"
    }
}

artnet.txt: Returning 2 objects [not an array]

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>

Schermafbeelding 2021-10-03 om 13 42 38

Mac OS 0.4 Display Font

Hi,

recently downloaded the Mac version of rnc - it seems to work, as it will detect a node, but the font appears as shown in the attached screenshot. I am running Sierra. Is there something I might need to install to get this displaying correctly?

Thanks!

Andrew.
rnc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.