Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assembled version for purchase? #7

Open
winterec opened this issue Jan 21, 2024 · 3 comments
Open

Assembled version for purchase? #7

winterec opened this issue Jan 21, 2024 · 3 comments

Comments

@winterec
Copy link

Nice work on this project! This looks perfect. I really like the way you've used the rotary encoder as the only interface.

I would really like use one of these to replace the Sleep As Android app. I currently use it for alarms and to record the start and end time of my sleep with a sync into Google Calendar. But I want to get out of the routine of having my smartphone being the first and last thing I see each day.

Thanks for sharing your work with all the schematics and documentation. Although the assembly project still looks outside of my capability as a web developer - would you be open to assembling one on commission?

@javiser
Copy link
Owner

javiser commented Jan 22, 2024

Hello @winterec, I feel quite flattered with your feedback! My motivation when I created this project was pretty much the same you have explained in your comment.
However, for now, I will not assemble any clocks on commission. Besides the legal implications on selling something I cannot offer guarantee for, I honestly don't feel like this is polished enough that I could charge some money on it. The software still crashes sometimes (see #2, I closed it but I am still having some issues), I have had some wiring problems with the current mounting solution and the last case I printed didn't turn out as good as I was expecting. And it wouldn't be cheap! Just the components were around 40€ last time I checked - add the shipping costs to that because I sourced them from different shops and some more for filament, power and other miscellaneous stuff. It would be probably be more expensive than most people would be willing to pay and I would have just covered the costs.

Nevertheless, thank you very much for your interest. I might create a new version in the future which simplifies the process and meets my own expectations. Maybe then I could assemble a few on commission.

@winterec
Copy link
Author

@javiser No worries, thanks for getting back to me!

I'll have a crack at assembling one. I've just ordered all the components and a breadboard kit. I'll put it together on the breadboard with jumper wires, and then if that's looking good I'll order the printed PCB and case parts.

I'll also have a go at adding a couple more software features. I would like to add two way MQTT communication with a Node.js helper script running on a Raspberry Pi. Here are some ideas I want to try:

  • Automatically setting a default wake-up time based on the day of the week
  • Altering the default alarm if it's a public holiday (https://github.com/commenthol/date-holidays).
  • Altering the alarm time based on Google Calendar events in the early morning.
  • Adding a concept of starting a sleep time, with an extra MQTT event. The event can also include the current alarm time set on the clock.
  • After the alarm goes off, send an MQTT event with a temporary reference ID
  • Then, have a post alarm state with five star rating screen. The knob adjusts the rating or it can be turned all the way for an option to skip, then pressing down saves the rating to return to the clock state. A second event with the rating can be sent with the same reference ID, and the helper script can add the sleep time to Google Calendar.
  • The snooze event could also include that reference ID (I want the helper script to be stateless).

Currently I use the Phillips Hue app to turn on lights as an extra alarm, but I do have to set the alarm time separately in both Hue and Sleep as Android apps. I've got a couple of ideas for options for combining the Hue functionality into this project too, either on the device or through the helper script.

@javiser
Copy link
Owner

javiser commented Jan 28, 2024

I am happy to see that you are giving it a go! Don't hesitate to ask if you have something not working on the breadboard. I also would be happy to give you a couple of hints regarding the case and the PCB board before you get into it. I think there are a couple of things I could have made better and you can learn from my mistakes.
I also like the ideas you have regarding the alarm time and the lights. I thought about these things too but in the end I decided I am happy with setting the alarm by myself every day. In the end, it is an open source project and you can modify as it suits you better :). And I do have a light automation coupled to the alarm (which is why I added the MQTT events in the first place). When my home assistant gets the alarm trigger event, it waits for 5 minutes and after that it begins to slowly dim the light so that after further 5 minutes it will have the maximum intensity. But again: this is how I like it and you can customize to your own preference.

I am quite curious to see how it turns out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants