-
Notifications
You must be signed in to change notification settings - Fork 100
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
[Request] add Date and Time token values #591
Comments
I've thought about doing this actually, perhaps adding a format string to the token instead of creating several new ones? Maybe something like this: {current_time:"%m/%d/%Y, %H:%M:%S"} would yield something like this: 12/24/2018, 04:59:31 Here is a reference for the strftime replacement tokens. This will be a bit tricky to parse giving the existing code, but not too bad. |
It's fine.. once we have all variables available we can compose as needed.. |
Hi @FormerLurker |
Any news? |
Not sure when I'll get to this, sorry. I will keep this open and will post here when I've pushed to the dev branch. The last/next few months have been just crazy, and I'm about to release a new plugin. I expect to be pretty much confined to my home throughout the winter, so I should start to have some time for the next version of Octolapse. |
Thanks a lot of the update! |
Any progress about this? |
I'm embarrassed to say I have yet to make any progress on this. I'm still finishing up ArcWelder, but am getting very close to a release. Thank you for your patience! |
sorry... I didn't want to push.. |
lol, feel free to keep pushing. That's how things get done :) |
Anything interesting, I'm intrigued |
@carcamerarig, it's a new plugin called Arc Welder that compresses G1 and G2 calls to G2/G3 calls (arcs). It's designed to reduce serial communication, thus reducing stuttering, with a side benefit of having smaller gcode files (usually between 30-80% compression). You can check it out here. There is also a console version, a C++ library, an inverse processor (convert g2/g3 to g0/g1), and a python library available here. |
@carcamerarig and @spanzetta, I wanted you to know I'm working on this now. Better late than never? lol |
Great!.. |
This was tricky, but I got the date and elapsed time both working, including custom formatting tokens. You can install via the plugin manager using this URL in the from URL... box:
Please click on the help icons next to the new tokens for usage instructions, and be sure to let me know if the docs need work (specific examples would be welcome). I'd also recommend running a couple test mode prints using as many variants of the formats as you can think of. This will help me test a lot. If you would, let me know what version of python and OctoPrint you are using (I'm currently testing on OctoPrint 1.5.2 Python 3.7.3 OctoPi 0.17.0). Thanks! |
Currently the token values for Overlay Text Template includes a "single" {current_time} value which formats in this way
yyyy-mm-dd hh:mm:ss
I kindly ask you to create a separated Date and Time token .. maybe with various formatting:
{current_time_1} = hh(12):mm:ss
{current_time_2} = hh(24):mm:ss
{current_date_1} = dd-mm-yyyy
{current_date_2} = mm-dd-yyyy
{current_date_3} = yyyy-mm-dd
What do you think about?
Thanks a lot
The text was updated successfully, but these errors were encountered: