# Comms in/out for external monitoring and control \[thread\]

**URL:** <https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347>\
**Category:** 💡 Suggestion\
**Created:** [July 24, 2022, 5:51pm UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347 "2022-07-24T17:51:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![AutoDoc](https://forum.sienci.com/letter_avatar_proxy/v4/letter/a/e480ec/32.png) [@AutoDoc](https://forum.sienci.com/u/AutoDoc)\
**Post date:** [July 24, 2022, 5:51pm UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347/1 "2022-07-24T17:51:15Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![saskia](https://forum.sienci.com/user_avatar/forum.sienci.com/saskia/32/2054_2.png) [@saskia](https://forum.sienci.com/u/saskia)\
**Post date:** [July 25, 2022, 8:12pm UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347/2 "2022-07-25T20:12:01Z")

</div>

Being on OSX, an optional system call to a shell script of my making would be nice

---

<div class="post-metadata">

**Author:** ![JohnOCFII](https://forum.sienci.com/user_avatar/forum.sienci.com/johnocfii/32/4808_2.png) [@JohnOCFII](https://forum.sienci.com/u/JohnOCFII)\
**Post date:** [March 14, 2023, 7:06pm UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347/3 "2023-03-14T19:06:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![KGN](https://forum.sienci.com/letter_avatar_proxy/v4/letter/k/c77e96/32.png) [@KGN](https://forum.sienci.com/u/KGN)\
**Post date:** [March 15, 2023, 2:35pm UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347/4 "2023-03-15T14:35:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Technickel](https://forum.sienci.com/letter_avatar_proxy/v4/letter/t/8edcca/32.png) [@Technickel](https://forum.sienci.com/u/Technickel)\
**Post date:** [November 1, 2023, 11:48pm UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347/5 "2023-11-01T23:48:13Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![CrookedWoodTex](https://forum.sienci.com/user_avatar/forum.sienci.com/crookedwoodtex/32/10446_2.png) [@CrookedWoodTex](https://forum.sienci.com/u/CrookedWoodTex)\
**Post date:** [November 2, 2023, 12:44am UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347/6 "2023-11-02T00:44:28Z")

</div>

> [@Technickel](#):
>
> Obtain the current position  
> Jog the machine  
> Run GCode

There is so much more to be done on any of my jobs that the list would be endless and different for each job.

---

<div class="post-metadata">

**Author:** ![whitewolf](https://forum.sienci.com/user_avatar/forum.sienci.com/whitewolf/32/7626_2.png) [@whitewolf](https://forum.sienci.com/u/whitewolf)\
**Post date:** [October 7, 2024, 1:07am UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347/7 "2024-10-07T01:07:38Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![\_Michael](https://forum.sienci.com/user_avatar/forum.sienci.com/_michael/32/2962_2.png) [@\_Michael](https://forum.sienci.com/u/_Michael)\
**Post date:** [October 8, 2024, 11:40am UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347/8 "2024-10-08T11:40:46Z")

</div>

> [@whitewolf](#):
>
> using Repetier-Server with CNCjs which gSender is a fork, right?

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.

---

<div class="post-metadata">

**Author:** ![whitewolf](https://forum.sienci.com/user_avatar/forum.sienci.com/whitewolf/32/7626_2.png) [@whitewolf](https://forum.sienci.com/u/whitewolf)\
**Post date:** [October 8, 2024, 12:05pm UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347/9 "2024-10-08T12:05:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![\_Michael](https://forum.sienci.com/user_avatar/forum.sienci.com/_michael/32/2962_2.png) [@\_Michael](https://forum.sienci.com/u/_Michael)\
**Post date:** [October 8, 2024, 12:55pm UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347/10 "2024-10-08T12:55:08Z")

</div>

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](https://resources.sienci.com/view/gs-additional-features/#job-stats-and-cnc-maintenance). I’m not sure what they have in mind next but there is a [subtopic for requested features](https://forum.sienci.com/c/gsender/suggestion/24). 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.

---

<div class="post-metadata">

**Author:** ![whitewolf](https://forum.sienci.com/user_avatar/forum.sienci.com/whitewolf/32/7626_2.png) [@whitewolf](https://forum.sienci.com/u/whitewolf)\
**Post date:** [October 8, 2024, 1:27pm UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347/11 "2024-10-08T13:27:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![\_Michael](https://forum.sienci.com/user_avatar/forum.sienci.com/_michael/32/2962_2.png) [@\_Michael](https://forum.sienci.com/u/_Michael)\
**Post date:** [October 8, 2024, 2:05pm UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347/12 "2024-10-08T14:05:24Z")

</div>

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.

> [@whitewolf](#):
>
> 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.

That’s smart, you don’t need someone hacking your network through your toaster!

---

<div class="post-metadata">

**Author:** ![CBoardman](https://forum.sienci.com/letter_avatar_proxy/v4/letter/c/df788c/32.png) [@CBoardman](https://forum.sienci.com/u/CBoardman)\
**Post date:** [May 29, 2025, 4:02am UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347/13 "2025-05-29T04:02:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![darick\_c](https://forum.sienci.com/letter_avatar_proxy/v4/letter/d/3da27b/32.png) [@darick\_c](https://forum.sienci.com/u/darick_c)\
**Post date:** [June 4, 2025, 5:13pm UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347/14 "2025-06-04T17:13:14Z")

</div>

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](https://github.com/darickc/gsender2mqtt).

---

<div class="post-metadata">

**Author:** ![whitewolf](https://forum.sienci.com/user_avatar/forum.sienci.com/whitewolf/32/7626_2.png) [@whitewolf](https://forum.sienci.com/u/whitewolf)\
**Post date:** [June 4, 2025, 5:33pm UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347/15 "2025-06-04T17:33:27Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![whitewolf](https://forum.sienci.com/user_avatar/forum.sienci.com/whitewolf/32/7626_2.png) [@whitewolf](https://forum.sienci.com/u/whitewolf)\
**Post date:** [June 7, 2025, 4:53pm UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347/16 "2025-06-07T16:53:19Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![darick\_c](https://forum.sienci.com/letter_avatar_proxy/v4/letter/d/3da27b/32.png) [@darick\_c](https://forum.sienci.com/u/darick_c)\
**Post date:** [June 7, 2025, 5:31pm UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347/17 "2025-06-07T17:31:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![darick\_c](https://forum.sienci.com/letter_avatar_proxy/v4/letter/d/3da27b/32.png) [@darick\_c](https://forum.sienci.com/u/darick_c)\
**Post date:** [June 9, 2025, 1:33am UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347/18 "2025-06-09T01:33:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![whitewolf](https://forum.sienci.com/user_avatar/forum.sienci.com/whitewolf/32/7626_2.png) [@whitewolf](https://forum.sienci.com/u/whitewolf)\
**Post date:** [June 9, 2025, 8:26am UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347/19 "2025-06-09T08:26:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![darick\_c](https://forum.sienci.com/letter_avatar_proxy/v4/letter/d/3da27b/32.png) [@darick\_c](https://forum.sienci.com/u/darick_c)\
**Post date:** [June 9, 2025, 9:01am UTC](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347/20 "2025-06-09T09:01:49Z")

</div>

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.

[Next page](https://forum.sienci.com/t/comms-in-out-for-external-monitoring-and-control-thread/6347.md?page=2)
