Page 3 of 4

Re: RaspberryPi script to display weatherstation values via ssh

Posted: Thu 09 Mar 2017 3:14 pm
by meghv999
Hello,

Am sorry for the late reply and no the file does not exist. Even when I start the CumulusMX, in the browser, it is just all blank as such below:

Re: RaspberryPi script to display weatherstation values via ssh

Posted: Thu 09 Mar 2017 3:36 pm
by steve
As I said above, the graphconfig.json file is created at each web update. It sounds like you don't have Cumulus configured to do web updates? If you don't want to upload to a web site, you can turn on web updating (set auto-update) and don't supply an ftp host name, and it will create the json files but not try to upload them (I think!).

Re: RaspberryPi script to display weatherstation values via ssh

Posted: Thu 09 Mar 2017 10:24 pm
by jank
Alternatively you can create this file into the /tmp folder by using this command

Code: Select all

echo "{\"temp\":{\"units\":\"C\",\"decimals\":1},\"wind\":{\"units\":\"km/h\",\"decimals\":0},\"rain\":{\"units\":\"mm\",\"decimals\":1},\"press\":{\"units\":\"hPa\",\"decimals\":1},\"hum\":{\"decimals\":0},\"uv\":{\"decimals\":1}}" > /tmp/graphconfig.json
Probably you need to change some of the values to match to your used locale.
Once done, copy /tmp/graphconfig.json into your webdirectory.

Re: RaspberryPi script to display weatherstation values via ssh

Posted: Fri 10 Mar 2017 11:05 am
by meghv999
Hello,

No I guess I found the problem. I am using Acurite Pro weather station which is not supported by CumulusMX. Guess need to find another option. :bash:

Re: RaspberryPi script to display weatherstation values via ssh

Posted: Tue 14 Mar 2017 9:24 pm
by dazza1223
hi i have a raspberry pi lcd screen and i wood like to run this script on in the back groud and see it on my tft display ?

Re: RaspberryPi script to display weatherstation values via ssh

Posted: Wed 15 Mar 2017 2:56 pm
by jank
not sure if LCD4Linux will do something like this for you ?

Re: RaspberryPi script to display weatherstation values via ssh

Posted: Wed 15 Mar 2017 7:56 pm
by dazza1223
o the fort u just set it up on the pi

Re: RaspberryPi script to display weatherstation values via ssh

Posted: Wed 15 Mar 2017 7:57 pm
by dazza1223
and it a tft display

Re: RaspberryPi script to display weatherstation values via ssh

Posted: Thu 16 Mar 2017 9:18 am
by jank
Sorry, since I do not have such a display, I can not help you hwo to put the output of cumulusnow to your external display but:
since the cumulusnow.sh output is a simple ssh output, it should normally be no problem to direct the output from the ssh window additionally to oyur display........
Are you able to see your normal ssh windows output on the display ?

Re: RaspberryPi script to display weatherstation values via ssh - Version 1.7

Posted: Thu 16 Mar 2017 9:30 am
by jank
Update Available - Version 1.7 - 16.-03.2017

I had a request form one user to add the CumulusMX runtine into the weatherstation data output.
For this reason, you can download Version 1.7 from the first page
----> CumulusMX Runtime: X days XX hours XX minutes XX seconds

Image

Re: RaspberryPi script to display weatherstation values via ssh - Version 1.7

Posted: Thu 16 Mar 2017 8:37 pm
by dazza1223
yh
hen i get it to out put to the display it work fine but when i open up ssh it outo run the the ssh shell as well and i dont want that i ony want to to run on the diplay mate

Re: RaspberryPi script to display weatherstation values via ssh - Version 1.7

Posted: Thu 16 Mar 2017 9:10 pm
by rogerthn
This is what I do

Code: Select all

ssh pi@raspberry 'export TERM=xterm;cd /home/pi/CumulusMX;./cumulusnow.sh'

Re: RaspberryPi script to display weatherstation values via ssh - Version 1.7

Posted: Thu 16 Mar 2017 9:12 pm
by dazza1223
so can i ad this to the outo start up the ssh pi@raspberry 'export TERM=xterm;cd /home/pi/CumulusMX;./cumulusnow.sh'

Re: RaspberryPi script to display weatherstation values via ssh - Version 1.7

Posted: Thu 16 Mar 2017 9:18 pm
by dazza1223
so can i ad this to the outo start up the ssh pi@raspberry 'export TERM=xterm;cd /home/pi/CumulusMX;./cumulusnow.sh'

Re: RaspberryPi script to display weatherstation values via ssh - Version 1.7

Posted: Fri 17 Mar 2017 3:56 pm
by jank
Have you tried it manually first before you aksing about a autostart script ?

ssh pi@raspberry 'export TERM=xterm;cd /home/pi/CumulusMX;./cumulusnow.sh'

on a command line....does it work ? I do not have an extra display so I can not test it ....