Skip to main content
Glama
cobanov

teslamate-mcp

daily_battery_usage.sql470 B
SELECT c.name as car_name, DATE(p.date) as date, MIN(p.battery_level) as min_battery, MAX(p.battery_level) as max_battery, MAX(p.battery_level) - MIN(p.battery_level) as daily_usage FROM positions p JOIN cars c ON p.car_id = c.id WHERE p.date >= CURRENT_DATE - INTERVAL '30 days' GROUP BY c.id, c.name, DATE(p.date) HAVING MAX(p.battery_level) - MIN(p.battery_level) > 5 -- Filter out days with minimal usage ORDER BY car_name, date DESC;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cobanov/teslamate-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server