[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kstars-devel
Subject:    Re: No such method setClockScale
From:       Jasem Mutlaq <mutlaqja () ikarustech ! com>
Date:       2021-12-06 8:48:35
Message-ID: CAE0bU5=fPXoEN2m-dfREP5q8_Ff8VPDvZaTJY81swQhqb=Ms2A () mail ! gmail ! com
[Download RAW message or body]

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@gmail.com> wrote:

> I installed kstars on ubuntu 21 and tried again got a lot of these errors
> when I ran it
>
>
> andrew@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@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
>
>
>
>
>
>
>

[Attachment #3 (text/html)]

<div dir="ltr">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.<div><br clear="all"><div><div dir="ltr" \
data-smartmail="gmail_signature"><div dir="ltr"><div><div \
dir="ltr"><div>--</div><div>Best Regards,<br>Jasem \
Mutlaq<br></div><div><br></div></div></div></div></div></div><br></div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 1, 2021 at 8:27 PM \
Martin West &lt;<a href="mailto:amartinwest@gmail.com" \
target="_blank">amartinwest@gmail.com</a>&gt; wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div><div>I installed kstars on ubuntu 21 and \
tried again got a lot of these errors when I ran it</div><div><br></div><div><div>  \
</div><div>andrew@ubuntu-21:~$ org.kde.solid.udisks2: Failed enumerating UDisks2 \
objects: &quot;org.freedesktop.DBus.Error.AccessDenied&quot;  </div><div>  &quot;An \
AppArmor policy prevents this sender from sending this message to this recipient; \
type=\&quot;method_call\&quot;, sender=\&quot;:1.56353\&quot; (uid=1000 pid=218933 \
comm=\&quot;kstars \&quot; label=\&quot;snap.kstars.kstars (enforce)\&quot;) \
interface=\&quot;org.freedesktop.DBus.Introspectable\&quot; \
member=\&quot;Introspect\&quot; error name=\&quot;(unset)\&quot; \
requested_reply=\&quot;0\&quot; destination=\&quot;org.freedesktop.UDisks2\&quot; \
(uid=0 pid=807 comm=\&quot;/usr/libexec/udisks2/udisksd \&quot; \
label=\&quot;unconfined\&quot;)&quot;</div><div>org.kde.solid.udisks2: Failed \
enumerating UDisks2 objects: &quot;org.freedesktop.DBus.Error.AccessDenied&quot;  \
</div></div><div><br></div><div>but it did run of sorts, the example is missing a \
start clock and stop \
clock</div><div><br></div><div>————————————————————————— \
</div><div><br></div><div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">#!/bin/bash</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">#KStars DBus script: \
trackMoon</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">#by Demo</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">#last modified: \
2021-12-01T15:37:43</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">#</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">dbus-send --dest=org.kde.kstars \
--print-reply /KStars org.kde.kstars.changeViewOption string:&quot;UseAltAz&quot; \
string:&quot;false&quot;</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">dbus-send --dest=org.kde.kstars \
--print-reply /KStars org.kde.kstars.lookTowards \
string:&quot;Moon&quot;</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">dbus-send --dest=org.kde.kstars \
--print-reply /KStars org.kde.kstars.setTracking boolean:true</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">dbus-send --dest=org.kde.kstars \
--print-reply /KStars org.kde.kstars.waitForKey \
string:&quot;space&quot;</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">dbus-send --dest=org.kde.kstars \
--print-reply /KStars org.kde.kstars.zoomIn</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">dbus-send --dest=org.kde.kstars \
--print-reply /KStars/SimClock org.kde.kstars.SimClock.setClockScale \
double:10800</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">dbus-send --dest=org.kde.kstars \
--print-reply /KStars/SimClock org.kde.kstars.SimClock.start</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">dbus-send --dest=org.kde.kstars \
--print-reply /KStars org.kde.kstars.waitFor double:20</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">dbus-send --dest=org.kde.kstars \
--print-reply /KStars/SimClock org.kde.kstars.SimClock.setClockScale \
double:1</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">dbus-send --dest=org.kde.kstars \
--print-reply /KStars/SimClock org.kde.kstars.SimClock.stop</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">dbus-send --dest=org.kde.kstars \
--print-reply /KStars org.kde.kstars.zoomOut</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">##</span></div></div><div><div>————————————————————————— \
</div></div><div><br></div><div>Would be nice if there was a command to set the clock \
to 'now'</div><div><br></div><div>Also there was this \
error</div><div><br></div><div><div>kf5.kio.kio_tags: tag fetch failed: &quot;Failed \
to open the database&quot;</div><div>kf5.kio.kio_tags: &quot;tags:/&quot; list() \
invalid url</div><div>kf5.kio.core: Invalid URL: \
QUrl(&quot;/home/andrew/snap/kstars/46&quot;</div></div><div><br></div><br><div> <div \
style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;fo \
nt-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div \
style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;fo \
nt-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text \
-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div>regards \
Martin West</div><div><a>skype:amartinwest</a></div><div>mob:07525424513</div><div><br></div></div><br></div><br><br>
 </div>
<div><br><blockquote type="cite"><div>On 27 Nov 2021, at 17:58, Martin West &lt;<a \
href="mailto:amartinwest@gmail.com" target="_blank">amartinwest@gmail.com</a>&gt; \
wrote:</div><br><div><div><div>Just installed the Mac 3.5.7 beta, couldnt find a \
stable version of 3.5.6</div><div><br></div><div>Ran through the scripting tutorial \
and when I ran it got …</div><div><br></div><div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">bash \
~/Documents/Kstars/TrackMoon.kstars  </span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">method return \
time=1638033232.144043 sender=:1.1 -&gt; destination=:1.16 serial=29 \
reply_serial=2</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">method return \
time=1638033232.212346 sender=:1.1 -&gt; destination=:1.17 serial=30 \
reply_serial=2</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">Error \
org.freedesktop.DBus.Error.UnknownMethod: No such method &#39;setClockScale&#39; in \
interface &#39;org.kde.kstars.SimClock&#39; at object path &#39;/KStars/SimClock&#39; \
(signature &#39;d&#39;)</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco;min-height:16px"><span \
style="font-variant-ligatures:no-common-ligatures"></span><br></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco;min-height:16px"><span \
style="font-variant-ligatures:no-common-ligatures"></span><br></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">method return \
time=1638033252.290102 sender=:1.1 -&gt; destination=:1.19 serial=32 \
reply_serial=2</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">Error \
org.freedesktop.DBus.Error.UnknownMethod: No such method &#39;setClockScale&#39; in \
interface &#39;org.kde.kstars.SimClock&#39; at object path &#39;/KStars/SimClock&#39; \
(signature &#39;d')</span></div></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures"><br></span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">================ track moon \
================</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures"><div \
style="margin:0px;font-stretch:normal;line-height:normal"><span \
style="font-variant-ligatures:no-common-ligatures">#!/bin/bash</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal"><span \
style="font-variant-ligatures:no-common-ligatures">#KStars DBus script: \
TrackMoon</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal"><span \
style="font-variant-ligatures:no-common-ligatures">#by Demo</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal"><span \
style="font-variant-ligatures:no-common-ligatures">#last modified: \
2021-11-27T16:31:42</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal"><span \
style="font-variant-ligatures:no-common-ligatures">#</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal"><span \
style="font-variant-ligatures:no-common-ligatures">dbus-send --dest=org.kde.kstars \
--print-reply /KStars org.kde.kstars.changeViewOption string:&quot;UseAltAz&quot; \
string:&quot;false&quot;</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal"><span \
style="font-variant-ligatures:no-common-ligatures">dbus-send --dest=org.kde.kstars \
--print-reply /KStars org.kde.kstars.lookTowards \
string:&quot;Moon&quot;</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal"><span \
style="font-variant-ligatures:no-common-ligatures">dbus-send --dest=org.kde.kstars \
--print-reply /KStars/SimClock org.kde.kstars.SimClock.setClockScale \
double:10800</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal"><span \
style="font-variant-ligatures:no-common-ligatures">dbus-send --dest=org.kde.kstars \
--print-reply /KStars org.kde.kstars.waitFor double:20</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal"><span \
style="font-variant-ligatures:no-common-ligatures">dbus-send --dest=org.kde.kstars \
--print-reply /KStars/SimClock org.kde.kstars.SimClock.setClockScale \
double:1</span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal"><span \
style="font-variant-ligatures:no-common-ligatures">##</span></div><div><span \
style="font-variant-ligatures:no-common-ligatures">========================================</span></div></span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures"><br></span></div><div \
style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco"><span \
style="font-variant-ligatures:no-common-ligatures">Also when I restarted KStars and \
open the script it was missing the last two lines in the script \
tool.</span></div><br><div> <div \
style="font-family:Helvetica;font-style:normal;font-variant-ligatures:normal;font-vari \
ant-caps:normal;font-variant-east-asian:normal;font-weight:normal;letter-spacing:norma \
l;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div \
style="font-family:Helvetica;font-style:normal;font-variant-ligatures:normal;font-vari \
ant-caps:normal;font-variant-east-asian:normal;font-weight:normal;letter-spacing:norma \
l;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div>regards \
Martin West</div><div><a>skype:amartinwest</a></div><div>mob:07525424513</div><div><br></div></div><br></div><br><br>
 </div>
<br></div></div></blockquote></div><br></div></blockquote></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic