Connect IoT Box With Odoo
The Odoo IoT Box (Internet of Things Box) is a small Raspberry
Pi-based device that helps connect physical devices like printers,
scanners, scales, and other peripherals to your Odoo instance.
Odoo 18 continues to support seamless integration with the IoT Box,
with some usability improvements in UI and IoT device discovery.
Here’s a step-by-step guide to help you set it up and access it for
debugging.
Prerequisites
- You must have an IoT Box (Raspberry Pi) powered on.
- Your computer and the IoT Box should be on the same local
network.
- You should have physical access to the IoT Box (especially for
initial configuration or recovery).
- Your Odoo 18 instance should have the IoT module installed.
Step 1: Connect the IoT Box to Your Network
Make sure both your IoT Box and your computer (running Odoo) are on
the same Wi-Fi or LAN.
You can find the IoT Box's IP address in two ways:
- On the IoT Box screen (if attached)
- From the Odoo IoT module interface (under Devices > IoT Box)
Step 2: Access the IoT Box via SSH
In Odoo 18, this process remains similar to earlier versions.
Step 3: Explore the Filesystem (Read-Only)
Once logged in, you can now explore the full filesystem of the IoT
Box.
Note: The IoT Box filesystem is read-only by default to prevent
corruption, especially if power is disconnected without proper
shutdown.
To temporarily make it writable (only if needed):
sudo mount -o remount,rw /
Step 4: Remote Debugging (Using Ngrok)
Odoo 18 maintains the Remote Debugging feature through Ngrok, useful
if your device is not on the same network.
To Enable Remote Debugging:
- Go to the IoT Box’s local web UI (e.g., http://192.168.44.8)
- Navigate to Remote Debugging.
- Paste your Ngrok Authtoken(Get this from your Ngrok account at:
https://dashboard.ngrok.com/get-started/setup)
- Once connected, a public URL will be generated and shared with
Odoo for remote access.