Files
neonoverlordandClaude Fable 5.1 6cdfc99ddd zigbee_card 1.0.0 -- the house on the Nextcloud dashboard
One widget, nine buttons (two scenes, lights on/off, two plugs on/off, status). Each press
posts a one-line command to the house bot's private HTTP door and prints the bot's reply --
the devices' read-back -- verbatim. Two allow-lists (lib/Buttons.php here, the bot's own)
must both pass. No build step: plain PHP + one JS file, the speedtest pattern; the widget
registration is integration_gotosocial's, without Vue.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-19 19:31:55 -07:00

26 lines
696 B
PHP

<?php
declare(strict_types=1);
namespace OCA\ZigbeeCard\AppInfo;
use OCA\ZigbeeCard\Dashboard\ZigbeeWidget;
use OCP\AppFramework\App;
use OCP\AppFramework\Bootstrap\IBootContext;
use OCP\AppFramework\Bootstrap\IBootstrap;
use OCP\AppFramework\Bootstrap\IRegistrationContext;
class Application extends App implements IBootstrap {
public const APP_ID = 'zigbee_card';
public function __construct(array $urlParams = []) {
parent::__construct(self::APP_ID, $urlParams);
}
public function register(IRegistrationContext $context): void {
$context->registerDashboardWidget(ZigbeeWidget::class);
}
public function boot(IBootContext $context): void {
}
}