Files
Homer/dummy-data
Bastien Wirtz e58637d935 Glances service improvements (#837)
* feat: add a basic glances service widget

* feat: auto update for glances widget

* feat(services/glances): multiple metric support

* Update dependencies

---------

Co-authored-by: Manuel Quarneti <manuelquarneti@protonmail.com>
2024-11-23 07:00:01 -08:00
..
2023-08-06 12:45:15 -07:00
2024-03-11 02:05:55 -07:00
2024-06-20 09:37:44 +02:00
2022-10-11 13:57:42 +02:00
2022-10-31 02:09:59 -07:00
2023-02-07 08:38:37 +01:00
2024-06-26 07:53:54 +02:00
2024-04-22 19:55:25 +02:00

Dummy data

This directory content makes possible to test custom services cards or create a demo without actually running the service. The principle is simple: save a sample output of the API used in the service in a static file in this directory. The path must be identical as the service endpoint to be used seamlessly.

Start the mock server to expose dummy data

pnpm mock

How to add a new services sample

  • create a directory for your service, and any sub-folder existing in the service api path.
  • save the api output in a file named after the service endpoint.

Example:

mkdir pihole
curl http://my-pihole.me/admin/api.php -o pihole/api.php # /admin is omitted because for PiHole, the implementation expect it to be in the base url (`url` or `endpoint` property)