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

realtime.txt fails in raspberry Pi image

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

dk6
Posts: 19
Joined: Mon 19 Feb 2024 9:14 am
Weather Station: Davis Vantange Pro2 + RPI
Operating System: CUMULUS PI image

Re: realtime.txt fails in raspberry Pi image

Post by dk6 »

mcrossley wrote: Tue 20 Feb 2024 9:09 pm If you just want to access it locally, then you could create the file as you are now. Then set up Extra Web Files to copy it to the /interface folder.

(Below is untested and from memory, I'm on my phone at the moment)

Local file name = web/realtime.txt
Remote file name = interface/realtime.txt
Real-time option ticked, the rest clear

Then you should be able to access it using the URL you have above.

But no access from the internet obviously. You will need a web site for that.
i have access to the internet because the DashBoard of Cumulus has access from the router to outside world!
i just copy manual the realtime.txt from the /CumulusMX folder to /CumulusMX/interface/ and it worked!!! :D

sorry for my low knowledge of linux commands... but what is the real path of realtime.txt to put the right settings to extra web files to do this job automatically?
extraweb.jpg
structure.jpg
error.jpg
You do not have the required permissions to view the files attached to this post.
dk6
Posts: 19
Joined: Mon 19 Feb 2024 9:14 am
Weather Station: Davis Vantange Pro2 + RPI
Operating System: CUMULUS PI image

Re: realtime.txt fails in raspberry Pi image

Post by dk6 »

i have found it!!! :P
right_extra_web.jpg
i found the path with the command readlink

dk6@raspberrypi:~/CumulusMX $ readlink -f realtime.txt
/home/dk6/CumulusMX/realtime.txt

Everything worked!!!! Now i can use the Culumus Monitor iOS APP!!!

thanks everyone for the help!!! What a great build you made!!! :clap: :clap: :clap: :clap:
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 12778
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: realtime.txt fails in raspberry Pi image

Post by mcrossley »

You really should not make the Cumulus MX interface available to the internet, it is not secure enough.
User avatar
mcrossley
Posts: 12778
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: realtime.txt fails in raspberry Pi image

Post by mcrossley »

As Paul said the paths "realtime.txt" and "interface/realtime.txt" should work, but full paths are ok.
User avatar
PaulMy
Posts: 3852
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: realtime.txt fails in raspberry Pi image

Post by PaulMy »

Marks wrote:
the paths "realtime.txt" and "interface/realtime.txt" should work, but full paths are ok.
I have always used full paths for Extra web files like C:\CumulusMX\web\xxxx until I read Mark's suggestion, and lo and behold... Mark's short form is much easier. Still learn something every day.

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
dazza1223
Posts: 867
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: realtime.txt fails in raspberry Pi image

Post by dazza1223 »

dk6 wrote: Tue 20 Feb 2024 6:42 pm I have successfully install manually CumulusMX in a Raspberry Pi Zero W now. I have no error reported in the logs.

I have only enable the realtime interval and the creation of the realtime.txt file.

Can you please tell me where is the location of this file?

Second step is to have access to this file from http://myhost:8998/realtime.txt to use it with the Cumulus iOS App. How can i do that?

Thanks! :)
Hey the x64 image all done and uploaded let me know
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
dk6
Posts: 19
Joined: Mon 19 Feb 2024 9:14 am
Weather Station: Davis Vantange Pro2 + RPI
Operating System: CUMULUS PI image

Re: realtime.txt fails in raspberry Pi image

Post by dk6 »

can we restart the webserver with a command? or there is a possibility to clear the cash of the webserver?
water01
Posts: 3259
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: realtime.txt fails in raspberry Pi image

Post by water01 »

dk6 wrote: Thu 22 Feb 2024 10:07 pm can we restart the webserver with a command? or there is a possibility to clear the cash of the webserver?
Clear the cache with a Ctrl + F5 should work.
David
Image
dk6
Posts: 19
Joined: Mon 19 Feb 2024 9:14 am
Weather Station: Davis Vantange Pro2 + RPI
Operating System: CUMULUS PI image

Re: realtime.txt fails in raspberry Pi image

Post by dk6 »

dazza1223 wrote: Wed 21 Feb 2024 4:43 pm Hey the x64 image all done and uploaded let me know
Device: Pi 3B
Image : x64

no errors.

realtime.txt updates ok.

Question: i am using the Cumulus Weather Monitor App for iOS. This app wants to read the realtime.txt. When i boot the raspberry the application reads successfully the file. BUT although the file updates successfully the iOS app cannot see any update it shows the last one. WHEN i reboot the raspberry the iOS app can see the new values and so on… IS there any way to restart only the webserver of cumulus? Anyway to clear the cash memory? The iOS app unfortunately does not have this option.
User avatar
mcrossley
Posts: 12778
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: realtime.txt fails in raspberry Pi image

Post by mcrossley »

You cannot restart CMX built-in web server, but nor does it cache the files, caching is disbaled, it serves the requested files afresh each time they are requested.
dk6
Posts: 19
Joined: Mon 19 Feb 2024 9:14 am
Weather Station: Davis Vantange Pro2 + RPI
Operating System: CUMULUS PI image

Re: realtime.txt fails in raspberry Pi image

Post by dk6 »

mcrossley wrote: Fri 23 Feb 2024 3:00 pm You cannot restart CMX built-in web server, but nor does it cache the files, caching is disbaled, it serves the requested files afresh each time they are requested.
Ok I understand! Can i run a second webserver in the raspberry simultaneously with Cumulusmx service; like apple or ngix?
dk6
Posts: 19
Joined: Mon 19 Feb 2024 9:14 am
Weather Station: Davis Vantange Pro2 + RPI
Operating System: CUMULUS PI image

Re: realtime.txt fails in raspberry Pi image

Post by dk6 »

dk6 wrote: Fri 23 Feb 2024 8:10 pm
mcrossley wrote: Fri 23 Feb 2024 3:00 pm You cannot restart CMX built-in web server, but nor does it cache the files, caching is disbaled, it serves the requested files afresh each time they are requested.
Ok I understand! Can i run a second webserver in the raspberry simultaneously with Cumulusmx service; like apple or ngix?
Found it! :D

https://www.cumuluswiki.org/a/Your_Own_Server

Thank you again guys!
BigOkie
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: realtime.txt fails in raspberry Pi image

Post by BigOkie »

freddie wrote: Mon 19 Feb 2024 3:10 pm Urgh - symlinks :( You'll have to explain the purpose of those. Unless they are in the cmx image - in that case it'll be over to Dazza.
Isn't /run a partition using ramdisk so as to reduce writes to the sdcard?

Code: Select all

root@wxserver:~# df
Filesystem                    1K-blocks       Used  Available Use% Mounted on
/dev/root                      30393948    4726848   25337552  16% /
devtmpfs                         439400          0     439400   0% /dev
tmpfs                            472680        340     472340   1% /dev/shm
tmpfs                            472680      48880     423800  11% /run
tmpfs                              5120          4       5116   1% /run/lock
tmpfs                            472680          0     472680   0% /sys/fs/cgroup
/dev/mmcblk0p1                   258095      49324     208771  20% /boot
I used the image too when I initially installed it.
User avatar
philpugh
Posts: 388
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 11 (RPi4)
Location: Antrobus, Cheshire, UK
Contact:

Re: realtime.txt fails in raspberry Pi image

Post by philpugh »

dk6 wrote: Fri 23 Feb 2024 8:10 pm
mcrossley wrote: Fri 23 Feb 2024 3:00 pm You cannot restart CMX built-in web server, but nor does it cache the files, caching is disbaled, it serves the requested files afresh each time they are requested.
Ok I understand! Can i run a second webserver in the raspberry simultaneously with Cumulusmx service; like apple or ngix?
Yes - that's the way I use it - running multiple instances of CMX and my webserver using NGINX. I run all this on a RPi 4 with a CPU load of 25-45 % depending on what's going on!
Phil Pugh
GW1000 + WH65/WH57/WH31; HP2551 + WS68/WH40A; GW2001 WittBoy
CumulusMX V4 / CUtils V7
Raspberry Pi 5 64bit
http://goosegate.uk/
Post Reply