aerotow / eightsleep-nosub-app

This WebApp allows users to control Eight Sleep mattresses without a subscription by using a custom scheduling system. It runs a script every 30 minutes to adjust mattress temperature according to a user-defined schedule, bypassing Eight Sleep's paid "Smart Scheduling" feature.
https://eightsleep-nosub-app-tester.vercel.app
GNU General Public License v3.0
68 stars 68 forks source link

Create option to use an internal cron rather than relying on an external service #4

Closed Maelstromeous closed 2 months ago

Maelstromeous commented 2 months ago

Many frameworks allow you to define a crontab expression that runs a particular function.

However since the project is written in NextJS, I don't believe they offer this feature right out of the box. I understand why NextJS was used, it was used for quick and easy deployment to Vercel, but that unfortinately brings limitations.

It may be possible via a Docker implementation to have a script running as a daemon in the background that hits the local API, but that would only be available to Docker installs.

aerotow commented 2 months ago

Sort of duplicate to #2. In a Docker Version one can then simply add a SSH/bash script that calls the API Endpoint every 30 minutes.