Skip to content

Commit 50fff00

Browse files
authored
Merge pull request #3057 from tyeth/add-potty-training
Add potty training
2 parents 41de6c4 + 15ae874 commit 50fff00

File tree

2 files changed

+155
-0
lines changed

2 files changed

+155
-0
lines changed
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"exportVersion": "1.0.0",
3+
"exportedBy": "tyeth",
4+
"exportedAt": "2025-06-10T18:13:03.071Z",
5+
"exportedFromDevice": {
6+
"board": "rpi-pico-w",
7+
"firmwareVersion": "1.0.0-beta.100"
8+
},
9+
"components": [
10+
{
11+
"name": "💦 Wee Button",
12+
"pinName": "D18",
13+
"type": "push_button",
14+
"mode": "DIGITAL",
15+
"direction": "INPUT",
16+
"period": 0,
17+
"pull": "UP",
18+
"isPin": true
19+
},
20+
{
21+
"name": "💦 Wee LED",
22+
"pinName": "D2",
23+
"type": "led",
24+
"mode": "DIGITAL",
25+
"direction": "OUTPUT",
26+
"isPin": true
27+
},
28+
{
29+
"name": "💩 Poo Button",
30+
"pinName": "D19",
31+
"type": "push_button",
32+
"mode": "DIGITAL",
33+
"direction": "INPUT",
34+
"period": 0,
35+
"pull": "UP",
36+
"isPin": true
37+
},
38+
{
39+
"name": "💩 Poo LED",
40+
"pinName": "D3",
41+
"type": "led",
42+
"mode": "DIGITAL",
43+
"direction": "OUTPUT",
44+
"isPin": true
45+
},
46+
{
47+
"name": "❌ Didn't Go Button",
48+
"pinName": "D20",
49+
"type": "push_button",
50+
"mode": "DIGITAL",
51+
"direction": "INPUT",
52+
"period": 0,
53+
"pull": "UP",
54+
"isPin": true
55+
},
56+
{
57+
"name": "❌ Didn't Go LED",
58+
"pinName": "D4",
59+
"type": "led",
60+
"mode": "DIGITAL",
61+
"direction": "OUTPUT",
62+
"isPin": true
63+
},
64+
{
65+
"name": "🔔 Tell Adult Button",
66+
"pinName": "D21",
67+
"type": "push_button",
68+
"mode": "DIGITAL",
69+
"direction": "INPUT",
70+
"period": 0,
71+
"pull": "UP",
72+
"isPin": true
73+
},
74+
{
75+
"name": "🔔 Tell Adult LED",
76+
"pinName": "D5",
77+
"type": "led",
78+
"mode": "DIGITAL",
79+
"direction": "OUTPUT",
80+
"isPin": true
81+
}
82+
]
83+
}
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<b>🌟 Daily Potty Training Report 🌟</b>
2+
Hi there! Here's how our little superstar did:
3+
---
4+
<b>🚽 Successful Wees: {{ vars.wee_progress }}</b>
5+
{% for i in (1..vars.wee_progress) %}💧{% endfor %}
6+
{% if vars.wee_progress <= 5 %}
7+
Great start! Every success counts, and we're building good habits one wee at a time! 🌱
8+
{% elsif vars.wee_progress <= 15 %}
9+
Fantastic progress! You're really getting the hang of this - keep up the amazing work! 🎯
10+
{% else %}
11+
SUPERSTAR ALERT! 🌟 Absolutely crushing it with those wee successes! You're a potty champion! 🏆
12+
{% endif %}---
13+
14+
<b>💩 Successful Poos: {{ vars.poo_progress }}</b>
15+
{% for i in (1..vars.poo_progress) %}🟤{% endfor %}
16+
{% if vars.poo_progress == 0 %}
17+
Poos can be tricky, but they're being so brave! Every try is a step forward! 💪
18+
{% elsif vars.poo_progress < 2 %}
19+
Look at them go! They're becoming a real poo pro - that's awesome progress! 🎉
20+
{% else %}
21+
POO CHAMPION! 🏅 They've mastered one of the trickiest parts - so proud! 🎊
22+
{% endif %}---
23+
24+
<b>🤝 Told an Adult: {{ vars.informed_progress }}</b>
25+
{% for i in (1..vars.informed_progress) %}🗣️{% endfor %}
26+
{% if vars.informed_progress <= 5 %}
27+
Communication is key! Keep practicing saying when they need to go - They're doing great! 📢
28+
{% elsif vars.informed_progress <= 15 %}
29+
Wonderful communication skills! They're really good at letting us know - that's so helpful! 👏
30+
{% else %}
31+
COMMUNICATION SUPERSTAR! 🌟 They're amazing at telling adults - that's such a big kid skill! 🎯
32+
{% endif %}---
33+
34+
<b>👻 Nothing Happened: {{ vars.nothing_progress }}</b>
35+
{% for i in (1..vars.nothing_progress) %}⭕{% endfor %}
36+
{% if vars.nothing_progress <= 3 %}
37+
That's okay! Trying is what matters, and they're body will let them know when it's ready! 🌈
38+
{% else %}
39+
So patient and persistent! Even when nothing happens, they keep trying - that's real determination! 💫
40+
{% endif %}---
41+
42+
<b>📊 Week Summary:</b>
43+
{% capture total_tries -%}{{ vars.wee_progress | plus: vars.poo_progress | plus: vars.nothing_progress }}{% endcapture -%}
44+
{% capture successes -%}{{ vars.wee_progress | plus: vars.poo_progress }}{% endcapture -%}
45+
{% capture success_rate -%}{% if total_tries != 0 -%}{{ successes | times: 100 | divided_by: total_tries }}{% else -%}0{% endif -%}{% endcapture -%}
46+
{% capture bar_filled -%}{{ success_rate | divided_by: 10 }}{% endcapture -%}
47+
{% capture bar_empty -%}{{ 10 | minus: bar_filled }}{% endcapture -%}
48+
Total potty visits: {{ total_tries }}
49+
Success rate: {{ success_rate }}% [{%- for i in (1..bar_filled) -%}█{%- endfor -%}{%- for i in (1..bar_empty) -%}░{%- endfor -%}]
50+
{%- assign total_events = vars.wee_progress | plus: vars.poo_progress | plus: vars.nothing_progress | plus: vars.informed_progress -%}
51+
({{ total_events }} events this week )
52+
{% if total_events <= 3 %}
53+
💝 <b>This Week:</b> They're doing such a great job learning! Every day gets a little easier...
54+
{% elsif total_events <= 5 %}
55+
🌟 <b>This Week:</b> Ayee! They're really getting the hang of this potty training thing! Keep it up!
56+
{% elsif total_events <= 8 %}
57+
🌟 <b>This Week:</b> WOW! Look at all that practice! They're becoming such a potty expert.
58+
{% else %}
59+
🏆 <b>This Week:</b> INCREDIBLE WEEK! They're absolutely rocking this potty training journey! 🎊🎉
60+
{% endif %}
61+
62+
Keep being awesome!
63+
With love and high-fives! 🙌
64+
---
65+
{%- capture event_mod -%}{{ total_events | modulo: 3 }}{%- endcapture %}
66+
{% if event_mod == 0 %}
67+
<i>P.S. Remember: Every expert was once a beginner - they're doing brilliantly! 🌟</i>
68+
{% elsif event_mod == 1 %}
69+
<i>P.S. Fun fact: Even superheroes had to learn to use the potty! 🦸</i>
70+
{% else %}
71+
<i>P.S. Remember: accidents are just practice in disguise! They're doing amazingly! 💕</i>
72+
{% endif %}

0 commit comments

Comments
 (0)