Web Weather > Weather Web Site Help
Blake Larsen Sun Recorder to CMx
davidmc36:
So I just got my BL Sun Recorder running again and want to get the data into CMx. Or even additionally post the graph images it produces to my webpage.
I have CMx running on a RPi Zero with a Meteo HAT.
The App for the Sun Recorder is currently on a W10 laptop.
I wonder if sending to an FTP server on the RPi, the .dat file from the recorder app, would be the easiest way to go. I was thinking of setting up CMx 4 on the laptop, but converting the CMx 3 files from the RPi does not seem like a very straightforward process.
PaulMy:
Hi David,
It has been years since I last had the B-L running and I think the process is still the same. At that time there was a setting in SR to create a SRsunshine.dat file and save it in Cumulus\data folder at a 1-minute interval.
In CumulusMX settings > Extra Sensors > enable
--- Code: ---Blake-Larsen Sunshine recorder
Use a Blake-Larsen sunshine recorder for sunshine hours
Use an attached Blake-Larsen sun recorder to determine hours of sunshine - reads the SRsunshine.dat file
--- End code ---
and CMX will read the file every 1-minute for the ongoing sunshine hours and logging.
The Charts tab > Daily Charts will then display the sunshine hours, and also uploaded to the standard CumulusMX website if you have that.
The SR graph files on your computer can be uploaded to your website and displayed how and where you want them to display.
--- Quote ---I was thinking of setting up CMx 4 on the laptop, but converting the CMx 3 files from the RPi does not seem like a very straightforward process.
--- End quote ---
Should be relative easy, follow steps 1 through 9 https://cumulus.hosiene.co.uk/viewtopic.php?t=22051
--- Code: ---A basic workflow to run the utility:
1. Start with a clean install v4
2. Copy your v3 Cumulus.ini and strings.ini files to root of v4
3. Copy your v3 /data and /Reports folders to the v4 install
4. Rename the copied /data folder to /datav3
5. From the command prompt, change the path to your v4 /CumulusMX folder
6. Run MigrateData3to4
Note: If you have any Custom Daily log files, you must supply these file names to the migration utility as parameters as they can have any free-format file name. Note: you do not type the square brackets, they just indicate optional parameters.
Windows:
Code: Select all
MigrateData3to4.exe
Linux:
Code: Select all
dotnet MigrateData3to4.dll
7. Follow the prompts and look for any errors - the utility also outputs a log file to the /MXdiags folder
8. If you use PHP upload, check the upload.php script on your web server is up to date with the v4 zip file versions
9. Done!
--- End code ---
Enjoy,
Paul
davidmc36:
I read a thread where it stated you now just put the .dat file in main CumulusMX folder. I think that does seem easy if both apps are on the PC.
But if my CMx is on the Pi, I only need those two files copied to PC install to transfer all records etc.????
PaulMy:
Hi David,
In my case in the past the SRsunshine.dat was in the \Cumulus\data folder but that is easy to determine and establish if there was a way from one PC to another. And maybe there is....
Could you use CMX Dashboard > Settings > HTTP Files settings? I had used it just for testing when this was added to CMX by Mark a few years ago and that worked great to get a file from another user's website download to my PC.
--- Code: ---HTTP File Settings
HTTP Files
Enabled URL Destination Filename Download Interval Upload Enabled Timed Downloads Time of first download of the day Actions
https://some.site.com/someimage.png web/someimage.png 1 min 00:00 Save Settings
URL: This the url used to access your source file. This can be either a URL or <ecowittcameraurl>, in which case the latest Ecowitt web cam image will be downloaded (if available). URLs can contain web tags
Destination Filename: This the path and file name where you want your downloaded file to be saved.
This is either a path on your web server, or a local path where Cumulus is running - the Upload Enabled option controls which.
Download Interval: This a multiple of your web interval, or at the End of Day rollover
For example, if your web interval is 5 minutes and you select "x12", then the download will occur once an hour.
Upload Enabled: This controls if the file is just downloaded to the local file system, or it is then uploaded to your web site.
Timed Downloads: If this is disabled, then the file will be downloaded at the set interval, starting whenever Cumulus is started.
If you enable this option, then the downloads will start at First Download and repeat each interval
First Download: If timed uploads are enabled, then the first download of the day will occur at this time and repeat at each interval until the end of the day
--- End code ---
The difficulty I see is, what is the remote URL for the source file?
Enjoy,
Paul
davidmc36:
--- Quote from: PaulMy on April 11, 2025, 05:11:26 PM ---......
The difficulty I see is, what is the remote URL for the source file?
Enjoy,
Paul
--- End quote ---
I wonder if it could be as simple as IP address of the PC "slash" directory of the file? Have CMx fetch it there??
Navigation
[0] Message Index
[#] Next page
Go to full version