Webcam integration, lightning, earthquakes questions

First off thanks for the help, I’ve have implemented some fixes on my pwsdashboard website doing searches and the green solved box has been very helpful for working fixes.

my website is

I am currently using two local turnpike cameras for my “local sky conditions” I have some IP cams that I use here, and I can connect to them and I have web address for an picture that every time you refresh the URL it gives you a jpg of the camera. I attempted to add this URL to the easyweather without much luck.

The ULR I am using is http://URLofcamera/cgi-bin/snapshot.cgi?stream=0

I am not having any luck, am I going about this wrong, I thought a Jpg is what you are supposed to use?

Another question I have is I see on some of other folk’s weather websites where the weather alerts would go if there was not alert you get a simple one sentence weather forecast, how do I go about adding that?

The other question is I see earthquakes and lightning detection? can anyone point me to some documentation on that? I do not have a lighting detector; I’m hoping this can be pulled from a website?

The URL you use for the “turnpike cameras”
https://www.maineturnpike.com/cameras/video12.jpg
is a real internet address, reachable by all vusitors from outside your home

The url for your home webcam has two flaws

  1. It probably is a local IP address only usable inside your own home
  2. it uses http and that will give conflicts / messages for your visitors as your website uses https

You should

  1. either upload the picture to your website, most camara’s can do that.
  2. or use a " Dynamic DNS" account, and make the camera reachable from the internet.

That can only be shown if there is a 1 hour forecast available.
You are using the yr.n/met.no weather-forecast data for your website and they do not have detailed 1 hour forecasts.

No, for the lightning block to show for your area the number of lightnings and distances you need a local device. The least expensive one is a small ecowitt setup for that.
It runs fully independent from your main weather-station and you can add 1 Lightning and multiple AirQuality sensors.

For the earthquakes you have to use PWS_easyweathersetup and select the earthquake block, either the small one in the top-row or the normal one.

Succes,
Wim

#COUNTED 3 questions answered

I checked your earthquakes data-files.

You are using a previous version of the script

PWS_quakes_load.php|01|2021-04-21|

That version loads the data from a now obsolete data source.


The latest version distributed in the downloads is

PWS_quakes_load.php|01|2023-10-31|

Please run PWS_updates.php to download all updates since you first downloaded the dashboard scripts.

Wim

OK in regard to the update, I just ran that, and things are fixed there.

Thank you, that all worked.

I’m still working on your first response. I have plan in place I just need to formulate a response to you.

On question 1 about the cameras I have a plan…

Understood. I have a plan for this. My camera can upload to my web host FTP server. The problem is. It writes a new file name with a time stamped naming convention. So, I am going to write a php script to change the name of the latest file to something standardized, and every time it uploads a new file standardized name overwrite the old one every time. Then after a certain period of time delete files so I don’t overload my web host.

Question 2 about one hour forecast I will work on during the course of the week.

Question 3 I have a plan to buy some equipment, and I got earthquakes figured out.

Thank you