Moode Forum
[SOLVED] Issue with Rotary Encoder Device in Moode 9 - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: [SOLVED] Issue with Rotary Encoder Device in Moode 9 (/showthread.php?tid=6486)

Pages: 1 2


RE: Issue with Rotary Encoder Device in Moode 9 - Tim Curtis - 05-20-2024

Run it from the command line and the error info might be better.

Code:
sudo /var/www/daemon/rotenc.py 100 2 3 24 23



RE: Issue with Rotary Encoder Device in Moode 9 - thestreamdigger - 05-20-2024

(05-20-2024, 05:11 PM)Tim Curtis Wrote: Run it from the command line and the error info might be better.

Code:
sudo /var/www/daemon/rotenc.py 100 2 3 24 23

Here is it:
Code:
pi@breaka:~ $ sudo /var/www/daemon/rotenc.py 100 2 3 24 23
/var/www/daemon/rotenc.py: 13: import: not found
/var/www/daemon/rotenc.py: 14: import: not found
/var/www/daemon/rotenc.py: 15: import: not found
/var/www/daemon/rotenc.py: 16: import: not found
/var/www/daemon/rotenc.py: 17: from: not found
/var/www/daemon/rotenc.py: 18: import: not found
/var/www/daemon/rotenc.py: 19: import: not found
/var/www/daemon/rotenc.py: 21: program_version: not found
/var/www/daemon/rotenc.py: 23: current_pos: not found
/var/www/daemon/rotenc.py: 24: last_pos: not found
/var/www/daemon/rotenc.py: 25: last_a_state: not found
/var/www/daemon/rotenc.py: 26: last_b_state: not found
/var/www/daemon/rotenc.py: 27: pin_a: not found
/var/www/daemon/rotenc.py: 28: pin_b: not found
/var/www/daemon/rotenc.py: 29: poll_interval: not found
/var/www/daemon/rotenc.py: 30: accel_factor: not found
/var/www/daemon/rotenc.py: 31: volume_step: not found
/var/www/daemon/rotenc.py: 32: print_debug: not found
/var/www/daemon/rotenc.py: 33: Syntax error: "(" unexpected



RE: Issue with Rotary Encoder Device in Moode 9 - Tim Curtis - 05-20-2024

I'm not able to repro the issue. There are no errors on my end.

Code:
Authenticated to moode9 ([192.168.1.177]:22) using "password".

Host:  moode9
RPiOS: 12.5 Bookworm 64-bit | Linux: 6.6.28 64-bit
Model: Pi-3A+ 512MB
Audio: Pi HDMI 1


       m o O d e   a u d i o   p l a y e r

             Release 9.0.0 2024-05-17
               (C) 2014 Tim Curtis


The programs included with moOde are free software; the
exact distribution terms for each program are described
in the individual files in /usr/share/doc/*/copyright or
in the moOde source files. moOde comes with absolutely
no warranties either expressed or implied, or any other
such guarantees.

** To set a new password for your userid type 'passwd'.

Last login: Mon May 20 16:17:13 2024 from 192.168.1.125
pi@moode9:~ $ sudo /var/www/daemon/rotenc.py 100 2 3 24 23

Are you running one of the pre releases?


RE: Issue with Rotary Encoder Device in Moode 9 - thestreamdigger - 05-21-2024

I wanted to share that I have reinstalled moOde 9 from scratch and successfully ran the script and kept the service active. This was the first thing I did after the installation: I checked the rotenc.py script, no other move.

Probably, in the previous installation, I could made some specific configuration for my hardware context, which includes a TM1637 display, some LEDs, a rotary encoder, etc. I will examine the conflict that occurred previously and, if appropriate, I will share further details here on the forum. I'll better have to adapt my codes to "venv".

I want to express my gratitude not only for the fantastic development of moOde but also for the support provided. I use moOde daily, and it has become a fun part of my life, with many learnings. Thank you all for that.