TeslaMate is a self-hosted data logger for Tesla vehicles that collects telemetry via the Tesla API (both polling and streaming), stores data in PostgreSQL, and provides visualization through a Phoenix LiveView web interface and Grafana dashboards. It integrates with home automation systems via MQTT and supports importing historical vehicle data from CSV files (TeslaFi format). The application uses a supervision tree to manage background processes for data collection, MQTT publishing, import tasks, and update checking. Key features include geofencing for location-based cost tracking, encrypted storage for API tokens using Cloak, internationalization via Gettext, and custom Ecto expressions for geographic calculations. The architecture is monolithic with clear separation of concerns through Phoenix contexts (Log, Vehicles, Settings, Locations).
This repository is a collection of demos and examples for integrating the Aliyun ApsaraVideo Player (Aliplayer) into web applications. It showcases various features including VOD playback, live streaming, ads, interactive components (danmaku, comments, likes, playlists), and platform-specific implementations (WeChat mini-program, responsive design). The demos are built using different technologies: plain JavaScript/jQuery, Vue.js, React, and WeChat mini-program. The repository includes a custom component system that allows extending the player with reusable UI elements. While the demos are functional and demonstrate practical integration patterns, the codebase exhibits some technical drift due to outdated dependencies (e.g., zepto, webpack 4.0) and code duplication across demos. The custom components, however, are well-crafted and follow a consistent pattern for encapsulation and registration, making them reusable in other projects.