How to make a dashboard #13

Closed
opened 2022-07-05 01:38:39 +02:00 by blacklight · 0 comments
Owner

I'd like to show a chart for a temperature sensor. Is this possible with platypush?

There is something about dashboards written at https://git.platypush.tech/platypush/platypush/-/wikis/backends but it's useless.

  • I don't have a widgets folder. Do I need to make one? Where?
  • How can I tell what widgets I have.
  • How can I tell what widgets are available? Is there a list of them?
  • How do you install and configure a widget? It seems to be something to do with the main config.yaml file, but is mainly a secret.

I copied the XML from that page to /etc/platypush/dashboards/main.xml and restarted the platypush service and a load of errors appeared at http://192.168.1.31:8008/dashboard/main

Are dashboards supposed to work?
Is there any documentation for them?

I tried the Sensor tag but it doesn't work, and there is no Sensor at https://git.platypush.tech/platypush/platypush/-/tree/master/platypush/backend/http/webapp/src/components/widgets.

<Dashboard>
    <Row>
        <Sensor name="Temp1">
                <handlers>
                <refresh interval="60">
            self.value = await self.request('zigbee.mqtt.device_get',
                {'device': 'Temp1', 'property': 'temperature'}).temperature
                </refresh>
                </handlers>
        </Sensor>
    </Row>
</Dashboard>

Browser console:

Error: Cannot find module './Sensor/Index'
I'd like to show a chart for a temperature sensor. Is this possible with platypush? There is something about _dashboards_ written at https://git.platypush.tech/platypush/platypush/-/wikis/backends but it's useless. * I don't have a `widgets` folder. Do I need to make one? Where? * How can I tell what widgets I have. * How can I tell what widgets are available? Is there a list of them? * How do you install and configure a widget? It seems to be something to do with the main `config.yaml` file, but is mainly a secret. I copied the XML from that page to `/etc/platypush/dashboards/main.xml` and restarted the platypush service and a load of errors appeared at `http://192.168.1.31:8008/dashboard/main` Are _dashboards_ supposed to work? Is there any documentation for them? I tried the `Sensor` tag but it doesn't work, and there is no `Sensor` at https://git.platypush.tech/platypush/platypush/-/tree/master/platypush/backend/http/webapp/src/components/widgets. ``` <Dashboard> <Row> <Sensor name="Temp1"> <handlers> <refresh interval="60"> self.value = await self.request('zigbee.mqtt.device_get', {'device': 'Temp1', 'property': 'temperature'}).temperature </refresh> </handlers> </Sensor> </Row> </Dashboard> ``` Browser console: ``` Error: Cannot find module './Sensor/Index' ```
blacklight added the
question
waiting user input
labels 2022-07-05 01:38:39 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: platypush/platypush#13
No description provided.