Add a lightweight Node.js server that scrapes Ollama cloud usage data from ollama.com/settings and exposes it as a JSON API. - Support for email/password and cookie-based authentication - Automated polling and Home Assistant integration - Endpoints for usage data, manual refresh, and cookie management - Comprehensive README and environment configuration
13 lines
339 B
JSON
13 lines
339 B
JSON
{
|
|
"name": "ollama-usage-server",
|
|
"version": "1.0.0",
|
|
"description": "Polls ollama.com/settings for cloud usage data and exposes it as a JSON API. Optionally pushes to Home Assistant.",
|
|
"main": "server.js",
|
|
"scripts": {
|
|
"start": "node server.js"
|
|
},
|
|
"dependencies": {
|
|
"dotenv": "^16.4.5",
|
|
"express": "^4.21.0"
|
|
}
|
|
} |