Page 12 of 17

Re: Instructions: Installing CumulusMX on Raspberry Pi

Posted: Sun 22 Nov 2020 1:25 am
by Rylands
You haven't really told us enough about your setup. The Davis and CumulusMX running on an RPi on your local network makes sense. But where is 'my webpage' running/hosted? Where is 'my server' running/hosted? And on what machine is the cron job running? I get the impression that at least some of these are remote on the web, rather than all on your RPi or on another local machine.
There doesn't appear to be any problems with the hosting - as the webpage is still up and running (I'm using a meteotemplate).

To try and troubleshoot, I am running Cumulus on a PC to test it out, but I'm guessing that perhaps I have an incorrect setting in my internet settings

When using FileZilla to ftp, I can see that my realtime.txt file is not updating. Directory structure where my web page files are, is public_html/eyesontheweathercom, and in Internet settings, I have a host name of eyesontheweather.com.au, and remote ftp directory public.html/eyesontheweathercom. I know that the username and password are correct, as I am using the same ones in Filezilla.

IF I can get this working, I'm going to reinstall Cumulus on the Pi, but want to make sure all settings are correct before I start.
And on what machine is the cron job running
I'm using a company called easycron to run the cronjob, and it's working perfectly every 60 seconds without fail.

The pi has been rebooted several times (power off, wait 30 seconds, power on)

Any further help appreciated.

Re: Instructions: Installing CumulusMX on Raspberry Pi

Posted: Sun 22 Nov 2020 2:14 am
by PaulMy
I am not using RP1 but you are still trying on PC so attached is what I have.

The Host name is my IP address for my komokaweather.com hosting at GoDaddy
My root is public_html
My Cumulus FTP is to folder /cumulusmx
My site is http://www.komokaweather.com/cumulusmx
And http://www.komokaweather.com/cumulusmx/index.php


Enjoy,
Paul
FTP login.png

Re: Instructions: Installing CumulusMX on Raspberry Pi

Posted: Sun 22 Nov 2020 5:42 am
by HansR
Rylands wrote: Mon 16 Nov 2020 7:22 am I can see that the Pi is connected to my wifi network at address 192.168.1.24.
When I try to access Cumulus using 192.168.1.24:8998, I get a refused connection message.
When I try to login to the PI (using PuTTY or Filezilla) it doesn't connect. File states "FATAL ERROR: Network error: Connection refused", PuTTy says something similar.
Does anybody have suggestions on where to go to from here?
Did you try a cabled connection to connect with PuTTY? If that connects OK then it might be a hardware error in the wifi part.
Do you have a spare RPi?
Did you check the SD-card (how old is it, failing block etc...).
Etc...

(I assume you rebooted all parts involved in the network more than once: router, bridge (if any), PC, RPi)

Re: Instructions: Installing CumulusMX on Raspberry Pi

Posted: Sun 22 Nov 2020 11:03 am
by Rylands
Putting aside the suggestions from below, and more troubleshooting in the last few hours. These steps are all running on a local version of Cumulus - not the version on my pi.

1. I need to transfer the realtime.txt file, and have this enabled in Cumulus (along with Enable Realtime, and Enable realtime.ftp)
2. My site is hosted at www.eyesontheweather.com.au. When I have this listed as my host name, and I use filezilla, I can see SOME files are being uploaded to my server (eg today.htm, yesterday.htm, index.htm). This is also confirmed when I look at the ftp log file. Hence it appears that ftp is working fine.

So can anybody hint at why the realtime.txt file isn't uploading? I have the following settings...

Web/FTP Settings (boxes checked are...)
Auto Update
Include Standard Files
Include Moon Image File
FTP rename
UTF-8 encoding
FTP logging
Upload interval 10
Enable realtime
Enable realtime FTP
Realtime.txt FTP
Realtimegauges.txt FTP
Realtime interval 30

Thanks for everybody's help and support so far.

Re: Instructions: Installing CumulusMX on Raspberry Pi

Posted: Sun 22 Nov 2020 11:19 am
by rogerthn
Rylands wrote: Sun 22 Nov 2020 11:03 am So can anybody hint at why the realtime.txt file isn't uploading? I have the following settings...
Please note that I've not read all your posts ;)
Do you have Connecting real time FTP in the "CumulusMX window"?
Have you tried to enable FTP logging?
With debug enabled I can see that Realtime is starting

Code: Select all

2020-11-17 17:53:12.960 FTP[0]: Attempting realtime FTP connect to host 192.168.9.66 on port 21
2020-11-17 17:53:13.658 FTP[0]: Realtime FTP connected
2020-11-17 17:53:13.658 Starting Realtime timer, interval = 10 seconds

Re: Instructions: Installing CumulusMX on Raspberry Pi

Posted: Sun 22 Nov 2020 11:25 am
by HansR
@Rylands:
And please note also the CSS issue.

Code: Select all

12:23:55.507 The stylesheet http://www.eyesontheweather.com.au/weatherstyle.css was not loaded because its MIME type, "text/html", is not "text/css". 

Re: Instructions: Installing CumulusMX on Raspberry Pi

Posted: Sun 22 Nov 2020 11:30 am
by HansR
I don't understand which debug @rogerthn is looking at but if you look at the console you can see:
  1. There are no loads of the realtime.txt file
  2. there are errors on the site
  3. the realtimegauges.txt aren't loaded either with syntax errors in the javascripts somewhere.
I would say: some files have been edited.
Some work to do I assume.

Re: Instructions: Installing CumulusMX on Raspberry Pi

Posted: Sun 22 Nov 2020 11:48 am
by rogerthn
Sorry, my bad.
The realtime start can be seen without debug.
From my last start of CumulusMX in MXdiags/20201027-190137.txt

Code: Select all

2020-10-27 19:01:50.686 FTP[0]: Attempting realtime FTP connect to host n.n.n.n on p
ort 21
2020-10-27 19:01:51.434 FTP[0]: Realtime FTP connected
2020-10-27 19:01:51.435 Starting Realtime timer, interval = 10 seconds
2020-10-27 19:01:51.436 Normal running
2020-10-27 19:01:51.436 Sending reset
2020-10-27 19:01:51.453 Start loop
PS
Start of your last realtime.txt
15/11/20 22:25:17

Re: Instructions: Installing CumulusMX on Raspberry Pi

Posted: Sun 22 Nov 2020 12:32 pm
by Rylands
Ok - So I'm trying to understand everything written here, and understanding half of it.

Is the best solution to simply reinstall Cumulus and all my web templates and start fresh?

Re: Instructions: Installing CumulusMX on Raspberry Pi

Posted: Sun 22 Nov 2020 1:50 pm
by HansR
That is always worth a try if you don't mind doing that.

The realtime.txt file on your website has the timestamp of "15/11/20 22:25:17". So apparently something happened a week ago.
If you can, it would be worth to try to reconstruct what happened.
If you can't, yes, reinstall the whole thing may help assuming the problem is on the Cumulus-side (btw did you try to login via a wired connection?).

If you do, please backup the data directory and your ini-file. Also saving changes you made to the standard website or other things are worth saving.
You may want to check your ini file on correctness.

Re: Instructions: Installing CumulusMX on Raspberry Pi

Posted: Mon 07 Dec 2020 2:22 pm
by Feek
Right, I see there's an updated version of CumulusMX today. As this is the first time there's been an update since I set up my Pi last month, what's the official upgrade process please?

Re: Instructions: Installing CumulusMX on Raspberry Pi

Posted: Mon 25 Jan 2021 10:22 pm
by Carbonara
suggestion for developers, add this trick on pre-built Raspberry Pi Image https://github.com/ecdye/zram-config to reduce the writing on the sd card, this helps to increase its life. ;)

Re: Instructions: Installing CumulusMX on Raspberry Pi

Posted: Tue 26 Jan 2021 5:19 pm
by mcrossley
Carbonara wrote: Mon 25 Jan 2021 10:22 pm suggestion for developers, add this trick on pre-built Raspberry Pi Image https://github.com/ecdye/zram-config to reduce the writing on the sd card, this helps to increase its life. ;)
The prebuilt image already has file links for all the temporary files to the temp RAM drive.

Re: Instructions: Installing CumulusMX on Raspberry Pi

Posted: Fri 05 Feb 2021 5:43 pm
by Harry ITO
I installed Cumulus MX v3.9.7 build 3107, 31-Jan-2021 into my Pi3B+.
After configured Cumulus web settings, I couldn't access to configuration web.

- Wrote RPi image file to my SD card
- Installed successfully, I could reach to http://<IP Address>:8998
- After I submitted my configuration; like as Station, Internet settings then I couldn't reach http://<IP Address>:8998
- Submission of setting was completed successfully, but after that I couldn't access to there

- I tried DNS, Fixed IP address and Wifi, wired ethernet as well
- Ping and SSH session to Pi ware no problem
- I flashed image file to new SD card a couple of time, but it caused same result
- CumulusMX service is Active
- Rebooted CumulusMX service, but couldn't fix it

pi@cumulusmx:~ $ sudo systemctl status cumulusmx
● cumulusmx.service - CumulusMX service
Loaded: loaded (/etc/systemd/system/cumulusmx.service; enabled; vendor preset: enab
Active: active (running) since Sat 2021-02-06 01:42:55 JST; 27s ago
Docs: https://cumuluswiki.org/a/Main_Page
Process: 389 ExecStart=/usr/bin/mono-service -d:/opt/CumulusMX CumulusMX.exe -servic
Main PID: 397 (mono)
Tasks: 10 (limit: 2062)
CGroup: /system.slice/cumulusmx.service
└─397 /usr/bin/mono /usr/lib/mono/4.5/mono-service.exe -d:/opt/CumulusMX Cu

Re: Instructions: Installing CumulusMX on Raspberry Pi

Posted: Fri 05 Feb 2021 7:57 pm
by Cortmalaw
So, the response to

Code: Select all

sudo systemctl status cumulusmx
shows that CumnulusMX is running, because it contains the line:

Code: Select all

Active: active (running) since Sat 2021-02-06 01:42:55 JST; 27s ago
So the problem is that you cannot find the web interface.
Next clue is that that line also says CumulusMX has been running for 27 seconds, on Saturday 06 Feb at 01:42 [tomorrow morning]
But your post here is timed at 17:43 on Friday 05 Feb [today].

So either you have a TimeZone set wrongly (it says JST - are you in Japan??) , or else your RPi is not finding your WiFi at all (it need internet access to get the time - not sure what it does if doesn't find it, but may just take a guess?). If needed you can fix the TimeZone using

Code: Select all

sudo raspi-config
We now need to find out what IP address the RPi has, if it is connected to your WiFi at all

How did you enter the command

Code: Select all

sudo systemctl status cumulusmx
?
Either you have SSH (which means it is connected to your WiFi and you must know it's IP address?) or else you are using a keyboard/monitor and transcribed it manually? Which?

But either way, next thing to check is what IP address the RPi actually has. It must have changed - maybe your router has been resolving a conflict? You could ask your router, or use a utility like "Fing" or "Angry IP scanner" on your PC, but as you have access to the BASH prompt on the RPi, simplest will be to go there and tell us the output from these 2 commands:

Code: Select all

hostname -I
This should just print the IP address (and you can test it, adding the :8998 suffix). Then

Code: Select all

ifconfig
will give us more information if there's something wrong.

My suspicion is that something has caused the RPi to be given a different IP address to the one you expect, and even that isn't working properly.

Also worth trying might be to re-do the installation step where you edit (using your PC) the SD card file 'wpa_supplicant.conf'. You can go back and do that step again, making sure to make no typing errors. That file is the one that tells the RPi how to connect to your network. It needs 4 spaces (not a tab character) in each of the indented lines, and make sure that after 'network' and at the end you have used braces (curly brackets) { } and not parentheses ( ) or square brackets [ ].

Also, you haven't just moved the RPi away from your router so that it now has a bad connection? I suppose that could be a cause. Move it closer for now, but long term we can try forcing it to use the longer range 2.4GHz WiFi instead of 5GHz - that involves adding an extra line into 'wpa_supplicant.conf'

Anyway, there are some next steps