Author Topic: Weather Cam images with weather data included  (Read 3738 times)

0 Members and 1 Guest are viewing this topic.

Offline docbee

  • Moderator
  • Forecaster
  • *****
  • Posts: 666
    • smartbedded
Weather Cam images with weather data included
« on: October 13, 2013, 06:57:41 AM »
Meteobridge does support upload of weather camera images from Ubiquiti $100 IP Camera "AirCam" to Weather networks like WU and other places in the Internet.

Just released version 2.0 of Meteobridge does give additional options.
  • Instead of an AirCam in your LAN you can use any image for upload that can be accessed by an URL. This comes handy, when you already have a webcam that uploads an image via FTP to somewhere in the Internet. Meteobridge just needs the URL and to make use of it.
  • Meteobridge allows to place weather data as text into your weather cam image. This is done by uploading the image (local AirCam or remote URL) to the Meteobridge server and telling the server what kind of text overlay to add to the image. Overlays are defined in terms of Linux "convert" options and therefore you have total control of the look (text size, text color, coclor boxes, transpareny, image resizing) of resulting image. Meteobridge does provide some predefined overlay definitions to get you started with building your own. Attached you find an example of such a convert definition and what the result is.
  • Placement of current weather data into the image is done by using Meteobridge variables. That works exactly like when including weather data into HTML pages, emails or tweets.
  • Images that Meteobridge does upload to Meteobridge server and the converteed image contaiing weather data text are accessable as Internet URLs.

Definition of the overlay text used for generation of attached image:
-resize 852x480 -fill black -draw "fill-opacity 0.7 rectangle 0 460 852 480"
-pointsize 12 -fill orange -draw "text 5 475 '[YYYY]-[MM]-[DD] [hh]:[mm]'"
-fill white -draw "text 110 475 'Temp: [th0temp-act=F.1:--] F
    Humidity: [th0hum-act.0:--] %    Pressure: [thb0seapress-act=inhg.2:--] inHg
    Wind Chill: [wind0chill-act=F.1:--]F    Wind: [wind0avgwind-act=mph.1:--] mph
    Gust: [wind0wind-max5=mph.1:--] mph    Rain today: [rain0total-sumday=in.2:--] in'"


Current status on Metebridge feature development can be reviewed on this page:
http://meteobridge.com/wiki/index.php/Forum
founder of smartbedded.com - home of meteohub, meteoplug, meteobridge, meteostick

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 3208
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: Weather Cam images with weather data included
« Reply #1 on: October 13, 2013, 12:40:33 PM »
docbee,

Where does the "Meteobridge Weather Cam" actually upload to? It shows "success" in the live data page, but I don't know where it uploads to. Can you give some guidance on how I can view the image uploaded. I looked around on the Meteobridge forum and the support page, but I can't seem to find the location of the uploaded file.

Also, on the FTP page under "Push Services" I have it set to upload the fetched image from here http://www.miraculon.net/wxcam.jpg to http://www.miraculon.net/mb_wxcam.jpg. There is no text overlay showing on the mb_wcam.jpg being uploaded by Meteobridge. Will the FTP version to my own site include the overlay?

I selected the Imp. EN (AirCm 1.2) Template on the Weather Network page.

I think that this will be a really great addition to Meteobridge, if I can learn how to "drive" it.  :grin:

Greg


Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF

Offline miraculon

  • Sunrise Side Weather
  • Forecaster
  • *****
  • Posts: 3208
  • KE8DAF
    • Sunrise Side Weather in Rogers City MI USA
Re: Weather Cam images with weather data included
« Reply #2 on: October 13, 2013, 12:56:48 PM »
docbee,

Where does the "Meteobridge Weather Cam" actually upload to? It shows "success" in the live data page, but I don't know where it uploads to. Can you give some guidance on how I can view the image uploaded. I looked around on the Meteobridge forum and the support page, but I can't seem to find the location of the uploaded file.

Also, on the FTP page under "Push Services" I have it set to upload the fetched image from here http://www.miraculon.net/wxcam.jpg to http://www.miraculon.net/mb_wxcam.jpg. There is no text overlay showing on the mb_wcam.jpg being uploaded by Meteobridge. Will the FTP version to my own site include the overlay?

I selected the Imp. EN (AirCm 1.2) Template on the Weather Network page.

I think that this will be a really great addition to Meteobridge, if I can learn how to "drive" it.  :grin:

Greg


I think that I found it. I clicked the icon on the "Meteobridge Weather Camera" item +text and I found it. :oops:


Greg


Blitzortung Stations #706 and #1682
CoCoRaHS: MI-PI-1
CWOP: CW4114 and KE8DAF-13
WU: KMIROGER7
Amateur Radio Callsign: KE8DAF

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7029
    • Eagle Bay Weather
Re: Weather Cam images with weather data included
« Reply #3 on: October 13, 2013, 01:22:13 PM »
Frickin' awesome!  Thanks for the additional functionality.

Offline Aardvark

  • Forecaster
  • *****
  • Posts: 2039
  • www.desmoinesweather.org
    • Des Moines Iowa Weather and Climate
Re: Weather Cam images with weather data included
« Reply #4 on: October 13, 2013, 02:20:42 PM »
Weatherdisplay has a similar picture option with their software:


I can put any tag anywhere I choose
Davis VP2 Plus; 24h  FARS;  Soil Moisture/Temp Station;Weatherlink ;
https://www.desmoinesweather.org

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7029
    • Eagle Bay Weather
Re: Weather Cam images with weather data included
« Reply #5 on: October 13, 2013, 03:02:06 PM »
Yeah, so does my StarDot Netcam.  But that is not really relevant is it?

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7029
    • Eagle Bay Weather
Re: Weather Cam images with weather data included
« Reply #6 on: October 13, 2013, 03:03:40 PM »
Doc, that image processing syntax looks suspiciously like Imagemajick's.  Is it??

Offline docbee

  • Moderator
  • Forecaster
  • *****
  • Posts: 666
    • smartbedded
Re: Weather Cam images with weather data included
« Reply #7 on: October 13, 2013, 04:19:44 PM »
Yes, the program "convert" is part of the ImageMagick application stack and by that it blows all other home-brew alternatives on doing that with ease out of the water  :-P

I had to disable some functions in order not to compromise the server (i.e. direct writes to the file system, etc), but most of convert's power is there. I will post some more examples later on.


« Last Edit: October 13, 2013, 06:34:39 PM by docbee »
founder of smartbedded.com - home of meteohub, meteoplug, meteobridge, meteostick

Offline docbee

  • Moderator
  • Forecaster
  • *****
  • Posts: 666
    • smartbedded
Re: Weather Cam images with weather data included
« Reply #8 on: October 13, 2013, 06:34:56 PM »
Please fnd some examples here: http://meteobridge.com/wiki/index.php/Convert
founder of smartbedded.com - home of meteohub, meteoplug, meteobridge, meteostick

 

anything