Help with runnning on a Linux Server


#1

Hi,

I’m trying to run the pvoutput.sh script through a cron job on my web server and keep getting the following error:
“Error: Could not find or load main class org.pvoutput.integration.Controller”

I’ve uploaded the files as mentioned in the installation sheet and changed the permissions of pvoutput.sh to 755. Anything else that I need to do?

Thanks in advance.


#2

I’ve started investigating running the integration service on a pi and noticed that there was some help in this thread Xively and CurrentCost Energy Meter

I’ve not tried it myself (waiting for my new system to be fitted) but hopefully it may help. I’d be interested to hear how you get on.

Bob.


#3

#4

Looking at the pvoutput.sh file, it’s loading up the java classpath with jars from the lib directory. Relative to the pvoutput.sh, the lib directory should be “…/lib”. The Controller class is then in the jar org.pvoutput.integration.jar.

So as long you’ve uploaded the content with the original zip folder structure, e.g:
org.pvoutput.integration.v1.5.3/
org.pvoutput.integration.v1.5.3/bin/…
org.pvoutput.integration.v1.5.3/lib/…
org.pvoutput.integration.v1.5.3/logs/…
org.pvoutput.integration.v1.5.3/conf/…
org.pvoutput.integration.v1.5.3/data/…

it should find the right jars relative to the scripts location (script is in the bin directory).


#5

I’m running the integration service on a Raspberry PI3. All I did was edit the bin/pvoutput.sh file and replaced “i686” with “armv5”. Also, edit the conf/pvoutput.ini file to add your api key, sid, logs directory, and device settings.

I’ve set it up to run in a “screen” session for background operation, and monitoring.

Works great.


#6

Has anybody been able to run the software under MacOS?


#7

Check out the MacOS version of the RXTX lib, RXTX-mac.

You’ll most likely need to edit the pvoutput.sh script to point to the correct RXTX lib files.