Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Will pay someone to fix this script error please

If you have a question or need help, this is the place to be.
Post Reply
User avatar
yokel22
Experienced User
Posts: 265
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city

Re: Will pay someone to fix this script error please

Post by yokel22 »

Copy paste this onto your tree & see what happens when you run it.

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="0.5.0-rc4">
    <Action Name="test" XML_Guid="{DA02A1A9-A7C5-4332-B5F5-C3DF20F458EB}">
        EventGhost.PythonScript(u"import requests\nimport json\n\nresponse = requests.get('http://127.0.0.1:80/x/playing.cgi?c=stop')\njString = response.content")
    </Action>
</EventGhost>
mikehende
Experienced User
Posts: 113
Joined: Sun Feb 10, 2008 1:59 pm

Re: Will pay someone to fix this script error please

Post by mikehende »

Thx but I don't know how to edit the tree and add the code into the right pane?
mikehende
Experienced User
Posts: 113
Joined: Sun Feb 10, 2008 1:59 pm

Re: Will pay someone to fix this script error please

Post by mikehende »

I found some instructions online, I copied the code

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="0.5.0-rc4">
<Action Name="test" XML_Guid="{DA02A1A9-A7C5-4332-B5F5-C3DF20F458EB}">
EventGhost.PythonScript(u"import requests\nimport json\n\nresponse = requests.get('http://127.0.0.1:80/x/playing.cgi?c=stop')\njString = response.content")
</Action>
</EventGhost>

right clicked in the right pane and pasted, it now shows "test" under x10 Play, if that was done correctly by me then seems it's almost working. I put a tune in the playlist then clicked the PLAY button on the remote, this action put the tune in the deck and attempts to play the tune, meaning I hear only a split second clip of the tune then it stops.
User avatar
yokel22
Experienced User
Posts: 265
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city

Re: Will pay someone to fix this script error please

Post by yokel22 »

EG works similar to windows explorer. You can copy the code here, then right mouse click on one of your tree items, then choose paste(like the screenshot). This should add a two python scripts. There's no need to open the xml & try to append the new code. Copy/Paste like you would any other windows app.

copy/paste this code:

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="0.5.0-rc4">
    <Macro Name="Run these" XML_Guid="{C3FAE7C2-E566-4876-9523-8805CBA4B245}" Expanded="True">
        <Action Name="test urllib2" XML_Guid="{DA02A1A9-A7C5-4332-B5F5-C3DF20F458EB}">
            EventGhost.PythonScript(u"import urllib2 as urllib\n\nresponse = urllib.urlopen('http://127.0.0.1:80/x/playing.cgi?c=stop')")
        </Action>
        <Action Name="test Requests" XML_Guid="{DA02A1A9-A7C5-4332-B5F5-C3DF20F458EB}">
            EventGhost.PythonScript(u"import requests\nimport json\n\nresponse = requests.get('http://127.0.0.1:80/x/playing.cgi?c=stop')\njString = response.content")
        </Action>
    </Macro>
</EventGhost>
Or you can simply open this modified tree here:
EG-OTSAVmod.egtree
(4.64 KiB) Downloaded 43 times
Attachments
paste.jpg
mikehende
Experienced User
Posts: 113
Joined: Sun Feb 10, 2008 1:59 pm

Re: Will pay someone to fix this script error please

Post by mikehende »

Wow, you're good, works now thanks! I still need to work on a couple minor issues listed below, my sincerest apologies for asking for this help since I had covered all of these troubeshooting steps with the guy who had written the script for me and had thought the instructions were saved in the pm on this forum but it's no longer there.

Anyway, if I can get help with these two issues it would be complete, please let me itemize for clarity:

1] The volume up and down works but needs to have the windows speaker icon open in view for this to happen

2] Whenever I press any key on the remote I hear a noise, can't explain the noise but sort of like when you press a key on a keyboard

Any ideas please?
User avatar
yokel22
Experienced User
Posts: 265
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city

Re: Will pay someone to fix this script error please

Post by yokel22 »

I'm guessing you meant importing urllib2 as urllib was what got it working. Try this tree out & see if it still works.
EG-OTSAVmod2.egtree
(4.1 KiB) Downloaded 43 times
I really don't have a clue as to what is causing sound when you send System Vol. cmds. Finding & pulling up the controls is going to be dependent on your system. This is because it will default to the name of your specific soundcard on the macbook. I'm sure someone else here can give you a better example than I.
mikehende
Experienced User
Posts: 113
Joined: Sun Feb 10, 2008 1:59 pm

Re: Will pay someone to fix this script error please

Post by mikehende »

Nah, thx but those 2 issues are still there.
User avatar
yokel22
Experienced User
Posts: 265
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city

Re: Will pay someone to fix this script error please

Post by yokel22 »

Sorry, i have no idea what your getting at there. I have no clue what helped you or how it was resolved. I'm afraid i can't solve your other two issues properly. Beyond my scope really.
mikehende
Experienced User
Posts: 113
Joined: Sun Feb 10, 2008 1:59 pm

Re: Will pay someone to fix this script error please

Post by mikehende »

I totally understand, you have helped plenty, absolutely nothing for you to be sorry about thank you! The person whio has set this up had installed the trial version of Otsav DJ so he was seeing exactly what I was seeing and that was how we got it done, I will try to reach out to him again, will report back if he responds or if I should find a fix, really appreciate your help. I will make another donation via paypal to this forum as I had done last time.
mikehende
Experienced User
Posts: 113
Joined: Sun Feb 10, 2008 1:59 pm

Re: Will pay someone to fix this script error please

Post by mikehende »

Oh, for my knowledge, would you be able to tell me why the original script did not work so I can understand this if I should run into this problem on another machine in the future please?
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Will pay someone to fix this script error please

Post by kgschlosser »

I may be able to help with the sound issues.


I need some information first.
Are you running a true dual boot (can one run 7 or OSX not both at the same time)?

If answer to above is No. Are you running Windows 7 as a VM (Virtual box or the like)?

Or are you running a boot loader that allows you to run OSX and 7 at the same time and can use a hotkey to switch between them (This is technically a VM but it's done differently)?

Can you tell me the brand and model of the remote you are using please?

I would also like to know what sound card drivers are loaded. You can get that information from device manager.

What model Mac are you running?
What version of OSX?


If you are running dual boot using boot camp you will need to boot into windows. Insert your Mac OS installation disk. If the disk does not Auto start then you will need to go to the drive then to the bootcamp folder and run the setup.exe in there. This will install. The windows drivers for your Mac hardware.

If you are running parallels I will have to do more research. And same goes for virtual box.
If you like the work I have been doing then feel free to Image
mikehende
Experienced User
Posts: 113
Joined: Sun Feb 10, 2008 1:59 pm

Re: Will pay someone to fix this script error please

Post by mikehende »

Hey thank you for offering to help.

Yes have been running dual boot via Bootcamp. I am thinking of VM as I run Serato on the Mac side and OTSAV DJ in the windows side so in live applications, it's not ideal to reboot to the windows side when switching between my main two music softwares.

I have been using the Snapstream remote with the Firely drviers from the Beyond Media Software:

https://www.ebay.com/itm/Snapstream-Med ... SwYtla3zJt

https://www.amazon.com/dp/B000CQYBXE?tag=itforlife-20

That remote system is very reliable and consistent, I get around 75 feet of RF from it outdoors, would very highly recommend it to anyone.

I have an old 2012 Macbook Pro with High Sierra, can't afford a new one right now. Soundcard info on the windows side in the DM is showing Cirtus Logic CS4206B [AB B2] and also Intel Display Audio.

With the help of Yokel 22 the basic functions of EG is working good, only would like to have OTSAV DJ open in full screen with the volume up/down working as on my windows machine but can't remember how the original person here had fixed this.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Will pay someone to fix this script error please

Post by kgschlosser »

try updating the remote. this should fix the issues. I am not familiar with the DJ program you are using is it a DOS based program or native Windows?

a VM would be a really good way to go. Virtual Box is free and Parallels is not. I think support wise you might do better with parallels. with Virtual ox I am sure all issues have been addressed but it is going to require you to do some searching to find solutions if you have any problems.



There is not a thing wrong with the MacBook you have. RAM is the Trick with any OS. you have to keep in mind that if you are going to do a VM you will need 2 Gigs for Mac OSX and another 2 for Windows. that is just for the OS. so you are at 4 so far. now you can run that amount. but expect to have slow downs due to page swaps. I would recommend at a minimum 6 depending on how many apps you have running possibly as high as 8. for a 2012 laptop it's going to be ddr 3 which is not to expensive. your laptop should support 8. the brand Crucial will work in your laptop without issue.

One other thing that will greatly improve the performance is an SSD. I would strongly suggest this especially if you are considering running windows in a VM. if you do those 2 things you will not need to replace the laptop for another 10 years.

The only thing with running a VM is the network setup can get a bit tricky because the guest OS (windows 7) does not have direct access to the network card. So the VM software will have to install a go between a bridge to connect the real network card to the virtual one.

Do you have the ability to change the volume level from inside of the DJ software?? is so we may want to see if we can control the volume that way. If we cannot go that route. you should have volume macros set up. in those macros you will have the events for the remote presses and the actions of changing the volume.

go into those volume actions and change the sound card to Primary. if it is already on Primary change it to your sound card. see if this solves the issue. As far as the clicks go. you are probably hearing those because whatever drivers you are using tells windows to make those sounds. if you go into your volume mixer on windows you should be able to mute the system sounds.
If you like the work I have been doing then feel free to Image
mikehende
Experienced User
Posts: 113
Joined: Sun Feb 10, 2008 1:59 pm

Re: Will pay someone to fix this script error please

Post by mikehende »

kgschlosser wrote: Sun May 27, 2018 9:56 pm try updating the remote. this should fix the issues. I am not familiar with the DJ program you are using is it a DOS based program or native Windows?
Will try tomorrow and also look into the sound properties you have mentioned and get back to you, thx. This is the music software, it's a half Radio automated system and half DJ windows based, the best at what it does, can very highly recommend it to anyone: http://www.otsav.com/download-otsav-free-trial/

Regarding VM I will need to put some thought and research into that again, I have 8gb ram on the MBP and that is more than sufficient to run both music softwares buy may upgrade to 16 gb one day when I might be able to afford it. I had thought of going with an SSD drive but could not find a 1tb for my budget so I replaced the HDD with a 1tb 7200rpm one.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Will pay someone to fix this script error please

Post by kgschlosser »

because of the nature of what you do with your Laptop. it would be best to get an SSD for internal and use it for the OS's. and buy an external case for the 1TB you have. the case is cheap to buy. and you should be able to purchase a 250 gig ssd for around 80.00 USD. the best way to explain the speed jump you get is this.

standard 7200 RPM drive does about 50 IOPS (Input Output Operations a Second). the SSD's that i have (OCZ ARC's) do about 430000 IOPS. it will take an old laptop (early 2000's) and it will hard boot the laptop (from a powered off state) in under 10 seconds. that is Windows completely loaded. and that is also a non UEFI installation. you have a good amount of memory to run both OS's at the same time without a need to upgrade your ram. so long as you keep the number of applications you are running on the lower side while both OS's are running. when you set up the VM be sure you dedicate the proper amount of ram for the VM so at least 3 GB.
If you like the work I have been doing then feel free to Image
Post Reply