magdesign / PocketVJ-CP-v3

PocketVJ 3.x Control Panel
https://www.pocketvj.com
Other
156 stars 33 forks source link

Osc comands do not work #69

Closed frankbash closed 4 years ago

frankbash commented 5 years ago

CP 2.4.0f the osc commands do nothing on port 9876 (after activation) only the hp-player still works under the old port 9000, any ideas? the pi is connected via lan, touchosc sends to the ip 192.168.2.16 (the pi on the router) and the port 9876

magdesign commented 5 years ago

Did you activate OSC in the ControlPanel ?

frankbash commented 5 years ago

yes i activated it and in the status window it´s show that activated

ProjectileObjects commented 5 years ago

Hi Frank, when I was testing OSC I found it better to run the command directly in terminal for testing.

SSH in and run the node command for osc_control.js It should say it is running and when you send it commands, the prompt will echo back immediately. more here: https://github.com/magdesign/PocketVJ-CP-v3/blob/master/Updating%20PocketVJ%20from%20web%20CP%202.md

If you are on mac, download QLab and send OSC commands to the PVJ, very easy to set up. LMK if you would like to try it that way.

frankbash commented 5 years ago

hey i used your touchosc template and want to use an iPad later, maybe mag design fix this in a update, so osc is alway on after boot up the pj,

the work around with ssh and qlab may work for one pj but not if u use more then one

magdesign commented 5 years ago

Its not broken, its "off" by default. If you "Autostart" into "Scheduler/OSC" OSC will be activated everytime you boot up.

ProjectileObjects commented 5 years ago

hey i used your touchosc template and want to use an iPad later, maybe mag design fix this in a update, so osc is alway on after boot up the pj,

the work around with ssh and qlab may work for one pj but not if u use more then one

Not true. I've used tmux-cssh and Qlab to automate multiple pocketVJ's at once. It's very easy to do. Qlab's network settings are where you can specify which devices to send to, then you use Auto-continue triggers and if you start one, it will immediately trigger all of the others. With terminal open and tmux-cssh showing multiple PVJ in parallel, the command prompt updates as expected.

frankbash commented 5 years ago

maybe you should make a video, so i can see this setup

ProjectileObjects commented 5 years ago

maybe you should make a video, so i can see this setup

I don't have time to do that now, but I have an article about it planned a few months into 2019. For now, I'll share some photos from a tech doc I drafted a while back.

Terminal with tmux-cssh https://ws1.sinaimg.cn/large/006tNbRwly1fydt8ru0wxj311w0qktea.jpg

Network Settings in QLab https://ws2.sinaimg.cn/large/006tNbRwly1fydt9dbtp0j31cz0u0dwg.jpg

QLab OSC commands (Note: these are set to Auto-Follow, you will want to use Auto-Continue if you want them to happen at the same time). https://ws3.sinaimg.cn/large/006tNbRwly1fydt9kdb99j311j0u0gww.jpg

After running the QLab sequence: https://ws2.sinaimg.cn/large/006tNbRwly1fydt9mzcfkj311w0qkgrd.jpg

Another example to Play a video (/startmaster01), pause it after 5 seconds (/pause), and trigger play again with the space bar (or Go command) (/pause) <- Same command un-pauses the video. Finally another space bar will stop video video entirely (/stopall) https://ws4.sinaimg.cn/large/006tNbRwly1fydt9vvb3zj31i40c20w2.jpg

frankbash commented 5 years ago

autostart in osc don´t work(blank screen and no osc), manually start osc don´t work, osc with the port 9876 don´t work ssh to pi work, but directory /osc does not exist bildschirmfoto 2018-12-20 um 23 45 40

qlab settings bildschirmfoto 2018-12-20 um 23 47 25 bildschirmfoto 2018-12-20 um 23 46 33

only the hplayer osc commandos still work in qlab ( Port 9000)

any further ideas?

ProjectileObjects commented 5 years ago

/osc does not exist

"then that's your problem"

If /osc doesn't exist then auto start won't do anything. Did you install node npm and follow the instructions in the readme to transfer the osc_control.js file to the /osc directory?

Found here: https://github.com/magdesign/PocketVJ-CP-v3/blob/master/Updating%20PocketVJ%20from%20web%20CP%202.md

magdesign commented 5 years ago

Which version of PocketVJ do you have?

OSC is implemented since version 3.6 https://github.com/magdesign/PocketVJ-CP-v3/blob/master/RELEASE_NOTES.md

If you have an older version you need to install all by hand as ProjectileObjects stated.

frankbash commented 5 years ago

ah there's the error I'm on version 3.5, thanks for the help and merry Christmas

frankbash commented 5 years ago
bildschirmfoto 2018-12-28 um 11 40 52

nodejs network is not reachable :( same on all terminals , so its not very convenient to update the pocketvj :( so my bought sd-card (on 14.07.2018 ver.3.5) is now old after 5 month :( so what are your plans in future, how can customer update the pocketvj the easy way?????

magdesign commented 5 years ago

You have to connect your PocketVJ to the internet or download the file on another machine and manually copy and install it to the PocketVJ.

For the plans, see the roadmap: https://github.com/magdesign/PocketVJ-CP-v3/blob/master/ROADMAP.md

frankbash commented 5 years ago

the pi is hooked up internet via rj45, manually download is done so where to put the file????? this need a tutorial, how to upgrade from version 3.5 to the lastest firmware and not only how to update the control panel, i expected more support for 149chf

magdesign commented 5 years ago

Did you read this: https://github.com/magdesign/PocketVJ-CP-v3/blob/master/Updating%20PocketVJ%20from%20web%20CP%202.md

Here is everything described on how to install OSC. You can copy the downloaded file anywhere and extract it. Do you have skills on terminal? What more support did you expected then?

frankbash commented 5 years ago

finale i made it work (with my terminal basic skills and an other tutorial how to instal nodejs) osc is working cp is 2.4.1 and pvj is 3.5

and now something killed the control panel, chrome shows everything like before but when i press a button nothing happen, the tabs and file explorer still working fine, but the rest is dead

any ideas?

magdesign commented 5 years ago

Great to hear that you could install node :-)

There was a bug in CP 2.4.1, I just fixed it with CP 2.4.1a, you need to install an update with this method: https://vimeo.com/308801484 and everything should be working again.

frankbash commented 5 years ago

so i did it like in the video, but no chance to get it running, when i put the commands via terminal all works fine, but not via control panel in chrome, there is not text feedback in the chrome window even too so the commands seems correct, but the connection between cp and the rest is missing maybe it´s like the cp is sending into the nirvana

magdesign commented 5 years ago

Now we are stuck in this issue: https://github.com/magdesign/PocketVJ-CP-v3/issues/38

If you Wifi connect to the PocketVJ, then opening Chrome and visit this link: http://2.0.0.100/backend.php?action=testscreen will then be the testscreen activate on the PocketVJ?

frankbash commented 5 years ago

chrome said http error 500, i change over to the issue #38

ProjectileObjects commented 5 years ago

Not sure if it will help, but I also recommend testing in a new private window. Sometimes the browser stores the outdated information.

frankbash commented 5 years ago

nope, don´t help

magdesign commented 5 years ago

Could it be that you messed something while installing node.js and now the webserver is not running anymore?

frankbash commented 5 years ago

so i rolled back to the cp 2.4.0f (like in the alternative update video)and every works now again, osc is running and cp via chrome browser

magdesign commented 5 years ago

Great.