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

webcam battery or solar powered

Discussion of the Cumulusutils tool and website generator.

Moderator: HansR

Nossie
Posts: 424
Joined: Tue 16 Aug 2022 8:01 pm
Weather Station: Ecowitt 2551
Operating System: Raspberry Pi5 Debian Bookworm
Location: Stewarton, East Ayrshire UK
Contact:

Re: webcam battery or solar powered

Post by Nossie »

Alex

As Hans said, with the HP10 you just need to have the config set and it added to your ecowitt account, you shouldn't need to mess with any webfiles.

Also note that neither mine nor Hans webcams have updated since early morning on the 17th so something may have broke.

I wouldn't waste anymore time on debugging until Hans has had a look at it later
Ian.

http://www.StewartonWeather.com
Containerised Cumulus[MX] 4.2.1 (build: 4040) ● CumulusUtils Version 7.1.1● Ecowitt 2551/WH65/T&HP/WH57/WH45/3x WH51 ● Pi 5 8GB ● Debian Bookworm ● Ubuntu Server Host
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: webcam battery or solar powered

Post by HansR »

@Alex,
@Nossie
@water01: Thanks for helping out while I was away.

The thing is: just before I left the HP10/CMX system failed. And now I am back I see it has recovered and is functioning as it should (on m y site).

So, please could you give me an update of how it is functioning on your site? From what I see it does not yet for Alex, and neither does it for Ian: Alex's meteocam image is more than a day old, Ian's image is more than an hour old. Did you activate it anew?

The image should refresh at the realtime refresh rate for the charts which you define in the parameter CumulusRealTimeInterval (section Website) which has a default of 15 minutes.

THe image itself gets a new link from CMX I believe every 10 minutes. CMX is in charge here as it asks the link to the image at Ecowitt. That URL changes with every new image Ecowitt puts in the archive. We have no influence on it.

Could you inform me of how it is performing with your site?

EDIT: I believe Ian's meteocam is working as expected.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
alexvanuxem
Posts: 87
Joined: Thu 11 Mar 2021 3:41 pm
Weather Station: Davis Vntage Pro 2 Plus
Operating System: windows 10

Re: webcam battery or solar powered

Post by alexvanuxem »

Hi Hans,

Thanks for reply.

I will check when I'm back at home from work.

The image you see now at https://www.sint-katelijne-waver-meteo.be/Cutils/ is there because I looked up the url manually myself in meteocamrealtime.txt and uploaded it manually to the site.

But until then I have 2 questions: (forgive me for my stupidity :-) in this ).
- the wiki says : 'If the user specifies this type he only has to configure the file utils/meteocamrealtime.txt (generated by CUtils) through Extra Webfiles in CMX', but as I understood in the previous posts I do need to process and upload this file through ExtraWebfiles, correct?

- you say :'The image should refresh at the realtime refresh rate for the charts which you define in the parameter CumulusRealTimeInterval (section Website) which has a default of 15 minutes.' My CumulusRealTimeInterval is 1 min, so that's fine I guess. By 'charts' you mean the daily charts on the homepage correct? Those are updated indeed every minute? Or do you mean the graphs tab (rain, wind, ...-, those are updated at roll over through a bat file i run at midnight. I now see that that the batfile should probably be updated for version 7.

Thank you!

alex
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: webcam battery or solar powered

Post by HansR »

alexvanuxem wrote: Mon 20 Jan 2025 3:00 pm I will check when I'm back at home from work.

The image you see now at https://www.sint-katelijne-waver-meteo.be/Cutils/ is there because I looked up the url manually myself in meteocamrealtime.txt and uploaded it manually to the site.
OK
alexvanuxem wrote: Mon 20 Jan 2025 3:00 pm But until then I have 2 questions: (forgive me for my stupidity :-) in this ).
- the wiki says : 'If the user specifies this type he only has to configure the file utils/meteocamrealtime.txt (generated by CUtils) through Extra Webfiles in CMX', but as I understood in the previous posts I do need to process and upload this file through ExtraWebfiles, correct?
Yes, you make an entry like below
Schermafbeelding 2025-01-20 172333.png
(you may have to add/modify your server path, I assumed the path to the server empty)
alexvanuxem wrote: Mon 20 Jan 2025 3:00 pm - you say :'The image should refresh at the realtime refresh rate for the charts which you define in the parameter CumulusRealTimeInterval (section Website) which has a default of 15 minutes.' My CumulusRealTimeInterval is 1 min, so that's fine I guess.
The datafiles by CMX do not update every minute so that is way too high a frequency. I would take 10 minutes.
alexvanuxem wrote: Mon 20 Jan 2025 3:00 pm By 'charts' you mean the daily charts on the homepage correct? Those are updated indeed every minute? Or do you mean the graphs tab (rain, wind, ...-, those are updated at roll over through a bat file i run at midnight. I now see that that the batfile should probably be updated for version 7.
By charts I mean all charts which use the realtime data (temperature, Overview etc...). There is no use to update the charts every 10 minutes if the data only updates once per day. So DAILY and ALL charts do not automatically update.

But OK, we are talking here about the meteocam image shown in the website. And that image is only updated once per x minutes where x is defined by the CumulusRealTimeInterval. And please note: a one minute frequency does not fetch a new URL for the image. CMX only refreshes the URL I believe once per 10 minutes. That is another argument to use 10 minutes as the configured frequency.
You do not have the required permissions to view the files attached to this post.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
alexvanuxem
Posts: 87
Joined: Thu 11 Mar 2021 3:41 pm
Weather Station: Davis Vntage Pro 2 Plus
Operating System: windows 10

Re: webcam battery or solar powered

Post by alexvanuxem »

HI Hans,

Again thx for your time.

Update: I have a Davis WLL that's my main station, a GW1000 for lightning, and now a Ecowitt HP10.

so 2 mac adresses for ecowitt that a use as a second station for extra sensors.

can i set 32 mac's? because if i set the mac for the lightning, I get lightning data and for the hp10 now I get:

2025-01-20 18:55:29.914 API.GetCurrentData: Ecowitt API Current Response code: 200
2025-01-20 18:55:29.915 API.GetCurrentData: Ecowitt API Current Response: {"code":0,"msg":"success","time":"1737395729","data":{"camera":{"photo":{"time":"1737395655","url":"https:\/\/osswww.ecowitt.net\/images\/webcam\/v0\/2025_01_20\/231118\/3b7bfa3085ac241c99211eca69c4ac39.jpg"}}}}
2025-01-20 18:55:29.915 API.GetCurrentData: Exception: Object reference not set to an instance of an object.
2025-01-20 18:55:29.915 EcowittCloud: No new data to process
2025-01-20 18:55:29.915 EcowittCloud: Waiting 10 seconds before next update

so now I get an url for the latest photo.
But if i copy that I get an error there are too many \/ in the url, if removed to only / i can acces the url

but :

2025-01-20 18:56:02.511 FTP[Int]: Uploading Extra web file: C:\CumulusMX\utils\meteocamrealtime.txt
2025-01-20 18:56:02.511 FTP[Int]: Processing Extra web file: C:\CumulusMX\utils\meteocamrealtime.txt
2025-01-20 18:56:02.511 FTP[Int]: The data is empty - skipping upload of wwwroot/Cutils/meteocamrealtime.txt

and http://<cmx_ip>:8998/api/tags/process.json?EcowittCameraUrl

returns :EcowittCameraUrl ""

thank you!
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: webcam battery or solar powered

Post by HansR »

Access to the camera URL does not go through the mac but through the API keys.

CMX fetches the HP10 image URL through ecowitt.net and accesses your account with the parameters you configured (somewhere, I don't know exact because you use the GW1000 as an extra sensors station which I do not). If you did not, then that is the cause of malfunction. Don't look at the mac addresses, just configure your account on ecowitt.net and get the EcowittAppKey and EcowittUserKey for the Ecowitt Cloud Access API. If you see the webcam on ecowitt.net and you did configure the API keys then I think you are all set.

If it is not exactly as I write above, please ask Mark because the extra sensor GW1000 may be configured a bit differently from a main ecowitt station.
But make sure you get the Ecowitt API keys and you do get/set those in yoyr ecowitt.net profile.

Yes the camera is a separate device but it can be accessed by CMX with the API keys.
Don't start fiddling with the MAC addresses.

@Mark: is the above correct and do you have anything to add?
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: webcam battery or solar powered

Post by HansR »

HansR wrote:
HansR wrote: Mon 20 Jan 2025 4:37 pm quote=alexvanuxem post_id=188402 time=1737385250 user_id=21199]
- you say :'The image should refresh at the realtime refresh rate for the charts which you define in the parameter CumulusRealTimeInterval (section Website) which has a default of 15 minutes.' My CumulusRealTimeInterval is 1 min, so that's fine I guess.
The datafiles by CMX do not update every minute so that is way too high a frequency. I would take 10 minutes.
My Bad: this is the realtime interval for the update of the dashboard data so 1 min is OK (I use 30 secs)
The charts are updated on the Normal Interval Settings configured in the Upload settings in CMX.

Sorry for the confusion.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
Nossie
Posts: 424
Joined: Tue 16 Aug 2022 8:01 pm
Weather Station: Ecowitt 2551
Operating System: Raspberry Pi5 Debian Bookworm
Location: Stewarton, East Ayrshire UK
Contact:

Re: webcam battery or solar powered

Post by Nossie »

Just to confirm Hans, mine seemed to come back alive on it's own also - I never did anything :)
Ian.

http://www.StewartonWeather.com
Containerised Cumulus[MX] 4.2.1 (build: 4040) ● CumulusUtils Version 7.1.1● Ecowitt 2551/WH65/T&HP/WH57/WH45/3x WH51 ● Pi 5 8GB ● Debian Bookworm ● Ubuntu Server Host
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: webcam battery or solar powered

Post by HansR »

Nossie wrote: Mon 20 Jan 2025 9:13 pm Just to confirm Hans, mine seemed to come back alive on it's own also - I never did anything :)
Yes, must have been something on Ecowitt's side.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
alexvanuxem
Posts: 87
Joined: Thu 11 Mar 2021 3:41 pm
Weather Station: Davis Vntage Pro 2 Plus
Operating System: windows 10

Re: webcam battery or solar powered

Post by alexvanuxem »

Hi Hans,

thank you for ypur reply.

I definitely need the mac.
Only with I get respons from ecowitt cloud .
What confuses me is the \/ in the url , that should not be there?


Ecowitt URL = https://api.ecowitt.net/api/v3/device/r ... l_back=all
2025-01-20 22:31:02.476 API.GetCurrentData: Ecowitt API Current Response code: 200
2025-01-20 22:31:02.476 API.GetCurrentData: Ecowitt API Current Response: {"code":0,"msg":"success","time":"1737408661","data":{"camera":{"photo":{"time":"1737408555","url":"https:\/\/osswww.ecowitt.net\/images\/webcam\/v0\/2025_01_20\/231118\/ebcef03d3342d5ffec9f9caf61d6644d.jpg"}}}}
2025-01-20 22:31:02.476 API.GetCurrentData: Exception: Object reference not set to an instance of an object.
2025-01-20 22:31:02.476 EcowittCloud: No new data to process
2025-01-20 22:31:02.476 EcowittCloud: Waiting 10 seconds before next update

And the API.GetCurrentData: Exception: Object reference not set to an instance of an object. error???

Also the '&temp_unitid=1&pressure_unitid=3&wind_speed_unitid=7&rainfall_unitid=12' note is strange to me.
But if i put that url in a browser it comes out nicely.

thx

alex
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: webcam battery or solar powered

Post by HansR »

alexvanuxem wrote: Mon 20 Jan 2025 9:51 pm Hi Hans,

thank you for ypur reply.

I definitely need the mac.
Only with I get respons from ecowitt cloud .
What confuses me is the \/ in the url , that should not be there?


[...]
With the HP10 you should not have to do anything with MAC or URL. Just configure your HP10 so it appears on the Ecowitt.net. Then configure your extra web file and wait for the magic to happen: the URL is fetched by CMX periodically by the extra web file procedure and uploaded. Then the runtime system of the website handles the URL. It works fine with Ian and me so I wonder what your problem is. Maybe you should just wait some 10 or 15 minutes for the image to refresh. But it should show and you should only configure. Nothing more. Note that Ecowitt does NOT store an image every second so CMX can't fetch an URL (image) faster than it does. There is no way to stream the HP10 afaik.

Anyway, I asked Mark to look at this thread especially for the API keys and how the HP10/URL is found.
It is CMX which provides the URL and so far it works for Ian and me.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
mcrossley
Posts: 14382
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: webcam battery or solar powered

Post by mcrossley »

CMX is expecting some weather sensors to be present on the extra sensor station. Yours only seems to have a camera...

Code: Select all

"data":{
    "camera":{
        "photo"{
            "time":"1737408555",
            "url":"https:\/\/osswww.ecowitt.net\/images\/webcam\/v0\/2025_01_20\/231118\/ebcef03d3342d5ffec9f9caf61d6644d.jpg"
        }
}
Cumulus cannot cope with that, it is expecting a weather station to be attached and reads the datetime of the data from those sensors right at the start. It is this that is failing.
User avatar
mcrossley
Posts: 14382
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: webcam battery or solar powered

Post by mcrossley »

However, the web tag for the camera URL should query the Ecowitt API on demand. Do you have the camera enabled in the Extra Sensor settings?
User avatar
mcrossley
Posts: 14382
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: webcam battery or solar powered

Post by mcrossley »

And we find the problem, the camera option does not show up in the list of sensors to enable in Extra Sensors unless you are using the Cloud Station :bash:

Please copy the files attached into your /interface/json folder and then enable the camera in the Extra Sensor settings page.
You do not have the required permissions to view the files attached to this post.
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: webcam battery or solar powered

Post by HansR »

@Mark: Right. Never thought of the Cam as an Extra Sensor but OK, that's what it is.

@Alex, please let me know the progress.

Edit: NB - the interface works correctly for me (but I only use a main station of Ecowitt so can't check on the camera working).
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
Post Reply