Hi Mazufa,

My station uses a fork of NeoWX Material (www.360shetland/weather), I've 
added in loads of extras, and there's a couple of very good and reasonably 
active forks on Github: https://github.com/seehase/neowx-material.

To add in radar / webcam you can create inc files with iFrames then add 
them to the index.html.tmpl file were you want them. My Windy and satellite 
maps are called in the main page layout section between the #end for and 
the closing </div>:

## 
+-------------------------------------------------------------------------+
## | The main page layout                                                   
 |
## 
+-------------------------------------------------------------------------+

<!DOCTYPE html>
<html lang="$Extras.language">
<head>
  <title>
    $Extras.Translations[$Extras.language].current | $station.location
  </title>
  #include "head.inc"
</head>
<body class="${Extras.Appearance.mode}-theme main-bg" ontouchstart="">

#attr $active_nav = 'current'
#include "header.inc"
<main>
  <div class="container-fluid d-flex-xxl">
    <div class="row my-4 temprow align-content-start">

    <div class="col-12 mb-4 text-center">
        <h2 class="h2-responsive text-dark">Current Conditions</h2>
    </div>
      #for $x in $Extras.Appearance.values_order

      #if $x == "ET"
        #if $day.ET.has_data and $day.ET.sum.raw is not None and 
$day.ET.sum.raw > 0.0
          $valuesCard('ET')
        #end if
      #else
        $valuesCard($x)
      #end if

      #end for

## 
+-------------------------------------------------------------------------+
## | iFrame to display Windy.com forecast and wind map                     
  |
## 
+-------------------------------------------------------------------------+

  #include "forecast.inc"   <--- Add here
  #include "meteoblue.inc"  <--- Add here
  
</div>

The inc files are basic HTML as if it was included in the document, here's 
an iframe that you can insert your own source:

<div class="col-12 mb-4 text-center">
  <h2 class="h2-responsive text-dark">Your Heading</h2>
</div>
<iframe width="100%" height="650" style="padding:14px;border:2px;" 
src="Your iFrame source" frameborder="0" scrolling="NO" 
allowtransparency="true" sandbox="allow-same-origin allow-scripts 
allow-popups allow-popups-to-escape-sandbox" style="width: 100%; height: 
550px"></iframe>

<iframe width="100%" height="650" style="padding:14px;border:2px;" 
src="Your Source" frameborder="0" scrolling="NO" allowtransparency="true" 
sandbox="allow-same-origin allow-scripts allow-popups 
allow-popups-to-escape-sandbox" style="width: 100%; height: 550px"></iframe>

To localise your version add a [[[fi]]] section in the [[Translations]] 
section (use the existing languages as a guide), then set the language in 
the [Extras] section, language = fi

Hope this helps,

Rory

On Tuesday, December 12, 2023 at 3:31:07 AM UTC Mazufa wrote:

Hello!

Has anyone made an embedded rain radar and webcam for this neowx theme? 
Since there is extra space on the site, I would like to get a rain radar 
and a webcam on it. Could someone give me advice on the easiest way to do 
it and would someone have ready-made software? Then there would also be the 
question of how to get those metrics into Finnish? Like Barometer etc? I 
have changed the language of the Neowx condifuration file to Finnish, but 
only the ones in the upper corner, Nykyinen, Eilinen, Viikko, etc., changed 
to Finnish.

Thanks for help!

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/00aaa808-929c-4e7d-acd6-eecbde159ad0n%40googlegroups.com.

Reply via email to