homer/dummy-data
Molham 9307f5a926 feat(pihole): Support Pi-hole v6 API with session management (#875)
Add support for Pi-hole v6 API while maintaining v5 compatibility. The component now
handles both API versions with proper session-based authentication for v6 and legacy
authentication for v5. Includes automated retries, session caching, and proper cleanup.

- Add new apiVersion config option (default: 5, accepts: 5,6)
- Implement session-based auth with caching for v6 API
- Add auto-retry mechanism with configurable attempts
- Add periodic status polling for v6 API
- Separate v5/v6 API handling logic for better maintenance
- Improve error handling and status display
- Update documentation with v6 API support details

Breaking changes: None. V5 remains default for backward compatibility.
V6 mode must be explicitly enabled by setting apiVersion: 6 in config.
2025-05-04 04:11:59 -07:00
..
docuseal add Docuseal smart card 2025-01-05 06:24:11 -08:00
freshrss/api/greader.php FreshRSS custom service. (#672) 2024-10-26 16:48:03 +02:00
gitea add Gitea subtitle fallback and dummy data (#839) 2024-12-01 05:29:57 -08:00
glances/api/4 Glances service improvements (#837) 2024-11-23 07:00:01 -08:00
immich/api/server-info Add dummy data 2023-08-06 12:45:15 -07:00
octoprint/api Fixed OctoPrint ‘text’ display when idle. (#607) 2023-05-02 09:27:27 +02:00
olivetin Add Traefik, Wallabag, Olivetin (#838) 2024-12-01 05:29:36 -08:00
openHAB/rest Add OpenHAB custom service 2024-03-11 02:05:55 -07:00
openweather doc(demo): Update demo links 2024-06-20 09:37:44 +02:00
peanut/api/v1/devices fix: Peanut mock data folder & doc typos 2024-12-01 14:55:10 +01:00
pialert/php/server PiAlert custom service (#674) 2023-08-06 21:48:52 +02:00
pihole feat(pihole): Support Pi-hole v6 API with session management (#875) 2025-05-04 04:11:59 -07:00
proxmox/api2/json/nodes/node1 Add missing data for proxmox demo 2022-12-07 22:48:38 +01:00
qBittorrent/api/v2 qBittorrent service (#540) 2022-10-30 10:32:51 -07:00
rtorrent Service for rTorrent. (#511) 2022-10-31 02:09:59 -07:00
speedtesttracker/api/speedtest Octoprint service (#324) (#560) 2022-11-27 09:41:12 -08:00
tdarr/api/v2 Added Tdarr service (#573) 2023-02-07 08:38:37 +01:00
traefik/api Add Traefik, Wallabag, Olivetin (#838) 2024-12-01 05:29:36 -08:00
wallabag/api Add Traefik, Wallabag, Olivetin (#838) 2024-12-01 05:29:36 -08:00
README.md Switch package manager to pnpm 2024-04-22 19:55:25 +02:00
_headers Fix up deploy previews (#749) 2024-06-26 07:53:54 +02:00

README.md

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)