Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppliancePage - Create a flexible/modular/data-driven UI to set up individual appliances #5

Open
chron0 opened this issue Jun 14, 2016 · 1 comment
Assignees
Labels

Comments

@chron0
Copy link
Member

chron0 commented Jun 14, 2016

No description provided.

@chron0
Copy link
Member Author

chron0 commented Jun 14, 2016

Current mock model for an appliance (WIP/RFC):

this.appliance = {

      'name': 'Reflow-Oven',
      'desc': 'A full Reflow-Oven Implementation',
      'modules': [
        {
          'name': 'PID Temperature Governor',
          'icon': 'thermometer',
          'control': {
            'name': 'PID Temp Full',
            'icon': 'thermometer',
            'driver': 'drv/ctrl-pid-temp',
            'inputs': [
              {
                'type': 'float',
                'unit': '°C',
              },
            ],
            'outputs': [
              {
                'type': 'binary',
              },
              {
                'type': 'binary',
              },
            ],
            'conf': [
              {
                'name': 'Max tRun',
                'val': '300s',
              },
              {
                'name': 'Max °C',
                'val': '250',
              },
              {
                'name': 'Min °C',
                'val': '0',
              },
              {
                'name': 'Kp',
                'val': '30.2',
              },
              {
                'name': 'Ki',
                'val': '0.77',
              },
              {
                'name': 'Kd',
                'val': '30.2',
              },
            ],
          },
          'inputs': [
            {
              'name': 'K-Type Probe',
              'color': '#c70000',
              'icon': 'thermometer',
              'type': 'float',
              'driver': 'drv/input-MAX31855',
            },
          ],
          'outputs': [
            {
              'name': 'Heater AC-SSR',
              'color': 'rgba(255, 153, 0, 0.7)',
              'icon': 'flame',
              'type': 'binary',
              'driver': 'drv/input-gpio',
              'conf': [
                {
                  'name': 'PinIO',
                  'val': '27',
                },
              ],
            },
            {
              'name': 'Cooler AC-SSR',
              'color': '#0000c7',
              'icon': 'snow',
              'type': 'binary',
              'driver': 'drv/output-gpio',
              'conf': [
                {
                  'name': 'PinIO',
                  'val': '23',
                },
              ],
            },
          ],
        },
        {
          'name': 'Circulator',
          'icon': 'nuclear',
          'control': {
            'name': 'OnOff',
            'icon': 'power',
            'driver': 'drv/ctrl-onoff',
            'inputs': [],
            'outputs': [
              {
                'type': 'binary',
              },
            ],
            'conf': [
              {
                'name': 'Max tRun',
                'val': '300s',
              },
            ],
          },
          'outputs': [
            {
              'name': 'SSR-Circulator',
              'color': 'purple',
              'icon': 'nuclear',
              'type': 'binary',
              'driver': 'drv/gpio-out',
              'conf': [
                {
                  'name': 'PinIO',
                  'val': '23',
                },
              ],
            },
          ],
        },
        {
          'name': 'Door',
          'icon': 'exit',
          'control': {
            'name': 'Trigger',
            'icon': 'flash',
            'driver': 'drv/ctrl-trigger',
            'inputs': [
              {
                'type': 'Interrupt',
              },
            ],
            'outputs': [{}],
            'conf': [
              {
                'name': 'Action',
                'val': 'TBD',
              },
            ],
          },
          'inputs': [
            {
              'name': 'Door-Sensor',
              'color': 'yellow',
              'icon': 'alert',
              'type': 'Interrupt',
              'driver': 'drv/gpio-in',
              'conf': [
                {
                  'name': 'PinIO',
                  'val': '21',
                },
              ],
            },
          ],
        },
        {
          'name': 'RPC - Abzug',
          'icon': 'exit',
          'control': {},
          'inputs': [],
          'outputs': [],
        },
      ],
    };

@chron0 chron0 self-assigned this Dec 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant