Has anyone here hacked out a way to get gSender to send out messages to let the operator know itās time to change a bit or that the job has finished. Iām usually in the shop while carving but Iād be lying if I told you I never walked out while chips are flying. I was thinking of using NodeRED to manage the alerts. Any ideas?
Being on OSX, an optional system call to a shell script of my making would be nice
Is it possible in the Start/Stop GCODE to execute a command from the operating system?
My ShopVac is remote from my CNC machine and I control it via WiFi. I can issue an OS command to start and stop the vacuum ā which I usually remember to do before I start a milling job, but itād be great if I could issue an M8 or M9 (or similar) and re-direct that to a macro thatāll execute an OS command.
Thanks
John
Not currently. Itās something weāll look at eventually but itās a niche enough use case that weāve had other things to focus on.
Are there any ways to programmatically control gSender? Mainly looking to do three things:
Obtain the current position
Jog the machine
Run GCode
The use case Iām exploring is integration with other tools, so I donāt think remote control quite fulfills what Iām looking for. Another idea I had was to just run an external bot control script and target the individual functions but it would be nice to know if there was something more integrated.
While I could probably circumvent gSender all together, I just love the tool so much that if I could use it as a base of operations for all kinds of use cases it would simplify my workflow. Looking forward to hearing any ideas!
There is so much more to be done on any of my jobs that the list would be endless and different for each job.
Hello - Just curious if anyone know of a way to integrate gSender into HomeAssistant.
I have my 3D printers integrated to where I can monitor the print, time start/stop & duration/time_remaining, as well as image/video capture.
I am still waiting on my AltMill but I know I will want this integrated as well so was curious if anyone has done it or knows if anything like it (integration) even exists.
I found a reference to using Repetier-Server with CNCjs which gSender is a fork, right? Maybe there is some opportunity thereā¦
About all I can do is confirm that gSender is a fork of CNCjs. Iāve only minimal experience with HomeAssistant. I only used it to view a camera for a time and now Iām using ffmpeg for that. I donāt have anything set up beyond being able to view the camera while Iām on my main computer which is one room away from my LongMill.
Appreciate the response. I figured it was a longshot and as technical as I am, I am no programmer.
Happy to at least see another user of HomeAssistant!
Not sure your level of interest or knowledge but I prepared a camera for the AltMill that will take a snapshot image every minute and then create a timelapse of whatever I am milling. I figure Iāll use a current sensor on the AltMill/Spindle to trigger the automation.
The things I would ālikeā to be able to do is view camera, job name, job duration & ETA (guess start time is ok as well), and then if possible, record the job/costs/date-time, etc similarly as I do with my Bambu Lab X1C.
That is a pretty extensive integration but has totally spoiled me as I can track power, filament costs, time, job name all automatically.
Another option would be if gSender tracked these things and had an API or even export for it. Real-time is best but historical is still good.
I donāt know about exporting yet but the devs somewhat recently added some job tracking and maintenance features to gSender. You can read about it here. Iām not sure what they have in mind next but there is a subtopic for requested features. Maybe they could add the ability to export to a common format like JSON in the future for other programs to parse.
EDIT: On the subject of 3D printers I have a Prusa i3 Mk3S+ with the Multi Material Unit and my step Dad has a Bambu P1S with an AMS. I can see what you mean about being spoiled by the Bambu. Iām not sold on all the cloud stuff but maybe you can use the Bambu without some of it, Iām just used to seeing how he operates the printer with all of it. It seems strange to me, and I may be mistaken, that you grab a model from a website and slice it on your PC and then send it back to the cloud to be streamed to the printer? Like I said the Bambu is not mine, so I may be misunderstanding some things, but sending it back to the cloud seems like adding another fail to point to me. Maybe what you get in return is worth it? Iām not sure, at least for me.
I too was a little displeased with the cloud functions but they to have a LAN-Only way of communicating & controlling is as well. The ācloudā way is pretty slick though. You get or design a model, put it into their slicer and click print - it sends to cloud then to printer and it stores it locally on the printer for serving quickly to be printed.
I have it on a āiotā Vlan just in-case though just like other things that need to phone home - to keep them out of my direct network.
Thanks for the links, I will check them out and see what I may have overlooked.
Okay, the fact that it sends it from the cloud to the printer all at once makes it not so bad. My concern was an internet problem during a long print but that shouldnāt matter if itās all sent to the printer before it starts.
Thatās smart, you donāt need someone hacking your network through your toaster!
I run gsender on a raspberry PI and would love to be able to run shell scripts at job start and end. I am trying to be able to start a timelapse running and stop it when the job finishes. I already have all the scripts, just need a way to start and stop them within the console since i use the console remotely.
I created an application that will connect to gsender and publishes all the events to MQTT. You can run it locally, but made more to run in a docker container. Iām going to be using it to hook into home assistant to turn on/off my dust collection when running a job.
This is how I have my configuration.yml to get some of the values:
mqtt:
sensor:
- name: Gsender Status
unique_id: gsender_status
state_topic: āgsender/statusā
- name: Gsender Workflow
unique_id: gsender_workflow_state
state_topic: āgsender/workflow:stateā
value_template: ā{{ value_json[0] }}ā
Check it out here: GitHub - darickc/gsender2mqtt Ā· GitHub.
I have not really visited this topic in itās original form since before getting my AltMill.
What I ended up doing, at least for now, is using a current sensor (Smart Switch) on the Spindle that an HA Automation monitors and when the amperage exceeds a preset amount, opens the Gate to the AltMill and turns on the Dust Collector (Smart Switch).
I also added a wall-hanger with a switch in it that when I disconnect and hang the 4" hose on it, prevents the automation from firing.
This might be because I donāt want it running for whatever reason or when I have the Laser on (which should not fire anyway since the Spindle wonāt be running).
All that said, I would still like to get the information from gSender into HA⦠something like the Bambu Lab integration that tracks usage and jobs and power - so may soon review what you have done. Thanks!
Has this been working out for you so far?
I have not attempted yet and am still trying to decide my plan of attack.
A part of me kind of wants what I have with my Bambu Labs X1C but it is pretty in-depth (Wolfwithswordās implementation) and not sure if I am up to it but one feature Iām particular that it has is job history with electrical consumption, name, duration, and a little more.
I already have a camera ported into HA that creates a timelapse and uploads to Discord so that parts that I am missing and would like to have (whether I use them or not) are the above history details, main controls and if possible visualizer.
Iām still working on it. Iāve mounted my dust collector and am working on the dust boot. But testing so far with gsender and home assistant has been working. When I turn on my machine and connect, home assistant picks it up. Iāve run some test code and it shows it as running. I am only using the workflow:state and connected state, but pretty much all the information is there. I am trying to get sending commands through mqtt to work, but I am having issues sending more complex ones that require data, like movements. But information wise, it is all the information that the remote screen uses. Iāve added sample data from my machine to the github repository so you can see what is available. There might be more and some could be different based on your machine. It even sends the file that is loaded, so you could create visualizer. Basically it sounds like you want a pendant inside home assistant. Gsender is based on cncjs, so you could look into pendants for cncjs as examples. It would take some work though. Let me know what you decide to do. Iāll give an update once I get everything hooked up and running.
I was able to get everything hooked up this weekend and I am happy to report that it has worked beautifully. Switch activated and turned on as soon as I hit start and it turned off at the end. Couldnāt be happier with it. I was flattening some thick pieces for a cutting board and needed to take off 6 or 7 mm because it was the end of the board and had corners cut off. So I ran the same job maybe 5 times and it worked great every time.
Thatās awesome - I havenāt spent much time on it but tried to get a docker/Portainer setup. Keeps exiting with code 139.
Iāll have to investigate but likely user error at this point.
Are you setting the mosquito server address and the cnc address? Make sure remote access is setup in gsender as well. I have an example docker-compose.yml file in the repository.