You can access the weather page here or from the ‘Links‘ page in the S.A.R.A.H. Command Center (SCC). There are primarily two parts to the weather page: 1) The top most widget, which has a weather bug from Meteoblue and 2) the next widget down, which has the custom code for getting weather info directly from a third party – currently Darksky.net.
N.B. Please note that the third party widget will tend look broken until you update your info on the Maintenance page – ( see below )
To update the Meteoblue ‘frame’ widget, please go to this page on the Meteoblue site:
- Type in your city in the ‘Location search’ in the top left corner and click search button
- Configure the options on the page as needed
- Highlight and copy the src url code from the ‘HTML’ box at the bottom of the page – only the url between the double quotes in the ‘iframe src’ tag, like this…
<iframe src="https://www.meteoblue.com/en/weather/widget/three/seattle_united-states-of-america_5809844?geoloc=fixed&nocurrent=0&noforecast=0&days=7&tempunit=FAHRENHEIT&windunit=MILE_PER_HOUR&layout=image&location_url=https%3A%2F%2Fwww.meteoblue.com%2Fen%2Fweather%2Fwidget%2Fthree%2Fseattle_united-states-of-america_5809844&location_mainUrl=https%3A%2F%2Fwww.meteoblue.com%2Fen%2Fweather%2Fforecast%2Fthree%2Fseattle_united-states-of-america_5809844&nolocation_url=https%3A%2F%2Fwww.meteoblue.com%2Fen%2Fweather%2Fwidget%2Fthree&nolocation_mainUrl=https%3A%2F%2Fwww.meteoblue.com%2Fen%2Fweather%2Fforecast%2Fthree&dailywidth=115&tracking=%3Futm_source%3Dweather_widget%26utm_medium%3Dlinkus%26utm_content%3Dthree%26utm_campaign%3DWeather%252BWidget" frameborder="0" scrolling="NO" transparency="true"...>
Make sure you get only the url with all its parameters in the ‘src’ tag between the double quotes as in red above and not the further parameters in black. Above is an actual example.
Next, go back to the weather page:
- Hover over the ‘Weather’ title in the top left corner and click the pencil that appears
- Click the 3 vertical dots in the top right corner of the ‘frame’ widget you wish to change and click edit
- Paste the url you copied from Metoblue into the ‘URL’ field and click ‘Save’
- Click the ‘Run’ button in the top left corner and you should now see your city’s forecast
To update your third party weather provider for the ‘template’ widget, please visit darksky.net and sign up for a free account – no credit card needed. Next, please visit the SCC Maintenance page and enter your account api key and location information and click the ‘Save’ button. As always, after you make changes to the maintenance page, you must go to the SCC Home Wizard, load your home template and click the ‘Save’ button. This will generate and install all the necessary config files for your weather settings. You can now view your updated weather page.
Recent Topics
-
I upgraded or rebooted my RPi and now the sound doesn't work
By seeLive, 2 weeks ago
-
By seeLive, 2 weeks ago
-
Switches in BasicUI take two clicks to turn on/off
By seeLive, 4 weeks ago
-
Integrating your existing code into SARAH
By seeLive, 4 weeks ago