
BamBamF16
Members-
Posts
341 -
Joined
-
Last visited
Everything posted by BamBamF16
-
@kck, So, completed all of the directions. Using the systemctl it shows as started but nothing happens. Here is the log: pi@SoftConsoleTest:~ $ systemctl status softconsole ● softconsole.service - SoftConsole Loaded: loaded (/usr/lib/systemd/system/softconsole.service; disabled; vendor preset: enabled) Active: active (running) since Fri 2019-06-28 21:36:40 CDT; 10s ago Process: 1277 ExecStart=/home/pi/consolestable/runconsole.py (code=exited, status=0/SUCCESS) Process: 1274 ExecStartPre=/bin/sleep 5 (code=exited, status=0/SUCCESS) Main PID: 1278 (python3) CGroup: /system.slice/softconsole.service └─1278 python3 console.py Jun 28 21:36:34 SoftConsoleTest systemd[1]: Starting SoftConsole... Jun 28 21:36:40 SoftConsoleTest softconsole[1277]: Starting using directory: consolebeta Jun 28 21:36:40 SoftConsoleTest systemd[1]: Started SoftConsole. This is the error when I sudo python -u console.py in the beta directory: 06-28-19 21:31:44 Console ( 1093) starting in /home/pi/consolebeta {'28c': ['/dev/fb1', 'fbcon', 'PWM'], 'pimoroni4': ['/dev/fb0/fbcon/None'], '35r': ['/dev/fb1', 'fbcon', 'PWM'], 'Name ': [' Device Path ', ' Driver ', ' DimType'], '28r': ['/dev/fb1', 'fbcon', 'PWM'], 'pi7': ['/dev/fb0', 'fbcon', 'Pi7']} Traceback (most recent call last): File "console.py", line 148, in <module> utilities.InitializeEnvironment() File "/home/pi/consolebeta/utilities.py", line 100, in InitializeEnvironment hw.initOS(scrntyp) File "/home/pi/consolebeta/hw.py", line 104, in initOS if screendefs[screentype][1] != 'XWin': IndexError: list index out of range 06-28-19 21:31:44 Exiting with history trace (0) 1108(1561775505.9202983): Logger loop ended
-
@kck as soon as I get the kids to bed I will try this. Jeff
-
@kck OK, something must have happened. All of my files are blank. None of the scripts have any characters. Not sure what happened. Even the README.md is blank. Jeff
-
@kck I don't think I did anything to runconsole.py. I just did a git pull. I got the console to run via SSH and via VNC to the running desktop (5900). If I execute via VNC (5901) then it doesn't start reliably. However, now nothing happens no matter what. When I run "sudo python -u console.py" nothing happens at all from anywhere. One of the changes we made borked something. Jeff
-
@kck Nothing different minutes later. That log was minutes after a reboot. The rpi never goes into the console. it just sits at the command prompt. Jeff
-
@kck I am running it in landscape. Here is the systemctl status after eliminating one of the execstarts: softconsole.service - SoftConsole Loaded: loaded (/usr/lib/systemd/system/softconsole.service; enabled; vendor preset: enabled) Active: activating (start-pre) since Thu 2019-06-27 22:56:51 CDT; 1s ago Process: 528 ExecStart=/usr/bin/python3 /home/pi/consolestable/runconsole.py (code=exited, status=0/SUCCESS) Cntrl PID: 560 (sleep) CGroup: /system.slice/softconsole.service └─control └─560 /bin/sleep 5 Jun 27 22:56:51 SoftConsoleTest systemd[1]: Starting SoftConsole... ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Jeff
-
@kck I am attaching a text file with the results of my touch test. I did several runs. The final run is labeled with each corner (UL, UR, LL, LR). Thanks again. I think you are close! Here is the latest systemctl status softconsole: ● softconsole.service - SoftConsole Loaded: loaded (/usr/lib/systemd/system/softconsole.service; enabled; vendor preset: enabled) Active: activating (start-pre) since Thu 2019-06-27 19:52:58 CDT; 4s ago Process: 895 ExecStart=/usr/bin/python3 ExecStart=/home/pi/consolestable/runconsole.py (code=exited, status=2) Cntrl PID: 899 (sleep) CGroup: /system.slice/softconsole.service └─control └─899 /bin/sleep 5 Jun 27 19:52:58 SoftConsoleTest systemd[1]: Starting SoftConsole... Jeff Hyperpixel 4.0 Touch Window Values.rtf
-
@kck This is the systemctl status info for softconsole: ● softconsole.service - SoftConsole Loaded: loaded (/usr/lib/systemd/system/softconsole.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Thu 2019-06-27 16:19:28 CDT; 2s ago Process: 1328 ExecStart=/home/pi/consolestable/runconsole.py (code=exited, status=203/EXEC) Process: 1327 ExecStartPre=/bin/sleep 5 (code=exited, status=0/SUCCESS) Jun 27 16:19:28 SoftConsoleTest systemd[1]: softconsole.service: Unit entered failed state. Jun 27 16:19:28 SoftConsoleTest systemd[1]: softconsole.service: Failed with result 'exit-code'. I get the following error with the testtouchhandler.py: pi@SoftConsoleTest:~/consolestable $ sudo python -u testtouchhandler.py open /dev/fb1: No such file or directory Starting touch hw search /sys/class/input/event0 Touch device: Goodix Capacitive TouchScreen Traceback (most recent call last): File "testtouchhandler.py", line 293, in <module> ts = Touchscreen() File "testtouchhandler.py", line 138, in __init__ self._f_device = io.open(self._touch_device(), 'rb', self.EVENT_SIZE) File "testtouchhandler.py", line 273, in _touch_device raise RuntimeError('Unable to locate touchscreen device') RuntimeError: Unable to locate touchscreen device Thanks you for taking the time to help me. While I am proficient in old, crappy programming languages (VisualBasic) I am not learned on anything newer. Where would be a good place to start learning python, javascript, or anything new? Jeff
-
@kck, @garybixler I have the same issue. Console won't auto-start. Jeff
-
Yes, pi7 as screen type and "Goodix Capacitive TouchScreen" in touchhandler.py. I don't know if this will help, but here is the output from xinput-calibrator: Jeff
-
@kck As a bit more data, there were errors with the latest stretch on X. The calibration was way off. I solved the issue by adding the following to /etc/X11/xorg.conf.d/99-calibration.conf: Section "InputClass" Identifier "calibration" MatchProduct "Goodix Capacitive TouchScreen" Option "TransformationMatrix" "1.69 0 -0.68 0 0.63 0.38 0 0 1" EndSection Don't know if that means anything to you or could help.
-
@kck Ok, I'm an idiot. Stupid capitalization error. On line 122 I didn't capitalize the S in TouchScreen. Now I have a functioning console. However, the right call it 1/4 to 1/5 of the screen isn't responsive to touch. Looks like the calibration is a slightly off. Also, left of the test button still activates the button, even though it shouldn't. Possibly the touchscreen is "shifted" left relative to the image by actually about 1/8 of the width of the screen. Jeff
-
@kck Made the change to 'pass'. This led to the following error: 06-26-19 21:36:18 Console ( 2130) starting in /home/pi/consolestable Traceback (most recent call last): File "console.py", line 143, in <module> utilities.InitializeEnvironment() File "/home/pi/consolestable/utilities.py", line 105, in InitializeEnvironment ts = Touchscreen() File "/home/pi/consolestable/touchhandler.py", line 137, in __init__ self._f_device = io.open(self._touch_device(), 'rb', self.EVENT_SIZE) File "/home/pi/consolestable/touchhandler.py", line 270, in _touch_device raise RuntimeError('Unable to locate touchscreen device') RuntimeError: Unable to locate touchscreen device 06-26-19 21:36:18 Exiting with history trace (0) mvtops exception: [Errno 2] No such file or directory: '/Current/' 2192(1561602979.6633866): Logger loop ended I am attaching one of the log files. looks a lot like the "Exiting with history trace" line. 0-06-25-19 22:38:02
-
@kck Short of pulling the plug, how do I stop they running console via VNC/SSH?
-
@kck, Switched back to "custom" from "pi7" and console ran (left "Goodix Capacitive Touchscreen" in touchhandler.py). Still no touch. Jeff
-
Kevin, I edited the files as directed above (I think I got them correct). I added them below for review. However, I get a catastrophic failure and console doesn't launch. See error: 06-26-19 20:07:00 Console ( 16716) starting in /home/pi/consolestable OSError: [Errno 22] Invalid argument During handling of the above exception, another exception occurred: Traceback (most recent call last): File "console.py", line 143, in <module> utilities.InitializeEnvironment() File "/home/pi/consolestable/utilities.py", line 98, in InitializeEnvironment hw.initOS(scrntyp) File "/home/pi/consolestable/hw.py", line 139, in initOS GoBright(100) File "/home/pi/consolestable/hw.py", line 56, in GoBright GoDimPi7(level) File "/home/pi/consolestable/hw.py", line 148, in GoDimPi7 f.write(str(level * 255 // 100)) OSError: [Errno 22] Invalid argument 06-26-19 20:07:00 Exiting with history trace (0) mvtops exception: [Errno 2] No such file or directory: '/Current/' 16756(1561597621.5156422): Logger loop ended Also, what are all of the files in consolestable labeled with date/time. There are about a thousand of them now and it is making it difficult to "ls" in that directory. Thanks for all your help! Jeff touchhandler.py .Screentype
-
Ok, here goes what answers I can give you: 1. I setup the screen as "custom" 2. I have an fbo in /dev 3. The screen "name" is "Goodix Capactivie Touchscreen" 4. How do I reinstall for a different screen ? (I can't find installconsole.sh anymore) 5. The touch works outside of the Console and was calibrated (the latest stretch change to libinput which this screen didn't care for initially). Console.log
-
Kevin, I finally got my system put together and softconsole loaded. However, once the console starts it is no longer responsive to touch. Any thoughts? My system is an Rpi0W with a Pimoroni Hyperpixel 4" touchscreen. I used the pimoroni drivers and touch works fine on the desktop. However, once softconsole starts, nothing. One more item. I can start the console via VNC no problem (that is when touch goes away), but when I try via SSH I get: pi@SoftConsoleTest:~/consolestable $ sudo python -u console.py 06-26-19 08:08:32 Console ( 1041) starting in /home/pi/consolestable Traceback (most recent call last): File "console.py", line 143, in <module> utilities.InitializeEnvironment() File "/home/pi/consolestable/utilities.py", line 98, in InitializeEnvironment hw.initOS(scrntyp) File "/home/pi/consolestable/hw.py", line 131, in initOS pygame.display.init() pygame.error: Unable to open /dev/fb1 06-26-19 08:08:33 Exiting with history trace (0) mvtops exception: [Errno 2] No such file or directory: '/Current/' 1053(1561554514.1216013): Logger loop ended One final thing, the console will not auto-start. During the installation, when the reboot occured after updates the installconsole script did not run after reboot. I had to manually start the console install. Thanks. Jeff
-
H2R: Thanks for the info! I've been trying to piece something together, but I was missing the basic info and the docs were somewhat confusing. Is there any way to package the UID/PWD not in plain text within the URL? Jeff
-
Thanks for the info. I'll look I to the REST API. Jeff
-
I've gotten the pushover part working fine, but I can't seem to find the info for creating and external URL link to do something on the ISY. Honestly, I am not sure what to even look up. Jeff
-
The title kind of says it all. I want to receive a notification and in that notification have actionable (via press) items. Say for example, when my geo fence is tripped and the ISY variable for away is set but the house isn't put into away mode, I would like a notification that has a button or hyperlink I can click to put the house into away mode (turn on a lighting scene for example). I don't want to have to go open mobilinc to execute the scene on command but rather do it from the message. Is this even possible? Bam2
-
Anyone acquired the brilliant tech switches yet? Any way to integrate with isy? It lists Smartt Inga as a compatability.
-
I use a single account with 2fa and less secure for the isy specific app password.
-
Can nodelink and polyglot run on the same rpi?