Need help/guidance using octoprint VM as hassio debug setup

Hi all,

As most of my home automation code gets written and debugged when I’m not home… I don’t like to mess around remotely with an actual 3D printer.

I figured I could install octoprint on a VirtualBox setup and link that to hassio. I tried adding the basic setup which had already worked for my JGAurora octopi.

# Printer 1: Virtual Printer
- name: VirtualPrinter
  host: !secret secret_octopi_virtual_host
  api_key: !secret secret_octopi_virtual_api
  port: 5000
  ssl: false
  bed: true
  number_of_tools: 1
  sensors:
    monitored_conditions:
      - "Current State"
      - "Job Percentage"
  binary_sensors:
    monitored_conditions:
      - "Printing"
      - "Printing Error"

# Printer 2: JGAurora A5
- name: JGAurora
  host: !secret secret_octopi_host
  api_key: !secret secret_octopi_api
  ssl: false
  sensors:
    monitored_conditions:
      - "Current State"
      - "Job Percentage"
  binary_sensors:
    monitored_conditions:
      - "Printing"
      - "Printing Error"

However if I use the virtualprinter function at the octiprint gui and start “printing” it still shows as “printer off”.
Anyone knows whether this is spec and I can’t debug using the virtual printer setup? Or could someone give me a push in the right direction pls? :slight_smile:

image

Thanks a lot!

Just some extra info regarding OctoPrint on VirtualBox but accessing it from host system.
You have to set a second network adapter and set it to “Host-Only Adapter”. This way you get it in the same IP range of the host computer. Checking the IP settings allows you to access it from host over port 5000.

image



And for those of dirty minds such as mine: the handcuffs print was to keep my 3 & 4yo’s from actually locking my hands :laughing:

Not sure yet if it’s fixed, but I clearly made an error at the network settings part. Should be bridged to be able to reach from another device in the network. I only checked on the host computer and that’s why I was able te reach it using “Host Only Adapter” …

If it’s working, I’ll change my post to a full guide on how to do it!

Wooot woooooot!
image

The trick was indeed to set the network adapter to bridged.

I’m trying to get controls such as homing in there (seen some awesome examples as a showcase/guide here). I’ll update this thread as we go.