-
Notifications
You must be signed in to change notification settings - Fork 25
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
Camera Snapshots Based on Printer Activity #27
Comments
Hello @der-eine . Currently, Prusa Connect does not have an API to allow the camera to determine the state of the printer. So camera continuously sends photos... But the idea of connecting a printer with a camera is interesting. I will try to analyze this problem and find another solution. |
@johnyHV Another question regarding snapshots: will there ever be a direct snapshot URL? To be able to send a snap via Telegram, for example? |
@der-eine I will open this topic at the next meeting with people from Prusa. It would be best to have an API from Prusa Connect. I believe that the API for the Prusa Connect about printer status will be added in the near future. It would also be good for them, so that they don't have such a big photo traffic. You mean sending photo from the camera to telegram ? Prusa Connect have added this feature for printer status. But it is just text message without photo. |
@johnyHV That's a great idea. I also think that an API would be helpful for many things. Thanks for the information. Correct, unfortunately, it currently only supports starting, stopping, and error messages. An option to send a photo via Telegram every x percent or at layer X would certainly be useful. |
Just sharing my thoughts on this feature from an architectural perspective:
Just a few ideas to consider, feel free to add more :) |
Given the camera is likely on the same network as the printer, it could query the prusalink API running locally on the printer for this instead of going via prusa connect. The best option I can think of here would be to have different refresh rates based on printer state. So if the printer isn't moving it sends an image once every X minutes, once printing starts it sends every y seconds |
Connecting to the printer API sounds like a good idea to me. I already did my research and here you can see what is available on the API. (I'm using it for Homepage dashboard) https://github.com/mikromcz/homepage/blob/main/widget_prusalink.yaml |
I've connected my printer to prusa connect and prusa connect to home assistant. In home assistant i get state changes and i can call API's. Is there an API on the ESP i can call to start and stop the filming / photos? |
Hey, Although a trigger through the API would be most convinient, the trigger could also be provided by connection a gpio pin of the microcontroller to a gpio pin of the new hackboard. This might be a workaround until (hopefully) the api is extended by this feature. What do you think? Windy |
Just came here to +1 this! I have no SD card in the camera, and I'm not planning to use it for time lapses; just for checking in on the printer. Therefore, I don't need it taking pictures and heating up the components unless I'm actively looking at the feed. |
Hello and thank you for this great project.
I noticed that the camera always takes snapshots as soon as it is turned on. Is it possible to link this to the state of the printer so that pictures are only taken when the printer is actually working? Or have I overlooked a relevant setting?
Best regards,
der-eine
The text was updated successfully, but these errors were encountered: