-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.py
More file actions
40 lines (33 loc) · 1.2 KB
/
example.py
File metadata and controls
40 lines (33 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
"""
Daily biorhythm reading: seeded energy snapshot with physical, emotional, and intellectual cycle values.
Deterministic output for consistent per-user daily check-ins via the RoxyAPI biorhythm domain.
"""
import os
from roxy_sdk import create_roxy
roxy = create_roxy(os.environ["ROXY_API_KEY"])
def main():
# Daily biorhythm: same seed + same date always returns the same reading
bio = roxy.biorhythm.get_daily_biorhythm(seed="sample-user", date="2026-04-23")
print("Date:", bio["date"])
print("Energy rating:", bio["energyRating"], "/ 10")
print("Overall phase:", bio["overallPhase"])
print()
print("Primary cycles:")
print(" Physical: ", bio["quickRead"]["physical"])
print(" Emotional: ", bio["quickRead"]["emotional"])
print(" Intellectual: ", bio["quickRead"]["intellectual"])
print()
print(
"Spotlight cycle:",
bio["spotlight"]["cycle"],
"|",
bio["spotlight"]["value"],
"|",
bio["spotlight"]["phase"],
)
print("Spotlight message:", bio["spotlight"]["message"])
print()
print("Daily message:", bio["dailyMessage"])
print("Advice:", bio["advice"])
if __name__ == "__main__":
main()