It has a button, records button presses for the last 7 days, saves them to local storage. Then it presents totals per day and detailed timestamps for today's button presses.
This is how I described it to the LLM (which wasn't even one of the coding assistants, just Gemini free). Not the exact prompt, that was more detailed, but that's the idea. I did like 3 iterations just to add features, because everything worked the first time.
It's a javascript app configured to work as a PWA on my phone's home screen. I don't know javascript or what a PWA is, I just told the LLM make it into a PWA and it generated the extra files and told me how to set them up on my web server.
The goal is to record when I smoke in hope that seeing the totals will help me cut down. Unfortunately what a LLM can't solve is me remembering to open the damn app and press the button every time I light one, but at least I'm trying...
Edit: and just for the record, in spite of the above I still think 95% of the "AI" evangelism is lies, bullshit and stuff like that.
Every time you finish a pack, save it. Seeing the empty packs will be more impactful. And they’ll take up space as an additional consequence of smoking more.
Oh nice! kinda funny story : I wanted the exact same thing as you a while ago so I used 'inhaler usage' on apple health app as a proxy for cigarette counter.
Also i know cigarettes & vapers do not always mix, but man I do always dream of creating a vape that can be set to a limited number of puffs/hour. It's probably the only way of actually controlling it or at least warning you, like you mentioned.
But still, fun that we can make these apps so easily now!