Remotely editing userconfig.txt

Is there any provision in hosted infobeamer to remotely edit the userconfig.txt?

I need to apply HVS rotation to a video signal since packages I’m using don’t support rotation, and I don’t have direct access to the pi.

Cheers,
A

Direct editing is not possible, although that’s something that might be added. The main reason editing isn’t supported at the moment is that it is possible to create a completely broken configuration using userconfig.txt and there’s no way to recover from that remotely. All other configuration options are save in that regard.

If you want to edit anyway, the only way right now is to use the ib-shell tool. Then run

$ export API_KEY=<api key>
$ ib-shell --root <device_id>

to get a shell on the device. You can then edit the userconfig.txt in /sd/config. So like this:

mount /sd -o remount,rw # the SD is mounted readonly by default
vi /sd/config/userconfig.txt
mount /sd -o remount,ro

Support can do that for you, if you don’t want to do that on your own.

1 Like

Fantastic, you’ve just saved me an embarrassingly upside-down display!

Much appreciated.

Whenever I run this, I get this error:

Traceback (most recent call last):
  File "./ib-shell", line 2, in <module>
    import os, sys, requests, subprocess, json, threading, tty, termios, select, time, argparse, textwrap
ImportError: No module named requests

I have installed python-websockets

Look like you’re also missing python-requests. Can you give this a try?

1 Like

Thanks :slight_smile: Now it is working

Neat. I’ve updated both readme and ib-shell script to better guide future users.

1 Like