Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Windows 7 Auto Start / IP Binding

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

WoodburyMan
Posts: 166
Joined: Sun 04 Sep 2011 2:02 am
Weather Station: Ecowitt GW1000
Operating System: Windows 10 20H2
Location: Woodbury, Connecticut, U.S.A.
Contact:

Windows 7 Auto Start / IP Binding

Post by WoodburyMan »

Steve lists a way to have CumulusMX load without admin privledges on the main page. (Running net sh command as a admin to allow CumulusMX to bind to any local IP on that port).
I had issues with this, it did not work for me unless I manually specified the IP, wildcard using * and + did not work. Not sure why. Rather than binding to specific IP's, which I found another problem with (see 2nd part), I decided to just find a shortcut for launching the program on startup with admin privileges.

I followed this guide to make a task.
http://www.sevenforums.com/tutorials/11 ... reate.html
However in the "Edit Action" field, I had it start the following programs"
Program/Script:

Code: Select all

%windir%\System32\cmd.exe 
Add an argument:

Code: Select all

/c start "CumulusMX" "/c start "CumulusMX" "C:\CumulusMXDist\CumulusMX.exe""
Start In:

Code: Select all

C:\CumulusMXDist
Also, under "Triggers" I had it start at login. I already have my system set to auto login to my user account, so it all works. You can set it to start even if the user isn't logged on I suppose to start anyway.



Now the 2nd part.
It seems CumulusMX decides what IP/Interface to bind to on it's own. For example it bind to my local LAN 10.0.0.87 IP. When I access it in a browser, via http://10.0.0.87:8998/ it loads fine. However, it does not load when I type http://127.0.0.1:8998/ as the URL. This may be a issue for several reasons. Example 1: It may choose the wrong interface on Multi-Interface systems. 2. IP changes. My system boots up faster than the switches I have it plugged into (Cisco SG300). In the event of a power outage, that adapter would show disconnected. In this case, Cumulus binds to 127.0.0.1, and is inaccessible remotely from my LAN IP.
A possible Fix would be a setting perhaps to tell it what IP's to bind to. A list, perhaps where you specify the IP's, ex. 127.0.0.1, 10.0.0.87, and a "all" and "auto" setting somewhere in the config file. Just me $.02.
Woodbury, CT Weather Ecowitt GW1100, Solar, Wind, Rain, Temp, Soil, Lightning
Southington, CT Weather Ecowitt GW2000 Wittboy Solar, Wind, Rain, Temp, Soil, Lightning, CO2/PM2.5/PM10

Running CumuluxMX 3.24.1 b3234 both sites on Windows 11 22H2
User avatar
gluepack
Posts: 460
Joined: Tue 22 Jan 2013 9:20 pm
Weather Station: PCE-FWS 20
Operating System: Win 7 Pro
Location: Zlatina, Bulgaria

Re: Windows 7 Auto Start / IP Binding

Post by gluepack »

Well, everything was working fine until I ran the netsh and setup the logon task, as described above, which all seemed to go well (I used my user name instead of u$er).
Then I logged off and logged on but CumulusMX didn't start, which was obvious from my website not being updated and also the timeout error when attempting to access it through the browser.
Now, having started it manually, I am getting a 503, service unavailable, in the browser when attempting to access it.

One thing I am not quite clear on. I have three other systems on the network and they are all accessible from each other but I can't access the cumulus server 192.1.etc. through a browser from any of them, just the local system. I must be missing something. It seems as if it should be the same as other servers, e.g. FTP. I have set up and my webcam so not sure about it.

Never mind, it's late, I'll have a look in the morning. I've started it manually and I just hope that the system doesn't restart during the night.

Oh, perhaps it did start. I just checked Task Scheduler and it shows as running and started at 21.47 and my manual start was at 21.56. Strange.
Image

PWS links: WundergroundIVARNAPR3CWOP/APRSE(W)2048PWSWeatherZLATINABGAwekas10631Twitter@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
User avatar
gluepack
Posts: 460
Joined: Tue 22 Jan 2013 9:20 pm
Weather Station: PCE-FWS 20
Operating System: Win 7 Pro
Location: Zlatina, Bulgaria

Re: Windows 7 Auto Start / IP Binding

Post by gluepack »

ok, with everything resolved as far as local access is concerned, as far as auto start is concerned, until I can improve on it, I have an Admin Command Prompt and TeamViewer starting at login so at least, if I am away and the system restarts, I can use TeamViewer to run MX. It also enables me to see the MX control panel on the server, wherever I am, without having to worry about how I access the MX server remotely.

Update: Duh! Better still, along with TeamViewer, I have an Admin batch file to start at login that runs MX.
I guess I could also start my browser with the server IP address at login as well, to save having to do that with TeamViewer, when I want to see it remotely.

Update: That requires a response to the admin request, so I have setup a shortcut of a runas.../savecred to run the batch file that, in turn, invokes CumulusMX.
So, havng set up Administrator with a password, the shortcut, that gets run at login, is...
runas /user:system\Administrator /savecred "C:\CumulusMX\CumulusMX.bat"
...where system is the server system name
(you have to run it once, in order for the password to be requested and saved)
...and the bat file cd's to CumulusMX and runs CumulusMX.exe
(I did try running the exe from the runas but it fails)
Image

PWS links: WundergroundIVARNAPR3CWOP/APRSE(W)2048PWSWeatherZLATINABGAwekas10631Twitter@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
empezza
Posts: 10
Joined: Tue 22 Jun 2010 3:34 am
Weather Station: Oregon WMR200, CumulusMX v3 3036
Operating System: Windows 10 32-bit PC On A Stick
Location: Jervis Bay, Australia

Re: Windows 7 Auto Start / IP Binding

Post by empezza »

I am trying to get CumulusMX to auto start when the PC boots up - running Windows 8.1.
I've tried all sorts of combinations as suggested above but nothing works.
Does anyone have the full details of how to set this up? Please post details for dummies!

I have Cumulus running on a "headless" PC - no monitor/mouse/keyboard - unless needed. No password at boot.
User avatar
gluepack
Posts: 460
Joined: Tue 22 Jan 2013 9:20 pm
Weather Station: PCE-FWS 20
Operating System: Win 7 Pro
Location: Zlatina, Bulgaria

Re: Windows 7 Auto Start / IP Binding

Post by gluepack »

OK, well five systems, only one went via 8.1 so I don't remember everything. They are now all on 10, except the Cumulus machine, which is on 7 Pro. So, forgive me if it isn't exactly like this...

I assume by "no password at boot" that you mean it automatically logs in to Win 8.1.

Well, it depends whether you are automatically logging on as Administrator or as someone who has Administrator privileges.
If the former, you only need to setup a batch file to run at startup. If the latter, you need the additional step of setting up a shortcut and run that at startup instead of the batch file.
The batch file will be something like this...

Code: Select all

echo off
cd\CumulusMX
CumulusMX.exe
...obviously changing the cd... command to specify the directory where you have installed CumulusMX.

The shortcut will be to...

Code: Select all

runas /user:system\Administrator /savecred "C:\CumulusMX\CumulusMX.bat"
So, you create a batch file, using Notepad, copy the above block of code into it, change the directory name if necessary and save it as, for example, CumulusMX.bat
Save it somewhere appropriate.
Then, if you are automatically logging in as Administrator (not just Fred with Administrator privileges), using File Explorer, copy it to the Startup folder which should be at Windows/Start Menu/Programs/Startup by dragging it there from wherever you saved it.

If you are not logging on as Administrator, first you have to ensure that Administrator has a password and that you know what it is.
Then, having created the batch file, as above, on the desktop, right-click and create a new shortcut adding the above "runas" statement as the location, changing the piece in quotes to the location of your batch file.
Open File Explorer, navigate to the Startup folder, as above, and drag your shortcut to it.
When it runs the first time, it will ask for the password. After that it should run without doing so.
Image

PWS links: WundergroundIVARNAPR3CWOP/APRSE(W)2048PWSWeatherZLATINABGAwekas10631Twitter@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
empezza
Posts: 10
Joined: Tue 22 Jun 2010 3:34 am
Weather Station: Oregon WMR200, CumulusMX v3 3036
Operating System: Windows 10 32-bit PC On A Stick
Location: Jervis Bay, Australia

Re: Windows 7 Auto Start / IP Binding

Post by empezza »

Thank you so much for your detailed reply!
I login as Administrator (the only user) and creating the batch file as you described works perfectly.

Cheers,
Max
ajcm
Posts: 111
Joined: Sun 17 Jul 2011 5:15 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: W7 Home Premium 64bits
Location: Maspalomas, Canary Islands, Spain
Contact:

Re: Windows 7 Auto Start / IP Binding

Post by ajcm »

Hello:

I woluld like know how I can open cumulus MX with StartWatch and Windows 10. StartWatch says that It can´t open Cumulus.exe

I use StartWatch and this opens Virtualvp and weather display, cumulus, etc.

Thanks.
User avatar
gluepack
Posts: 460
Joined: Tue 22 Jan 2013 9:20 pm
Weather Station: PCE-FWS 20
Operating System: Win 7 Pro
Location: Zlatina, Bulgaria

Re: Windows 7 Auto Start / IP Binding

Post by gluepack »

Have you spoken to SoftWx, connecting to weather software is their business. Hopefully they know how to accomplish this.
Image

PWS links: WundergroundIVARNAPR3CWOP/APRSE(W)2048PWSWeatherZLATINABGAwekas10631Twitter@Zlatina_weather
Station type: PCE-FWS 20…Webcam link: View south to edge of Provadisko plateau
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Windows 7 Auto Start / IP Binding

Post by mcrossley »

The exe filename is no longer Cumulus.exe it is CumulusMX.exe, do you have to change it StartWatch?
ajcm
Posts: 111
Joined: Sun 17 Jul 2011 5:15 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: W7 Home Premium 64bits
Location: Maspalomas, Canary Islands, Spain
Contact:

Re: Windows 7 Auto Start / IP Binding

Post by ajcm »

If I have changed.
You do not have the required permissions to view the files attached to this post.
User avatar
laulau
Posts: 678
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Windows 7 Auto Start / IP Binding

Post by laulau »

Is the requirement to run (CumuluMX) as root/administrator removed ?
Laurent

Image
ajcm
Posts: 111
Joined: Sun 17 Jul 2011 5:15 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: W7 Home Premium 64bits
Location: Maspalomas, Canary Islands, Spain
Contact:

Re: Windows 7 Auto Start / IP Binding

Post by ajcm »

I've tried this:

runas / user: administrator "CumulursMX C: \ CumulusMX \ CumulusMX.exe"

It does not work and do not know the commands of Windows 10.

Thanks.
ajcm
Posts: 111
Joined: Sun 17 Jul 2011 5:15 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: W7 Home Premium 64bits
Location: Maspalomas, Canary Islands, Spain
Contact:

Re: Windows 7 Auto Start / IP Binding

Post by ajcm »

StartWatch can not open programs as Administrator on Windows 10, CumulusMX opens in normal mode but does not work the socket localhost: 8998.

Thanks.
User avatar
jdc
Posts: 142
Joined: Tue 19 Jun 2012 8:51 pm
Weather Station: Davis VP2 : Instromet
Operating System: Win 10
Location: Portsoy,.
Contact:

Re: Windows 7 Auto Start / IP Binding

Post by jdc »

I may be missing something here but I run MX on a 'headless' Acer Revo on Win10 accessed by Team Viewer. On startup I log on automatically with Admin priviledges and have put a shortcut to CumulusMX in:

C:\Users\'Username'\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

This works fine for me. Ironically whilst typing this we had a power cut and the Acer with Cumulus was the first back up.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Windows 7 Auto Start / IP Binding

Post by steve »

ajcm wrote:StartWatch can not open programs as Administrator on Windows 10, CumulusMX opens in normal mode but does not work the socket localhost: 8998.
Then as laulau suggested, try removing the requirement to run as administrator (as in the instructions).
Steve
Locked