Page 1 of 2
meteocam suggestion HP10 Wittcam
Posted: Tue 31 Oct 2023 10:12 am
by Nossie
Hi Hans,
With the addition of support from cmx to include weathercams connected to the ecowitt site, it would be a welcome addition to include this as an option in cumulusutils. It's not a fantastic camera, but the data from ecowitt would offload a lot of the local management with things like montioneye etc and a template with the basic webtag would be quite cool.
Just a suggestion for the future anyway
Thanks.
Re: meteocam suggestion HP10 Wittcam
Posted: Tue 31 Oct 2023 11:32 am
by HansR
There is basic webcam support in CUtils for a HTTP-user readable directory and a single webcan image. Also recorded video (timelapses) can be shown. I did not look at the Ecowitt thing. If you have one, just tell me what you need and no doubt it can be implemented.
Re: meteocam suggestion HP10 Wittcam
Posted: Tue 31 Oct 2023 4:40 pm
by Nossie
It also makes available the URL of the latest camera on the Ecowitt cloud server via the new web tag <#EcowittCameraUrl>
You can use the tag <ecowittcameraurl> in the URL field of HTTP Files to download the latest image
So it would only download the latest image (the site keeps 7 days of timelapses) but it would be handy for those that have one.
From my understanding it would just be an include that had the tag above? that when you enabled in config would create a third default view
X Ecowitt X Meteocam X TimeLapse
Otherwise if not true the X Ecowitt just wouldn't appear? happy to test

Re: meteocam suggestion HP10 Wittcam
Posted: Tue 31 Oct 2023 5:10 pm
by HansR
I maybe could fetch the value of the WebcamUrl and the EcowittCameraUrl and use those as source for the image.
Timelapses are a bit more difficult as I now just take the mp4 files on the site and list those, for the user to select.
But we could start if you give me your EcowittCameraUrl / image url and then I'll see if and what I can do with it within the system as is.
I assume WebcamUrl and EcowittCameraUrl do not differ very much.
Is there login required?
Re: meteocam suggestion HP10 Wittcam
Posted: Tue 31 Oct 2023 6:17 pm
by Nossie
I don't think a login is required - my 3 devices are public
https://www.ecowitt.net/map/index <<< go here
Search Stewarton, East Ayrshire
top left you have 3 items, if you select the HP10 and then 2nd option select camera - does that give you access? I think from what Mark suggested the webtag should bring it through on the api though? at least the single last image.
Re: meteocam suggestion HP10 Wittcam
Posted: Tue 31 Oct 2023 7:24 pm
by HansR
A login IS required. I can't get to the map without being logged in.
So far OK. I am on the map and I see your station in green.
But no three devices left upper corner. The left upper corner looks like this:
Schermafbeelding 2023-10-31 200306.png
Nossie wrote: ↑Tue 31 Oct 2023 6:17 pm
top left you have 3 items, if you select the HP10 and then 2nd option select camera - does that give you access? I think from what Mark suggested the webtag should bring it through on the api though? at least the single last image.
Drop down above gives my own two devices (I am logged in on my account)
I see this:
Schermafbeelding 2023-10-31 200444.png
I see your dashboard (low battery on T/H CH1 btw) but can't see an HP10 entry / drop down or whatever. If I click on camera I get this:
Schermafbeelding 2023-10-31 201715.png
Clicking on the small photo which replaces your station green dot I get the Photo page and on each day I am able to select a photo (nice sharp wide angle btw). You want the last photo but this does not seem the route I need.
This is not a URL leading to an image. I need the HTML GET URL for your last image and that is something else.
Re: meteocam suggestion HP10 Wittcam
Posted: Tue 31 Oct 2023 7:46 pm
by Nossie
Hmmm so it's only shareable if you have an account? Seems pointless unless sharing with family
Are you sure you can't just put the web tag in a template and it will pull it through from the existing cmx ecowitt api? <#EcowittCameraUrl>
There is also this which I created - but I'd say it was just as useless
https://www.ecowitt.net/home/share?authorize=R2R7P5
Re: meteocam suggestion HP10 Wittcam
Posted: Tue 31 Oct 2023 7:52 pm
by mcrossley
Could you post the current result of #EcowittCameraUrl?
http://<cmx_ip>:8998/api/tags/process.json?EcowittCameraUrl
Re: meteocam suggestion HP10 Wittcam
Posted: Tue 31 Oct 2023 7:58 pm
by Nossie
It comes back as this currently -
This is because of the way the weather station is currently configured to CMX ... sorry I didn't think you were going to ask me hours after my post

Re: meteocam suggestion HP10 Wittcam
Posted: Tue 31 Oct 2023 8:04 pm
by Nossie
So just to confirm, do I setup the station as HTTP and then put the camera mac address in the cloud settings?
Re: meteocam suggestion HP10 Wittcam
Posted: Tue 31 Oct 2023 8:19 pm
by mcrossley
No, you go to ecowitt.net web site, open your profile and get (or generate if none are there), an API Key, and an Application Key.
You enter those plus your stations MAC into the cloud API settings in MX.
Re: meteocam suggestion HP10 Wittcam
Posted: Tue 31 Oct 2023 8:26 pm
by HansR
Nossie wrote: ↑Tue 31 Oct 2023 8:04 pm
So just to confirm, do I setup the station as HTTP and then put the camera mac address in the cloud settings?
I have no idea. As far as I understand there is an URL which returns the last image. That is I think what we are looking for.
I found (inspection of the image slider in the image page) that the image URL has the form of :
Code: Select all
https://osswww.ecowitt.net/images/webcam/v0/2023_10_31/106588/71d8f5fae44069d16c5f25c97bbb08c3.jpg
That is not something I can construct so it is really the HTTP GET we need. I can query that on interval (5 minutes?) which should return the last image.
They claim there exists a HTTP GET so...
Re: meteocam suggestion HP10 Wittcam
Posted: Tue 31 Oct 2023 8:32 pm
by HansR
It's not such an expensive device, I'll buy one and work from there...
So give it some time.
Re: meteocam suggestion HP10 Wittcam
Posted: Tue 31 Oct 2023 8:36 pm
by HansR
mcrossley wrote: ↑Tue 31 Oct 2023 7:52 pm
Could you post the current result of #EcowittCameraUrl?
http://<cmx_ip>:8998/api/tags/process.json?EcowittCameraUrl
And @Mark, are you suggesting with this question that the URL is set outside CMX?
And if so where should that be?
Re: meteocam suggestion HP10 Wittcam
Posted: Tue 31 Oct 2023 8:42 pm
by mcrossley
Ecowitt include it in the current data returned by the ecowitt.net API.