Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Local Web Server
Moderator: daj
-
- Posts: 845
- Joined: Sun 10 May 2009 8:52 pm
- Weather Station: davis vp2 Serial datalogger
- Operating System: Windows 7 64-bit
- Location: Springfield, IL
Re: Local Web Server
Is .cmd powershell?
Beau
Beau
- mcrossley
- Posts: 12756
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Local Web Server
No, it is just an alternative to .bat both are batch files.
-
- Posts: 1255
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Local Web Server
Thanks Mark.
I'm not exactly sure when Microsoft started calling batch files .cmd (command I presume) but it was some years ago now.
Any way I just started adopting that extension for batch files as that seemed to be the new 'standard'.
I should have mentioned that ncftpput is the command line module from the NcFTP suite available here http://www.ncftp.com/ncftp/ You need the client for Microsoft Windows about halfway down the download link's page (http://www.ncftp.com/download/) - it's an msi package.
the command structure looks a bit complicated but the example shown above will get you going.
The userpass1st.cfg refers to a separate small file containing the username and password - covered in the documentation with the program.
I'm not exactly sure when Microsoft started calling batch files .cmd (command I presume) but it was some years ago now.
Any way I just started adopting that extension for batch files as that seemed to be the new 'standard'.
I should have mentioned that ncftpput is the command line module from the NcFTP suite available here http://www.ncftp.com/ncftp/ You need the client for Microsoft Windows about halfway down the download link's page (http://www.ncftp.com/download/) - it's an msi package.
the command structure looks a bit complicated but the example shown above will get you going.
The userpass1st.cfg refers to a separate small file containing the username and password - covered in the documentation with the program.
-
- Posts: 272
- Joined: Tue 28 May 2013 1:06 am
- Weather Station: Davis VP2 Plus
- Operating System: Raspian Buster (RPi 3b)
- Location: Tulsa, OK
Re: Local Web Server
They started calling them .cmd files when the first iteration of NT Server got going. You could also have the same kinds of files with the .nt extension.BCJKiwi wrote:Thanks Mark.
I'm not exactly sure when Microsoft started calling batch files .cmd (command I presume) but it was some years ago now.
Any way I just started adopting that extension for batch files as that seemed to be the new 'standard'.
I should have mentioned that ncftpput is the command line module from the NcFTP suite available here http://www.ncftp.com/ncftp/ You need the client for Microsoft Windows about halfway down the download link's page (http://www.ncftp.com/download/) - it's an msi package.
the command structure looks a bit complicated but the example shown above will get you going.
The userpass1st.cfg refers to a separate small file containing the username and password - covered in the documentation with the program.
If memory serves me correctly. I still remember having to set up my autoexec.bat and config.sys files for MS-DOS. Way back in the day.
- firemanak
- Posts: 23
- Joined: Wed 16 Oct 2013 7:28 am
- Weather Station: WS-2090
- Operating System: Windows vista
- Location: Fairbanks, Alaska
- Contact:
Re: Local Web Server
update, I figured out how to make my FTP program to load the realtime.txt file to second site...Thanks a millionBCJKiwi wrote:An alternative approach,
I don't run toolbox and do it all with a combination of Cumulus, batch files, and for a second public website, ftp run in the same batch files.
1. set up Cumulus to process the files (but not send them anywhere if you are working entirely locally).
2. set up a folder in c:\Cumulus - I have one named ftp - C:\Cumulus\ftp
3. in Internet Settings, Sites/Options, External programs (bottom left corner)
configure the boxes;
Program c:\cumulus\ftp\tagtime.cmd
Realtime c:\cumulus\ftp\realtime.cmd
Daily c:\cumulus\ftp\daily.cmd
With this set up, you can then do what ever you need in each batch file to copy /ftp files wherever required.
I run two websites on a publicly hosted server - one for Saratoga template based website http://silveracorn.co.nz/weather
and one for the Cumulus standard website http://silveracorn.co.nz/cumulus
I also run an XAMPP webserver for development/testing also with both Saratoga and Cumulus websites.
Cumulus processes and sends files to the Saratoga website as it would if it were the only website.
The batch files are set up to;
Ftp data to the public Cumulus website
copy or xcopy data to both internal XAMPP based websites.
So the batch files look like this ( c:\cumulus\ftp\realtime.cmd as an example)
:: FTP to PUBLIC Cumulus website
ncftpput -f userpass1st.cfg -a -z -S .tmp -e realtime.log /httpdocs/cumulus c:\cumulus\realtime.txt
:: COPY files to LOCAL Saratoga Website
copy c:\cumulus\realtime.txt \\10.0.0.27\weather\realtime.txt /Y
:: COPY files to LOCAL Cumulus Website
copy c:\cumulus\realtime.txt \\10.0.0.27\cumulus\realtime.txt /Y
You can use either the IP address or the sharename on the local network of the folder for the website
So this makes for easy fiddling if required.
Files can be added/removed from the batchfiles as required without upsetting anything else.
the only time Cumulus is involved is when a new file is required in which case a template file needs to be added to the C:\Cumulus\web folder and configured in Internet Settings, Files to process the file.
The web folder will have three files for each one processed (except realtime.txt which is in C:\Cumulus, and the graphs which are in C:\Cumulus\web\images);
the xxxxxT.txt template file, an xxxxxT.txttmp file and the file you need to copy - xxxxx.txt.
Looks complicated but quite simple to set up and to change as required.
Can something similar work from just a personal computer to two sites? So I have cumulus settings sending to first site, can I use external program settings to send just the realtime.txt file to second site? just checking before I move site A to site B and have to go change all my listings all over the Internet. Thanks
-
- Posts: 1255
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Local Web Server
Depends on your setup.
If Cumulus is sending to A now and you want to send to B later,
You could set up the system I described in the Cumulus PC to send everything to B now while leaving the base Cumulus settings as they are and continue sending to A.
When you want to turn off A, then change the Cumulus settings from A to B and remove the .cmd file setups.
If I have misinterpreted your intentions, please explain further.
Basically if you have access to multiple PCs across a local network batch (.cmd) files will do most things you need.
If the destinations are elsewhere but accessible via FTP then the batch files with a command line FTP program being called by the batch file will get stuff to the destination. You will need access i.e. username/password.
If Cumulus is sending to A now and you want to send to B later,
You could set up the system I described in the Cumulus PC to send everything to B now while leaving the base Cumulus settings as they are and continue sending to A.
When you want to turn off A, then change the Cumulus settings from A to B and remove the .cmd file setups.
If I have misinterpreted your intentions, please explain further.
Basically if you have access to multiple PCs across a local network batch (.cmd) files will do most things you need.
If the destinations are elsewhere but accessible via FTP then the batch files with a command line FTP program being called by the batch file will get stuff to the destination. You will need access i.e. username/password.
-
- Posts: 845
- Joined: Sun 10 May 2009 8:52 pm
- Weather Station: davis vp2 Serial datalogger
- Operating System: Windows 7 64-bit
- Location: Springfield, IL
Re: Local Web Server
Im not sure i did this correct
this is the ip i use to get to my local local server
my setup is camulus an xampp on the same pc
this is the ip i use to get to my local local server
my setup is camulus an xampp on the same pc
Code: Select all
C:\Cumulus\localfiles>C:\Cumulus\localfiles\daily.cmd
C:\Cumulus\localfiles>copy c:\cumulus\data\dayfile.txt \\192.168.1.4\weather\dat
a\dayfile.txt /Y
The network name cannot be found.
0 file(s) copied.
C:\Cumulus\localfiles>
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Local Web Server
If they're on the same PC, why are you using a network path for the destination? Just use a local path with a drive letter.
Steve
-
- Posts: 1255
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Local Web Server
Something like;
Or since public-html should already be shared as public_html;
Note that copy (and xcopy) have some issues determining if the destination is a folder or path when there is a filename on the end of the destination.
So, if the filename is the same on source and destination, place the \ at the end of the destination path which indicates a folder, and leave off the filename as shown above.
If the destination filename is different - i.e. renaming the file as part of the copy command use this format; echo F| 'pipes' the F to answer the prompt that may otherwise appear (and stall the batch file) which asks if the copy is for a file or a directory.
Code: Select all
C:\Cumulus\localfiles>copy c:\cumulus\data\dayfile.txt C:\xampp\htdocs\public_html\weather\data\ /Y
Code: Select all
C:\Cumulus\localfiles>copy c:\cumulus\data\dayfile.txt public_html\weather\data\ /Y
So, if the filename is the same on source and destination, place the \ at the end of the destination path which indicates a folder, and leave off the filename as shown above.
If the destination filename is different - i.e. renaming the file as part of the copy command use this format;
Code: Select all
C:\Cumulus\localfiles>echo F|copy c:\cumulus\data\dayfile.txt public_html\weather\data\dayfile.new /Y
-
- Posts: 845
- Joined: Sun 10 May 2009 8:52 pm
- Weather Station: davis vp2 Serial datalogger
- Operating System: Windows 7 64-bit
- Location: Springfield, IL
Re: Local Web Server
here what i did so far
just two folder left to do
beau
Code: Select all
copy C:\Cumulus\web\CUtags.txttmp C:\xampp\htdocs\weather\cutags.php /Y
copy C:\Cumulus\web\cloudbaseCUT.txttmp C:\xampp\htdocs\weather\cloudbaseCU.txt /Y
copy C:\Cumulus\web\davcon24T.txttmp C:\xampp\htdocs\weather\davcon24.txt /Y
beau
-
- Posts: 1255
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Local Web Server
Since you are renaming the files as part of the copy process, ideally you should, as suggested above put echo F| in front of those lines.
The OS seems to remember if you have manually answered F to the Question but I don't rely on it (been caught out too often in the past) but hey OTY.
The OS seems to remember if you have manually answered F to the Question but I don't rely on it (been caught out too often in the past) but hey OTY.
-
- Posts: 845
- Joined: Sun 10 May 2009 8:52 pm
- Weather Station: davis vp2 Serial datalogger
- Operating System: Windows 7 64-bit
- Location: Springfield, IL
Re: Local Web Server
Why would you do
wood that not give you a error?
Beau
Code: Select all
C:\Cumulus\web\echo F|copyCUtags.txttmp C:\xampp\htdocs\weather\cutags.php /Y
Beau
-
- Posts: 1255
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Local Web Server
I don't provide advice of this nature that I have not tested!
Did you try it? If not do so.
Did you check it out on the internet?
As I said it is OTY (over to you).
Did you try it? If not do so.
Did you check it out on the internet?
As I said it is OTY (over to you).
- firemanak
- Posts: 23
- Joined: Wed 16 Oct 2013 7:28 am
- Weather Station: WS-2090
- Operating System: Windows vista
- Location: Fairbanks, Alaska
- Contact:
Re: Local Web Server
Sorry some how I missed all the replies...
I have one computer but two websites (local website doesn't allow scripts)but that is where I registered my weather station on everything
Godaddy site, (site 2) I have the banner attached, is housed there. So what I ended up doing, is WSFTP has a scheduler, that allows me to take the realtime.txt needed for the banner, and upload it every 2 mins. So it all seems to be working, except right now, it's not updating so not sure why ...lol
Thanks for all the info, i am shifting through it, and trying to learn what is going on.
Tony
I have one computer but two websites (local website doesn't allow scripts)but that is where I registered my weather station on everything
Godaddy site, (site 2) I have the banner attached, is housed there. So what I ended up doing, is WSFTP has a scheduler, that allows me to take the realtime.txt needed for the banner, and upload it every 2 mins. So it all seems to be working, except right now, it's not updating so not sure why ...lol
Thanks for all the info, i am shifting through it, and trying to learn what is going on.
Tony
-
- Posts: 1255
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Local Web Server
OK,
Still not clear on what's where.
However, you can adopt the suggestions I made earlier if you want and avoid running a separate scheduler.
Cumulus has three schedulers/timers which are synchronised to Cumulus.
Cumulus / Configuration / Internet / Sites/Options
In the bottom left corner there is a panel External Programs.
Program:- I like to call this Tag Time as it runs immediately after the processing of all the stuff in the Files tab - i.e. at the same interval as the tag generated stuff is sent to the default website via the built in FTP.
Realtime Program
Daily
So If you have a batch file in any or all of those slots as discussed before, the batch file(s) can copy / xcopy and/or FTP files wherever required.
I have a host of stuff moving around and it gets to our online website within 3 secs of the schedule time in Cumulus all without a separate scheduler.
The only catch is for FTP, you need to run a command line FTP client so it will work inside the batch file.
Still not clear on what's where.
However, you can adopt the suggestions I made earlier if you want and avoid running a separate scheduler.
Cumulus has three schedulers/timers which are synchronised to Cumulus.
Cumulus / Configuration / Internet / Sites/Options
In the bottom left corner there is a panel External Programs.
Program:- I like to call this Tag Time as it runs immediately after the processing of all the stuff in the Files tab - i.e. at the same interval as the tag generated stuff is sent to the default website via the built in FTP.
Realtime Program
Daily
So If you have a batch file in any or all of those slots as discussed before, the batch file(s) can copy / xcopy and/or FTP files wherever required.
I have a host of stuff moving around and it gets to our online website within 3 secs of the schedule time in Cumulus all without a separate scheduler.
The only catch is for FTP, you need to run a command line FTP client so it will work inside the batch file.