No such method setClockScale

Jasem Mutlaq mutlaqja at ikarustech.com
Mon Dec 6 08:48:35 GMT 2021


There are actually a couple more DBus functions that are not in the XML
file as well. I added setNow to the SimClock and DBus interface, please
re-compile from GIT.

--
Best Regards,
Jasem Mutlaq



On Wed, Dec 1, 2021 at 8:27 PM Martin West <amartinwest at gmail.com> wrote:

> I installed kstars on ubuntu 21 and tried again got a lot of these errors
> when I ran it
>
>
> andrew at ubuntu-21:~$ org.kde.solid.udisks2: Failed enumerating UDisks2
> objects: "org.freedesktop.DBus.Error.AccessDenied"
>  "An AppArmor policy prevents this sender from sending this message to
> this recipient; type=\"method_call\", sender=\":1.56353\" (uid=1000
> pid=218933 comm=\"kstars \" label=\"snap.kstars.kstars (enforce)\")
> interface=\"org.freedesktop.DBus.Introspectable\" member=\"Introspect\"
> error name=\"(unset)\" requested_reply=\"0\"
> destination=\"org.freedesktop.UDisks2\" (uid=0 pid=807
> comm=\"/usr/libexec/udisks2/udisksd \" label=\"unconfined\")"
> org.kde.solid.udisks2: Failed enumerating UDisks2 objects:
> "org.freedesktop.DBus.Error.AccessDenied"
>
> but it did run of sorts, the example is missing a start clock and stop
> clock
>
> —————————————————————————
>
> #!/bin/bash
> #KStars DBus script: trackMoon
> #by Demo
> #last modified: 2021-12-01T15:37:43
> #
> dbus-send --dest=org.kde.kstars --print-reply /KStars
> org.kde.kstars.changeViewOption string:"UseAltAz" string:"false"
> dbus-send --dest=org.kde.kstars --print-reply /KStars
> org.kde.kstars.lookTowards string:"Moon"
> dbus-send --dest=org.kde.kstars --print-reply /KStars
> org.kde.kstars.setTracking boolean:true
> dbus-send --dest=org.kde.kstars --print-reply /KStars
> org.kde.kstars.waitForKey string:"space"
> dbus-send --dest=org.kde.kstars --print-reply /KStars org.kde.kstars.zoomIn
> dbus-send --dest=org.kde.kstars --print-reply /KStars/SimClock
> org.kde.kstars.SimClock.setClockScale double:10800
> dbus-send --dest=org.kde.kstars --print-reply /KStars/SimClock
> org.kde.kstars.SimClock.start
> dbus-send --dest=org.kde.kstars --print-reply /KStars
> org.kde.kstars.waitFor double:20
> dbus-send --dest=org.kde.kstars --print-reply /KStars/SimClock
> org.kde.kstars.SimClock.setClockScale double:1
> dbus-send --dest=org.kde.kstars --print-reply /KStars/SimClock
> org.kde.kstars.SimClock.stop
> dbus-send --dest=org.kde.kstars --print-reply /KStars
> org.kde.kstars.zoomOut
> ##
> —————————————————————————
>
> Would be nice if there was a command to set the clock to ’now’
>
> Also there was this error
>
> kf5.kio.kio_tags: tag fetch failed: "Failed to open the database"
> kf5.kio.kio_tags: "tags:/" list() invalid url
> kf5.kio.core: Invalid URL: QUrl("/home/andrew/snap/kstars/46"
>
>
> regards Martin West
> skype:amartinwest
> mob:07525424513
>
>
>
>
>
> On 27 Nov 2021, at 17:58, Martin West <amartinwest at gmail.com> wrote:
>
> Just installed the Mac 3.5.7 beta, couldnt find a stable version of 3.5.6
>
> Ran through the scripting tutorial and when I ran it got …
>
> bash ~/Documents/Kstars/TrackMoon.kstars
> method return time=1638033232.144043 sender=:1.1 -> destination=:1.16
> serial=29 reply_serial=2
> method return time=1638033232.212346 sender=:1.1 -> destination=:1.17
> serial=30 reply_serial=2
> Error org.freedesktop.DBus.Error.UnknownMethod: No such method
> 'setClockScale' in interface 'org.kde.kstars.SimClock' at object path
> '/KStars/SimClock' (signature 'd')
>
>
> method return time=1638033252.290102 sender=:1.1 -> destination=:1.19
> serial=32 reply_serial=2
> Error org.freedesktop.DBus.Error.UnknownMethod: No such method
> 'setClockScale' in interface 'org.kde.kstars.SimClock' at object path
> '/KStars/SimClock' (signature 'd’)
>
> ================ track moon ================
> #!/bin/bash
> #KStars DBus script: TrackMoon
> #by Demo
> #last modified: 2021-11-27T16:31:42
> #
> dbus-send --dest=org.kde.kstars --print-reply /KStars
> org.kde.kstars.changeViewOption string:"UseAltAz" string:"false"
> dbus-send --dest=org.kde.kstars --print-reply /KStars
> org.kde.kstars.lookTowards string:"Moon"
> dbus-send --dest=org.kde.kstars --print-reply /KStars/SimClock
> org.kde.kstars.SimClock.setClockScale double:10800
> dbus-send --dest=org.kde.kstars --print-reply /KStars
> org.kde.kstars.waitFor double:20
> dbus-send --dest=org.kde.kstars --print-reply /KStars/SimClock
> org.kde.kstars.SimClock.setClockScale double:1
> ##
> ========================================
>
> Also when I restarted KStars and open the script it was missing the last
> two lines in the script tool.
>
> regards Martin West
> skype:amartinwest
> mob:07525424513
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kstars-devel/attachments/20211206/3bdd8c8d/attachment.htm>


More information about the Kstars-devel mailing list