[OBSOLETE] Smart Weather Station Tile Device

Is it possible to have multiple instances of the ‘SmartWeather Station Tile’?

weatherunderground not working anymore?

6:52:43 PM: warn No response from Weather Underground API

How does one change from Deg F to Deg Celcius ?
Sorry if this question has been asked already (i just couldn’t find the answer)

The only way to change is to choose at the Location level.

Go to the IDE, you will find this flag in Location properties.

Where does a V2 user find Smart Weather station or its code? I can’t find it.

@zosobao I think you’ll need to look in the IDE (I assume it doesn’t matter which version of the hub you have).
I’m pretty sure that’s how I installed mine.

IDE
–My Devices
----New Device
------Type: SmartWeather Station Tile

Also, since it doesn’t seem to update (or not very frequently enough), you might want to check out @RBoy’s controller app too…

1 Like

I finally figured out how to install the SmartWeather tile using the IDE site. And in my locations settings I can set temperature to Celcius, but wind speed displays in mph instead of kilometres per hour. How do I change that?

What’s a kilometer [says the american] lol

Seriously though, I’m not sure. I looked around a bit, but haven’t found anything for that.

You can’t, it’s hard-coded.

I have always used the smartweather device type.
My location is set in Celsius and my smart weather has always been that way.
A few minutes ago I was playing with the smart app Speaker Weather Forecast to have a button on the dashboard to tell me the weather forecast. It works great but now the temperature of the smart weather has been turned into F°, how is this possible?
I have done nothing and all other tiles in the dashboard are in C (and my location too)

That doesn’t sound like very good programming technique, speaking as a non-developer.

1 Like

Don’t even open that door!

2 Likes

There is a built-in device type to start from. In the IDE when creating a device you just have to scroll down to the entry for SmartWeather Tile in the device type list.

Then you set the ZIP code or PWS:stationID (from weather underground) in the mobile app and hit the refresh tile. However, it will NOT refresh on its own…

It has been stated in other places that the SmartWeather Station Controller doesn’t work in v2 hub - I haven’t tried it so this is UNCONFIRMED by me. To make it refresh on its own you need to use a SmartApp called Pollster. This will periodically call and get new data. Search in the community here for the latest version and how to install it.

A slight wrinkle here is that Pollster doesn’t work with this device type, as is. You need to make a local version of the device type, using the original as a template, and then add the Polling capability. The IDE has a way to create a new device type from a template, however, the new device type has the same name but is located at the bottom of the device type list - need to make sure that you pick the new/local device type when creating a device.

Why someone would create a weather tile device type and not have it out of the box support polling is a good question… At least it is fairly easy to add and I appreciate that someone did 99.9999% of the work.

1 Like

Hi

I’m getting this exact error as well… Do you recall how you fixed this?

Disclosure: I had the V2 code successfully installed at one time & then deleted it… Now I want to add it back again, and it fails.

Thanks in advance
J

There are 2 different components - One is a SmartApp and one is a SmartDevice. Looks like you may have mixed it up.

Thanks @RBoy. You pointed me in the right direction. I had to add it as a New Device Handler first…

Thanks
J

1 Like

I wrote (or probably copied and modified) a very simple smart app that uses events to update the weather tile. I’ve tried to change all my smart apps to use events rather than schedules, due to the ongoing issues with scheduled events not running reliably.

I chose temperature as the capability to subscribe to, as most of my sensors have temperature capability. Every change will refresh the weather tile. So far it’s been much more reliable than just relying on the weather tile updates.

/** * Manual Weather Refresh * * Copyright 2015 Daniel Vorster * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License * for the specific language governing permissions and limitations under the License. * */ definition( name: "Weather Updater", namespace: "dpvorster", author: "Daniel Vorster", description: "Refreshes weather tile", category: "Convenience", iconUrl: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience.png", iconX2Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png", iconX3Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png" )

section {
input “devices”, “capability.temperatureMeasurement”, title: “When these devices sends events”, multiple: true, required: true
input “weather”, “device.smartweatherStationTile”, title: “Update this weather device:”, reguired: true
}

def installed() {
log.debug “Installed with settings: ${settings}”
initialize()
}

def updated() {
log.debug “Updated with settings: ${settings}”
unsubscribe()
initialize()
}

def initialize() {
subscribe(devices, “temperature”, appHandler)
weather.refresh()
}

def appHandler(evt) {
weather.refresh()
}

3 Likes

Ahhh… I get it. Instead of using using either of the commonly mentioned ways (pollster and smart weather control) you just subscribe to several things that report temperature often and depend upon the weather changing… :). Neat idea that I hadn’t seen mentioned anywhere before.

Polling hasn’t been unreliable for me, that I’ve noticed, but this is pretty slick.

Good choice of “last name” - 999 -, by the way!

1 Like

This seems like a cool way of doing it.
I currently have RBoy’s controller app refreshing my Weather Tile every 5 minutes.
Now (since I’m dense), can you explain what is better about your method?

I don’t have an opinion, one way or another yet, and I just want to figure out which way would make more sense in my case.

I don’t think that it’s better or worse than any other solution. I haven’t seen RBoy’s code, so not sure how it works. When I started with the platform, I wrote a few smart apps that used schedule() or runin(), but these apps invariably failed to run when the platform “forgot” about the scheduled jobs. This app uses events, and, like the other apps that I’ve rewritten to use events, seem to be rock solid. So I guess it would be accurate to say that I prefer subscribing to events vs relying on scheduling jobs on the current platform.