Hi
I am trying to stream video from my raspberry pi to my weather website using PWS I can see my camera output on 192.xxx.x.xxx:7132/index.html but I dont have any idea how to get this to show in PWS . I have tried various things like putting the URL into Settings and also adding it to webcam_c_block.php but I am obviously doing something wrong as its not working
Can someone give me an example of how I can get this to work
Many Thanks
Graham Woolf
Hi woolfg,
It is not clear to me if you are talking about PWSdashboard or PWSweather as you posted in chatter.
But if you want to upload a webcam PHOTO and not a movie/video maybe this topic How to get a HP10 webcam photo on my website - #3 by pwsdashboard can help.
It uses the specific HP-10 url, but the same logic applies for any local webcam image to be uploaded to a webserver.
If you are referring to a webcam video stream you can open a port on your router and the video can be accessed from the internet.
Your local http://192.xxx.x.xxx:7132/index.html
would than be http://111.222.333.444:7132/index.html
and one can test that in the browser.
After that there are scripts available to display that video on a website.
There can be only one visitor at the same time.
So it is not a professional solution.
There are video-providers which will read your video stream and multiplex it to multiple users at the same time.
Those are not free solutions, they cost money and are often not allowed to be used on ones own website.
Succes,
Wim
Hi Wim
Thanks for getting back to me and apologies if I posted to the wrong group
It is PWSDashboard that I am having the problem
I have always had a still image from the camera displayed on my weather website but I thought it would be cool to stream the live video
I have PWSDashboard and the camera hosted on the same Raspberry Pi
I can see the live video stream in my browser but the problem is I dont know how to get the video to display in PWSDashboad
I know I have to modify webcam_c_block.php in some way but my programming skills arent up to working out how i get the video link into the file so any help would be very welcome
Warm Wishes
Graham
Hi Graham,
Fairly difficult to guess what you want if there is no website to visit.
No URL in your post and no URL in your avatar.
Probably a private website, no vistors other than yourself?
There is no need to modify the webcam block as long as it is the first one.
Put the link into your easyweather settings and it should work as it is with other users. It also depends on the type of stream a.s.o. if it is compatible to be run in an iFrame. If your website is reachable from the internet I could test it.
Succes,
Wim
Hi Wim
Thanks for the reply
My website is here and should be visible from outside
http://ringwoodweather.ddns.net:8000/Weatherflow/index.php
As you can see I have a webcam still image displayed at the moment and I would like to put the live stream there instead
the live stream is here
http://ringwoodweather.ddns.net:8001/index.html
Thanks so much for the help
Warm Wishes
Graham
You should enter this link into easyweather setup or in the block
http://ringwoodweather.ddns.net:8001/stream.mjpg
That is an “image” which can be displayed.
The html you posted is a “page” including some text
That can not be displayed in an html IMG tag…
ALSO change line 3 in webcam_c_block.php|01|2020-12-02
$add_timestamp = false;
Adding a timestamp kills the movie.
Sadly I am packing so not much time to test myself.
After the 17th I am back and will test.
Wim
Hi Wim
Thanks very much I will try that
Hope you have a good holiday
Warm Wishes
Graham
Hi Wim
Just to let you know the small image now works thanks
However if I click on the video to enlarge - nothing happens
Its not a big issue and can wait until you get back
Warm Wishes
Graham
Iine 107 in image_popup.php|01|2022-11-22| now reads
$pop_img[$n][‘url’] = $mywebcamimg.$extra_cam;
Change that to
$pop_img[$n][‘url’] = $mywebcamimg;
This removes a timestamp which forces static images to be refreshed.
But your dynamic image / stream does not need it nor understands it.
Then it should / could work.
Wim