How to use ActivityService

18 views
Skip to first unread message

José Manuel Díez

unread,
Jul 3, 2025, 4:23:21 AMJul 3
to yamcs
Dear Yamcs people,

I noticed the "Procedures > Run a script" page of yamcs-web, which would be useful for automated operations. However I get an error "No activity service found".

I tried adding this to the service section of yamcs.instance.yaml:

  - class: org.yamcs.activities.ActivityService

But I get this error when starting Yamcs:

10:21:43.065 _global [3] YamcsServer Instance cybeesat failed: java.lang.ClassCastException: class org.yamcs.activities.ActivityService cannot be cast to class org.yamcs.YamcsService (org.yamcs.activities.ActivityService and org.yamcs.YamcsService are in unnamed module of loader 'app')

I also couldn't find any examples of using the ActivityService. Can you give some pointers?

Also, looking at the API definitions, it looks like it can be used for scheduled scripts. This would be quite useful too. Is it supported in the web ui or only via API?

Thanks,
José

fabia...@spaceapplications.com

unread,
Jul 8, 2025, 4:11:03 AMJul 8
to yamcs
The usage is demonstrated in one of the example projects. You add the TimelineService to your instance config:

(This uses the ActivityService in the background).

José Manuel Díez

unread,
Jul 8, 2025, 4:20:45 AMJul 8
to ya...@googlegroups.com
Thank you, I did a quick search "ActivityService" in the code and examples but didn't find the TimelineService.

Cheers,
José

--
You received this message because you are subscribed to a topic in the Google Groups "yamcs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/yamcs/OefkNyktay4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to yamcs+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/yamcs/3e218932-fd5f-4076-96a4-abc1785e0145n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages