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

Create a reference driver structure/model based on MAX31855 #6

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

Create a reference driver structure/model based on MAX31855 #6

chron0 opened this issue Jun 14, 2016 · 1 comment

Comments

@chron0
Copy link
Member

chron0 commented Jun 14, 2016

  • Connect/Drive/Read GPIOs
  • Expose config/features to UI
@chron0 chron0 added this to the governess-1.0.0 milestone Jun 14, 2016
@chron0 chron0 changed the title Creater a reference driver structure/model based on MAX31855 Create a reference driver structure/model based on MAX31855 Jun 14, 2016
@chron0
Copy link
Member Author

chron0 commented Jan 24, 2017

Mocks, Model & Client implementation are in a basic data-driven and usable state. The next step will be how to structure and automatically import/group by folder all plugins to create a JSON Object which can be fed to the client via websocket, example:

Server:

├── __init__.py
├── controller
│   ├── __init__.py
│   └── pid-temp
│       └── pid-temp.py
├── input
│   ├── __init__.py
│   ├── hx711
│   │   ├── example.py
│   │   ├── hx711.py
│   │   ├── hx711_gist_alternate.py
│   │   └── wiring_example.jpg
│   ├── max31855
│   │   └── max31855.py
│   ├── max31856
│   │   └── max31856.py
│   └── max6675
│       └── max6675.py
└── output
    ├── PCA9685
    │   ├── PCA9685.py
    │   └── __init__.py
    ├── TLC5947
    │   └── tlc5947.py
    └── __init__.py

Should produce this JSON Object for the client, see https://github.com/apollo-ng/governess/blob/master/client/src/providers/plugins/plugins.mock.ts for full example, as an excerpt:

    {
      'pid': '6jy2rwNevEy3',
      'driver': 'MAX31855 Thermocouple Adapter Driver',
      'name': 'MAX31855 Thermocouple Adapter Driver',
      'desc': '',
      'group': 'SPI',
      'unit': '°C',
      'color': 'rgba(191, 128, 6, 0.75)',
      'icon': 'thermometer',
      'conf': [
        { 'name': 'UNIT', 'value': '°C' },
        { 'name': 'SAMPLE-BIN-SIZE', 'type': 'int', 'unit': 's', 'value': 1, 'min': 1, 'max': 16 },
        { 'name': 'SAMPLE-INTERVAL', 'type': 'int', 'unit': 's', 'value': 1, 'min': 0.1, 'max': '' },
        { 'name': 'STORE-INTERVAL', 'type': 'int', 'unit': 's', 'value': 1, 'min': 0, 'max': '' },
        { 'name': 'DB-DISPLAY-SHOW', 'type': 'boolean', 'value': true },
      ],
      'input': [
        { 'name': 'CSEL', 'type': 'hostGPIO', 'value': '' },
        { 'name': 'CLCK', 'type': 'hostGPIO', 'value': '' },
        { 'name': 'DATA', 'type': 'hostGPIO', 'value': '' },
      ],
      'output': [
        { 'name': 'TEMP', 'type': 'float', 'unit': '°C' },
      ],
    },

localhost-8100- galaxy s iii 2
localhost-8100- 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant