awx

← Blog

Walk-through · 17 November 2026

How to run a script every morning, laptop closed

Tell the agent what to do and when. It runs on its own computer at that time, even if your laptop is shut and the computer is asleep.

Some jobs are small and boring: fetch the weather, check a price, copy a file, count the rows in a table. You can do each one by hand in a minute. The trouble is doing it every day.

The Schedules page in awx runs a prompt for you at a time you choose. This post sets up a morning report, then follows what happened when it ran.

Awi the cat agent asleep on a laptop

Make a schedule

Open Schedules and press New schedule. The form asks for:

This is the prompt we wrote:

Make a morning report. In /home/agent/morning, keep a Python
script report.py that gets today's weather for Kuala Terengganu
from the Open-Meteo API (no key needed) and the MYR to USD
exchange rate from the Frankfurter API. Run it, save the result
to report-YYYY-MM-DD.txt in the same folder, and reply with the
report in two lines.
The New schedule form: name Morning report, computer tiny-box, the prompt, every day at 08:00 on all seven days, time zone Asia/Kuala_Lumpur
The form, filled in. Every day at 08:00, all seven days.

A note at the bottom of the form matters: nobody is watching a scheduled run, so a step that needs your approval waits for you, and you get a notice. The computer is started if it is asleep, unless you turned off auto start for it.

Run it now

After you press Create schedule, the job appears in a list with its time and its next run. Ours said every day at 08:00 (Asia/Kuala_Lumpur) and a next run of 8:00 the next morning.

You do not have to wait until morning to see if it works. Run now starts the job straight away. We pressed it while the computer was stopped, so this tested the part you cannot watch at 8 a.m.: waking a sleeping computer and running the job with nobody there.

The Schedules page: Morning report, every day at 08:00 on tiny-box, next run 17 November 8:00 AM, and a line saying Last: 2 min ago, started, with an open that chat link; buttons Run now, Edit, Pause, Delete
The schedule two minutes after Run now. Each run is a new chat, and "open that chat" takes you to it.

The computer woke by itself, the agent wrote the script, ran it and replied. The whole run took about a minute.

What it wrote

Open the chat to see what happened. The agent used only Python's built-in libraries, saved the script as report.py, and saved the result in a file named for the day.

The chat of the scheduled run: the agent says the script runs cleanly, saved to report-2026-11-16.txt, and gives the weather in Kuala Terengganu and the MYR to USD rate
The agent's reply, which is also what you would read the next morning.

We checked the file ourselves in the terminal. It was 348 bytes, with a header, the weather line and the exchange rate:

The terminal showing ls and cat: report.py is 3448 bytes, report-2026-11-16.txt is 348 bytes, and its text has the weather in Kuala Terengganu and the exchange rate
The saved report, read back from the computer.

Two things the agent noticed

These are the kind of details that make a daily report wrong without anyone telling you, so it is good that the agent said them out loud.

The agent also offered to add the job to the computer's crontab. We did not, because the schedule already does the job, and it also starts the computer for you.

What it costs

A Small computer costs RM0.03 an hour while it runs and nothing while it sleeps. A run that wakes the computer keeps it on until it has been idle for 30 minutes, which is about 1.5 sen at most. A daily schedule is therefore about 45 sen a month at the most. Why a computer sleeps and how running time and credit work have the details.

If your credit has run out, a Free-plan computer cannot start, so the run will not happen. Keep a little credit in the account for the schedules you want to keep.

Pause, change or delete

On each job, Edit changes the prompt or the time, Pause keeps it but stops the runs, and Delete removes it. Deleting does not remove the chats it already made. We deleted ours after the test, so it would not keep running on a test account.

Cautions

Keep reading

Getting started

Sign in with your Google account, open Schedules, and press New schedule. Start with a job that uses public data, and press Run now to see it work.

Open awx

Awi the cat agent celebrates with confetti

Awi, signing off.

← All posts