<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Adapter Octoprint, wie Jobstatus abfragen]]></title><description><![CDATA[<p dir="auto">Hi zusammen,<br />
Ich würde gerne die Druckerrestzeit ( printTimeLeft ) abfragen. Wie macht man das bei dem Octoprint Adapter ?</p>
<p dir="auto"><img src="/assets/uploads/files/1578228245735-20200105_134143.jpg" alt="20200105_134143.jpg" class=" img-fluid img-markdown" /></p>
<pre><code>code_text
buildRequest(
            'job',
            function (content) {
                if (content.job) {
                    adapter.setState('printjob.file.name', {val: content.job.file.name, ack: true});
                    adapter.setState('printjob.file.origin', {val: content.job.file.origin, ack: true});
                    adapter.setState('printjob.file.size', {val: content.job.file.size, ack: true});
                    adapter.setState('printjob.file.date', {val: content.job.file.date, ack: true});

                    if (content.job.filament) {
                        adapter.setState('printjob.filament.length', {val: content.job.filament.length, ack: true});
                        adapter.setState('printjob.filament.volume', {val: content.job.filament.volume, ack: true});
                    }
                }

                if (content.progress) {
                    adapter.setState('printjob.progress.completion', {val: content.progress.completion, ack: true});
                    adapter.setState('printjob.progress.filepos', {val: content.progress.filepos, ack: true});
                    adapter.setState('printjob.progress.printtime', {val: content.progress.printTime, ack: true});
                    adapter.setState('printjob.progress.printtime_left', {val: content.progress.printTimeLeft, ack: true});
                }
            },
            null
        );
    }
}
</code></pre>
]]></description><link>https://forum.iobroker.net/topic/28534/adapter-octoprint-wie-jobstatus-abfragen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 18:59:19 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/28534.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 05 Jan 2020 12:44:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Adapter Octoprint, wie Jobstatus abfragen on Sun, 05 Jan 2020 20:17:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hal" aria-label="Profile: HAL">@<bdi>HAL</bdi></a><br />
<span style="color:#ff0000"><strong>Beim Drucken</strong></span> wird im Object <strong>octoprint.0.printjob.progress.printtime_left</strong> die Restzeit in Sekunden vom Octoprint-Adapter ausgegeben.<br />
Hier ein Script zur Anzeige der vergangenen Druckzeit, sowie der verbleibenden Druckzeit  in <span style="color:#ff0000">HH:MM:SS</span><br />
<a href="https://forum.iobroker.net/topic/12367/umfrage-besteht-interesse-an-einem-octoprint-adapter/73">Octoprint Druckzeiten</a> .  Zur Anzeige in vis z.B. das Widget basic-String verwenden.</p>
<p dir="auto">Gruß<br />
Jörg</p>
]]></description><link>https://forum.iobroker.net/post/352493</link><guid isPermaLink="true">https://forum.iobroker.net/post/352493</guid><dc:creator><![CDATA[joergeli]]></dc:creator><pubDate>Sun, 05 Jan 2020 20:17:57 GMT</pubDate></item></channel></rss>