lfg-alarm
Ring a real alarm on a phone from code, and set alarms with LFG Alarm's tools.
LFG Alarm is a social alarm clock for iPhone and Android. Rocco, LFG's agent, rings a real alarm on your phone, and your friends' phones, at a time or when something happens. This package lets a script, a cron job, a bot or an AI agent do the same.
pip install lfg-alarm
Python 3.8 or later. Standard library only, no dependencies.
Ring a phone when something happens
Make a 🔮 Anything alarm in the LFG Alarm app (or with set_webhook_alarm below). It comes with a private link; calling it rings every phone on the alarm. No key needed: the link is the permission, so keep it secret.
import os
from lfg_alarm import ring
result = ring(os.environ["LFG_RING_URL"])
# RingResult(rang=True, woke_up=1, ...)
# or rang=False with retry_after_seconds if it rang moments ago,
# or rang=False with message="This alarm is switched off."
Set alarms with a personal key
Make a key in the LFG Alarm app: Settings > AI apps and keys. Pass it as api_key, or set LFG_API_KEY.
from lfg_alarm import LfgAlarm
lfg = LfgAlarm() # reads LFG_API_KEY
lfg.set_time_alarm(
"07:00",
"America/New_York",
repeat_days=["mon", "tue", "wed", "thu", "fri"],
title="Standup",
vibe="something upbeat",
)
hook = lfg.set_webhook_alarm("Deploy failed", quiet_for="5_min")
print(hook.ring_url)
print(lfg.list_alarms().text)
Every other tool works through call:
lfg.call("set_price_alarm", token_id="solana", symbol="SOL", name="Solana", percent=10)
tools = lfg.tools() # all of them, with what each does
A tool that says no (a plan limit, a bad time) raises LfgAlarmError with LFG Alarm's own words.
What it talks to
ringcalls the alarm's private link (https://api.lfg.gm/horn/...).LfgAlarmcalls LFG Alarm's hosted MCP server,https://mcp.lfg.gm: the same 33 tools Claude, ChatGPT and other AI apps use. AI apps can connect to it directly: lfg.gm/agents.
Some alarm types and limits depend on the account's plan. For plans and pricing, go to lfg.gm.
Developers · Support · Privacy and terms · MIT licence
Metadata
Release files for lfg-alarm 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| lfg_alarm-0.2.0.tar.gz | 6.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lfg_alarm-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.6 kB
Release files / lfg_alarm-0.2.0.tar.gz
| Download URL | lfg_alarm-0.2.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a29b2d5f970ec53586bf5cfb120646f31022e29065581024ce7386d3fd71aa2c
|
|
BLAKE2b-256 checksum How to use checksums |
b8c967f142f794f79394bfb915b75814a5604156a0fc11ab9011d56254999730
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Release files / lfg_alarm-0.2.0-py3-none-any.whl
| Download URL | lfg_alarm-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22e5af31b52712a4d60408407f51e0dd12830b722519372d0b339a4d5869210d
|
|
BLAKE2b-256 checksum How to use checksums |
e8dacdc40a492052edce54978ec40be7a950e689d4bfe9c952aadd7431c4503a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Security for lfg-alarm 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.