@Johann_Edelmuller Great Octoprint page. I use most of the same elements as you. The PrettyGCode is a great addon.
How do you get the iframe to come up with full screen mode in the card? I’m not the best with trying to sort out the html to open the tab in full screen in the card. Here’s what I have so far, but I get the Octoprint page with prettyCode not in full screen.
What do I need to add to get it to display in full screen mode like what yours shows?
OK, I found the link to the fullscreen at the bottom once I scrolled up… That works now.
Next question, is there a way to minimize the “State” and “dashboard” , etc as well?
Nice. Are you using a Sonoff Pow or similar for power consumption? This could be used to calculate electricity costs and aggregate a total cost per print. Great for calculating costs when selling prints!
In the plugin, by clicking the Show/Hide Instructions button under the stream.
Let me know if you can get rid of the scrollbars… That should normally do it, but does not:
/* Trying to get rid of the bloody scrollbars */
.pgfullscreen #tab_plugin_prettygcode .gwin {
overflow: hidden;
position: fixed;
}
thanks for the answer, as far as the scrollbar is concerned, I think it’s because of the iframe in homeassistant.
maybe it works with custom component card-mod ???
Yup, that could be a way to try this. I think it actually comes from the octoprint page. There are multiple layers and a lot of what is hidden is wider and higher than the prettygcode image…
I ended up using rest commands I believe. I honestly quit using any of the Hass controls for Octoprint until a way is found to populate a list where you can select the .gcode files that are uploaded to it. Otherwise you still have to go to the Octopi interface to actually print them. To me that kinda defeated the purpose of bringing everything into Hass.
@Johann_Edelmuller did you upgrade Octoprint recently? My prettygcode view no more works since. I get a ‘refused to connect’ error. I think it’s because of credentials no more being passed on to Octoprint. Including these in the url: ‘http://user:[email protected]’ does not work (no error message, but no load). Any tip is welcome!
Wow what a silly option! Thanks for that… Jetzt muss ich wachten 20 Stunden bis dem Druck fertig zu sein!
@Johann_Edelmuller: Not having much luck with this. Here is what is displayed in Hass. Tried with and without CSS, with a different browser, etc. I tried using either the full screen or regular link. Not sure whether this is an issue with the Hass browser, Google Chrome or Octoprint… Here is a screenshot. Can you confirm yours still displays correctly?
Hi, may I know how do you do this import the control panel and other data like filament usage and cost from octoprint? Do you mind to share me your relevant part of configuration.yaml in HA. Thank you in advance.
Hi, can someone give me a hint, why i’m getting a “bad request”, when trying to curl my octoprint?
curl http://192.168.1.3:4000/api/connection -d '{\"command\":\"connect\"}' -H 'Content-Type: application/json' -H 'X-Api-Key: CC9Cxxxxxxxxxxx1A1'
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>400 Bad Request</title>
<h1>Bad Request</h1>
<p>The browser (or proxy) sent a request that this server could not understand.</p>
I could use some help though.
Does anyone know how to parse a number from an input_number entity into the curl commands?
I would like to be able to manually input the temperature target for the bed or nozzle.
EDIT: Never mind. I figured it out. Here’s an example of my shell_command for those who are interested: