depending on what you want to do in your UI, you'll also need the
services 'status', 'command' and 'error' which are provided by
mkwrapper.

For the DNS part, I had some problems with it on VMs and wrote a script:
https://github.com/mlampert/Machinekit-Workbench/blob/master/machinekit-local/rest-services
which opens up a HTTP port you can use to get the ports of all
services. I add the script to my machinekit configuration so it gets
automatically started.

Note that this publishes the service ports to anybody who has access to
the machine, regardless of where they come from. Use at your own risk!



On Fri, 18 Oct 2019 12:47:40 -0700 (PDT)
auto-mation-assist <[email protected]> wrote:

> My cut and paste was a little to short. This shows the other ports
> 
> Oct 17 22:57:52 cnc1 msgd:0: hal_lib:6490:user haltalk
> Oct 17 22:57:52 cnc1 msgd:0: hal_lib:6490:user
> Oct 17 22:57:52 cnc1 msgd:0: ulapi:6493:user _ulapi_init(): ulapi 
> rt-preempt unknown loaded
> Oct 17 22:57:52 cnc1 msgd:0: ulapi:6493:user halg_xinitfv:271 HAL: 
> singleton component 'hal_lib6493' id=312 initialized
> Oct 17 22:57:52 cnc1 msgd:0: hal_lib:6493:user haltalk: startup
> ØMQ=4.2.5 czmq=4.1.0 protobuf=3.0.0
> uuid=3c6b50af-0fe2-4929-b0bf-0cd4b6b6c327 Oct 17 22:57:52 cnc1
> msgd:0: hal_lib:6493:user adopted 0 groups(s) Oct 17 22:57:52 cnc1
> msgd:0: hal_lib:6493:user adopted 0 comps(s) Oct 17 22:57:52 cnc1
> msgd:0: hal_lib:6493:user haltalk: talking HALGroup on
> 'dsn=tcp://%s:6200' Oct 17 22:57:52 cnc1 haltalk: register_stuff:
> actual hostname as announced by avahi='cnc1.local'
> Oct 17 22:57:52 cnc1 haltalk: register_stuff: actual hostname as
> announced by avahi='cnc1.local'
> Oct 17 22:57:52 cnc1 rtapi:0: 4:rtapi_app:6472:user trivkins: loaded
> from trivkins.so
> Oct 17 22:57:52 cnc1 msgd:0: hal_lib:6493:user haltalk: talking
> HALRcomp on 'dsn=tcp://%s:6201'
> Oct 17 22:57:52 cnc1 msgd:0: hal_lib:6493:user haltalk: talking
> HALComand on 'dsn=tcp://%s:6202'
> Oct 17 22:57:52 cnc1 msgd:0: hal_lib:6472:rt halg_xinitfv:90 HAL: 
> initializing component 'trivkins' type=1 arg1=0 arg2=0/0x0
> Oct 17 22:57:52 cnc1 msgd:0: hal_lib:6472:rt halg_export_vtable:28
> HAL: exporting vtable 'trivkins' version=1000 owner=316 at
> 0x7fc6ea5aa080 Oct 17 22:57:52 cnc1 msgd:0: hal_lib:6472:rt
> halg_export_vtable:54 HAL: created vtable 'trivkins'
> vtable=0x7fc6ea5aa080 version=1000 Oct 17 22:57:52 cnc1 rtapi:0:
> 4:rtapi_app:6472:user tp: loaded from tp.so Oct 17 22:57:52 cnc1
> rtapi:0: 4:rtapi_app:6472:user hostmot2: loaded from hostmot2.so
> 

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/machinekit/20191018131208.447faf8d%40edeltraud.

Reply via email to