Consolewd for the Raspberry Pi

Starting a new thread because, as Brian noticed, the heading of the previous thread did not do much justice.

And maybe a moderator could merge most of the old thread to this one.
from

Must the remote name be a .htm or .html ?

Bernez

OK Brian,

I tried the new version.
But, it doesn’t work for me. :frowning:
It uploads the wx.html file to a different directory. OK !
sadly there’s no upload of the clientraw.txt or customclientraw.txt (and the others) to the second directory.

I don’t need that wx.html file as I said before.
What I need, is just to be able to upload the clientraw.text, customclientraw.txt, customclientextra.txt, etc, etc… ALSO to a different directory.
So, exactly the same upload as the first cronftpreal, but in a different place (with or without wx.html, for my part).

I hope it’s clear now. It’s more difficult for me to write it down than it really is. :wink:

Bernez

you can set any remote filename you want, does not have to be wx.html or wx.htm
you set that in the config.txt
use this filename instead of wx.html=

as for needing a different remote dir for the clientraw/customclientraw
just change the ftp remote directory

but do you mean you want the clientraw files and custom clientraw uploaded 2 x…to normal directory…then to a different remote directory?

No, no. It’s OK like that. My mistake, I didn’t understand what you meant.
Consolewd works now (the uploads). But the site still doesn’t update. I don’t think it’s related to consolewd.
It’s more because I’ve been experimenting a lot the last few days. I must have forgotten to set back something or made a typo mistake.
I will investigate this further.

For now, here the relevant parts of my config.txt:

Do custom clientraw=Y //For updating customclientraw for steel gauges (set to Y for yes, N for no) (every 5 minutes)
Customclientraw update rate=1 //seconds
Do wunderground=Y //For updating wunderground.com (set to Y for yes, N for no) (every 5 minutes)
Wunderground username=IOVERIJS34
Wunderground password=*****
Wunderground timezone=2 // e.g 12 for 12 hours ahead of GMT, -12 for - 12 hours
timezone=2 (to change the local PC hour used)
Direction offset (whole degrees)=0
Barometer offset(hpa)=0
Comport number (e.g 1)= //For non USB stations (e.g Davis, OS WMR968), use U for ttyUSB0 (i.e usb to serial)

Do clientraw FTP=Y //(set to Y for yes, N for no), uploads every 1 minute
FTP server=ftp.ollivier.nl
FTP username=*****
FTP password=*****
FTP port=21 //default is 21
FTP remote dir=/public/sites/www.ollivier.nl/weather2/uploadWD/
FTP remote dir wx.html=/public/sites/www.ollivier.nl/weather/wdl/
FTP use passive=Y //(set to Y for yes, N for no)
FTP use remote file rename= //Write here the remote name: NOTE that not all FTP servers allow remote file rename"
FTP time interval=30 //the interval between two upload of the clientraw.txt and custom file
Save logfile=Y //to save the .txt logfile (set to N to save on disk space)
Logfile metric=Y
Create custom file=Y //converts the custom tags in a file called wxlocal.html to wx.html
Use this filename instead of wx.html=clientraw.txt
Use this filename instead of wx2.html=customclientraw.txt
Use this filename instead of wx3.html=clientrawextra.txt
Use this filename instead of wx4.html=clientrawhour.txt
Use this filename instead of wx5.html=clientraw.daily
FTP the custom file=Y //will FTP the wx.html or filename you set to FTP server specified (clientraw FTP needs to be enabled too)

run cron files=Y // set to N to not run the separate cron files
do custom log=Y // set to Y to create an appended logfile from a template (customlog.txt)
custom log out=customlogout.txt

OK, or what ?

you have made some mistakes
first
FTP remote dir=/public/sites/www.ollivier.nl/weather2/uploadWD/
FTP remote dir wx.html=/public/sites/www.ollivier.nl/weather/wdl/

the first one is for the clientraw/customclientraw remote directory
the second is for the wxlocal.html to wx.html files

it looks like you have those backwards

next mistake

Use this filename instead of wx.html=clientraw.txt
Use this filename instead of wx2.html=customclientraw.txt
Use this filename instead of wx3.html=clientrawextra.txt
Use this filename instead of wx4.html=clientrawhour.txt
Use this filename instead of wx5.html=clientraw.daily

that is wrong

you dont want the wxlocal.html being created and uploaded as clientraw.txt
neither do you want wxlocal2.html being created and uploaded as customclientraw.txt
etc

I think you are not understanding
those settings are for a file
wxlocal.html (or wxlocal2.html, etc)
that contains custom web tags, like %time% , etc and other html code, for a custom web page
to be converted and uploaded as the set remote filename (e.g wx.html or index.html etc), with the custom web tags replaced with values
e.g
http://www.weather-display.com/webcamtest2/test.html

dont set fixed file names like the clientraw.txt file, or customclientraw.txt file, which are created and uploaded automaticly

OK, so I was wrong all the way. :oops: #-o

I think I understand what you mean (second time I say that :roll: )
The Leuven Template I use works normally with Weather Display (Windows) and it works just fine.
I can setup different software programs (i.e. Cumulus, Weatherlink, etc.
But not yet Consolewd. I think that’s the problem. I’ll have to contact the maker and ask for the possibility to use it within the template.

Raspi offline for now…

…Weather Display online.

how do you have WD setup to create and upload the custom web page?
if its set to convert a wxlocal.html file , with the custom tags, then, that will work via consolewd (consolewd will convert that file, in the directory where consolewd is (i.e copy that file from your windows pc WD web files folder)
to the remote file name you set in the config.txt file
(which is your html file name on your web site)

I think you are over thinking/over complicating it

hopefully the penny will drop for you :slight_smile:

I hope so ! :roll:

Going to bed now…

for your web site
http://www.ollivier.nl/weather2/
which is using custom tags I presume
and a file name of index.php

then that is what you set as the remote file name instead of wx.html

i.e
Use this filename instead of wx.html=index.php

and you have the wxlocal.html where consolewd is, as being your web page template file (ie with the custom tags in it)

Aaarrrggg ! :x :x :x

SD card corrupt again. That’s the third time in 2 weeks. I use Sandisk and Icidu SD cards which are both on the SD list at Raspberrypi.org.

I think the SD cards are the weak part of the Raspberry system. The frequent read/write action, as used by consolewd, is a known problem with SD cards.

I would prefer to use a USB hard disk. I have one spare doing nothing on the shelf, but I don’t know (yet) how to mount and use it (running consolewd from it).

So, be aware and backup.

Bernez

PS: I always shutdown with: sudo shutdown -h now :wink:

I have not had that problem myself yet

one thing though I have found is to remove the SD card (when no power ) for a second
then insert again
to “reset it”

I have had to do that when sometimes it wont boot

there was another person who posted how they had set to use a USB hard drive

maybe try googling about that

I have copied over the 8 files from the deploy folder (i done this by running file explorer as root and moving them across that way). They are now in usr/local/lib.

However, when i run in terminal sudo ./GoWdconsole.sh i get error, “command not found”.

Not sure where to go from there.

I was thinking, is it possible to get a working SD card that is setup to run wdconsole and then make that file (large i know) downloadable for others, so all that is needed is to copy that over to another sd card?

Stuard,
You don’t need to use GoWdconsole.sh
Just open a terminal as root and type : ./consolewd

Me to, sounds a good idea :smiley:

Ok done that but get a permission denied error now :frowning:

Sent from my GT-I9505 using Tapatalk 4 Beta

Actually scrub that, I set the consolewd as an executable and it now works. Connecting to the vp now :slight_smile:
Can I now get the data it saves into a folder on my network drive now so I can use wd on my pc as normal ( so i can use the graphs, get reports etc…?)

Sent from my GT-I9505 using Tapatalk 4 Beta

Had an error occur when the wunderground upload occured, something about failing to write to an .ini

I did copy the error at the time, but its failing to paste now :frowning:

Try doing

chmod -R 777

on the consolewdfiles folder. Helped for me.

re the error with the ini
that means you are not using the latest consolewd for raspberry pi
download a new update
(be carefull not to overwrite your config.txt and consolewd.ini files)