What are the values accepted for the virtual weather device like cloudy, clear ....
Is it 1, 2,3 or cloudy, clear....
So what are the these values to ask in a script ?
UV isn't working for now ?
thanks
Hi!
I have a virtual switch that I want to switch depending if it is more or less than 20% cloudy outside.
How do I do that?
// David
Found here:
http://www.wunderground.com/weather/api/d/docs?d=resources/phrase-glossary#current_condition_phrases
I hope thats right.
Found here:
http://www.wunderground.com/weather/api/d/docs?d=resources/phrase-glossary#current_condition_phrases
I hope thats right.
Has anybody figured out a solution to this?
The "cloudcover" value appears to be useless, because weather stations don't fill it in. I can't see anything matching these numbers here. "weatherDesc" can't be used because Zipabox can't handle strings (and they've removed it from the UI).
All I have been able to come up with is having IFTTT send a notification when the weather turns cloudy, but that's a pretty poor substitute, since it doesn't have any gradations of cloudiness. For my purposes, almost any amount of sun is worthwhile in winter for solar gain, so I only want to close the blinds when it's completely overcast.
Has anybody figured out a solution to this?
The "cloudcover" value appears to be useless, because weather stations don't fill it in. I can't see anything matching these numbers here. "weatherDesc" can't be used because Zipabox can't handle strings (and they've removed it from the UI).
All I have been able to come up with is having IFTTT send a notification when the weather turns cloudy, but that's a pretty poor substitute, since it doesn't have any gradations of cloudiness. For my purposes, almost any amount of sun is worthwhile in winter for solar gain, so I only want to close the blinds when it's completely overcast.
I'm actually not sure it's the weather stations that don't fill in "cloudcover". I think it might be the Zipabox that doesn't read it properly. My local weather station definitely records cloud cover percentages.
I have a sort-of solution for this. I've installed Llamalabs' Automate on my mobile phone (an Android app) and created a flow which reads the cloudiness into a variable, and then POSTs it to the Zipabox with a HTTP request.
First, add a weather block to the Automate flow. Cloud cover is the 4th parameter in the weather block. You need to write "cloudiness" or some other variable name directly into the field so that the number is stored in that variable.
Second, you create a virtual meter in the Zipabox and grab the URL needed to send a value to it.
Third, you add a HTTP Request block and paste the URL into the URL box. Add {cloudiness} (or whatever your variable name is in curly braces) to the end. Choose POST as the Request Method and JSON as the Request Content Type.
Fourth, use a Delay block to wait a certain time after each update (say, 30 minutes, 1 hour...).
Set the flow running and you should get the cloud cover in your Zipabox virtual meter.
I'm actually not sure it's the weather stations that don't fill in "cloudcover". I think it might be the Zipabox that doesn't read it properly. My local weather station definitely records cloud cover percentages.
I have a sort-of solution for this. I've installed Llamalabs' Automate on my mobile phone (an Android app) and created a flow which reads the cloudiness into a variable, and then POSTs it to the Zipabox with a HTTP request.
First, add a weather block to the Automate flow. Cloud cover is the 4th parameter in the weather block. You need to write "cloudiness" or some other variable name directly into the field so that the number is stored in that variable.
Second, you create a virtual meter in the Zipabox and grab the URL needed to send a value to it.
Third, you add a HTTP Request block and paste the URL into the URL box. Add {cloudiness} (or whatever your variable name is in curly braces) to the end. Choose POST as the Request Method and JSON as the Request Content Type.
Fourth, use a Delay block to wait a certain time after each update (say, 30 minutes, 1 hour...).
Set the flow running and you should get the cloud cover in your Zipabox virtual meter.
Automate is one of the few apps out there that gives access to this fine-grained cloud information. I haven't had time yet to check whether it's accurate.
Automate is one of the few apps out there that gives access to this fine-grained cloud information. I haven't had time yet to check whether it's accurate.
Hi,
I am sorry but I have not understand your explanations.
So, since you wrote this post, did you find a easier way to give the cloudcover?
I would like to open the shutters according to the cloud cover.
Thanks for yor answer.
Kind regards
Michel
Hi,
I am sorry but I have not understand your explanations.
So, since you wrote this post, did you find a easier way to give the cloudcover?
I would like to open the shutters according to the cloud cover.
Thanks for yor answer.
Kind regards
Michel
I have now several sources for cloud cover information, although I'm planning to install an Enocean light sensor which should be more reliable.
All the external cloud cover information is sent from external sources to virtual meters. The URLs of the virtual meter attributes allow you to update them from mobile phone apps, Google App Scripts, scripts running on your own web server, or whatever. If you look for Google App Scripts, weather or other keywords, you should find example code for Google App Scripts in some of my other posts. I currently send cloud cover information from DarkSky, Aeris and OpenWeatherMap to virtual meters via a Google App Script that runs every 10 minutes or so. You sign up for each API and then call it from your script, extract the information you want and send it to your virtual meters. Automate is a mobile phone app that allows you to create "flows", basically little programs, rather like Tasker. The flow that gets weather information runs in the background on my phone and sends updated info to a virtual meter every few minutes. I take an average of the cloud cover readings weighted by each sources reliability, calculated in a rule that also runs every 10 minutes. This is what I use to control my blinds. Complicated, yes, but it works. :-)
I can post a shot of the Automate flow if you like, and later if I have time maybe an updated Google App Script.
I have now several sources for cloud cover information, although I'm planning to install an Enocean light sensor which should be more reliable.
All the external cloud cover information is sent from external sources to virtual meters. The URLs of the virtual meter attributes allow you to update them from mobile phone apps, Google App Scripts, scripts running on your own web server, or whatever. If you look for Google App Scripts, weather or other keywords, you should find example code for Google App Scripts in some of my other posts. I currently send cloud cover information from DarkSky, Aeris and OpenWeatherMap to virtual meters via a Google App Script that runs every 10 minutes or so. You sign up for each API and then call it from your script, extract the information you want and send it to your virtual meters. Automate is a mobile phone app that allows you to create "flows", basically little programs, rather like Tasker. The flow that gets weather information runs in the background on my phone and sends updated info to a virtual meter every few minutes. I take an average of the cloud cover readings weighted by each sources reliability, calculated in a rule that also runs every 10 minutes. This is what I use to control my blinds. Complicated, yes, but it works. :-)
I can post a shot of the Automate flow if you like, and later if I have time maybe an updated Google App Script.
Hi,
Thanks for journée quick answer.
I understand yours words but not your sentences.
A long time ago, I wrote requests IFFT, but, right now, I have forgotten how to do it.
So, I'll do appreciate if you send me an example of a such script.
Kind regards
Michel
Hi,
Thanks for journée quick answer.
I understand yours words but not your sentences.
A long time ago, I wrote requests IFFT, but, right now, I have forgotten how to do it.
So, I'll do appreciate if you send me an example of a such script.
Kind regards
Michel
The icon of the Virtual Weather Station changes, depending on cloudiness. Is there no possibility to access that information via a rule? It would be so convenient...
The icon of the Virtual Weather Station changes, depending on cloudiness. Is there no possibility to access that information via a rule? It would be so convenient...
Hi,
I use this capabilitie to manage my roller-shutter.
Here is an extract of this rule.
You will find the entire list of icons on the Weather Underground site
BR
Michel
Hi,
I use this capabilitie to manage my roller-shutter.
Here is an extract of this rule.
You will find the entire list of icons on the Weather Underground site
BR
Michel
For details, here are the explanations:
If I am between sunrise et sunset and the temperature lower than 28°C
If the cloudiness is sunny, clear, partlycloudy, mostlycloudy, partlysunny or mostlysunny I open the roller. Else, I close it.
The only thing I can't do is to differate the operations 2 hours after the sunrise et before the sunset.
If you have any idea, I'll appreciate your help.
BR
For details, here are the explanations:
If I am between sunrise et sunset and the temperature lower than 28°C
If the cloudiness is sunny, clear, partlycloudy, mostlycloudy, partlysunny or mostlysunny I open the roller. Else, I close it.
The only thing I can't do is to differate the operations 2 hours after the sunrise et before the sunset.
If you have any idea, I'll appreciate your help.
BR
Last point, it will be more simple to have the "select case" instruction.
Last point, it will be more simple to have the "select case" instruction.
Michel, Can you re-phrase what you cannot do? There is (nearly) always a way.
Michel, Can you re-phrase what you cannot do? There is (nearly) always a way.
The only thing I can't do is to schedule the automation of the roller-shutter at a time range between 2 hours after sunrise and 2 hours before sunrise.
Is this more understandable?
The only thing I can't do is to schedule the automation of the roller-shutter at a time range between 2 hours after sunrise and 2 hours before sunrise.
Is this more understandable?
yes, it makes sense. the current scheduler is running at a repeat intervals?
Not sure if you are aware, but the scheduler can be set as Astro with offset of 2 hours. i guess your problem is that the above rule runs every let say 5 minutes. and you need another way to definitely trigger the rollers at -2 sunrise and +2 sunset.
the easiest approach is to duplicate the rule and use an astro triggered scheduler.
I also have seen another post where now the guys were using 2-3 schedulers in the when block combined with "Or" puzzle. you can try that as well.
yes, it makes sense. the current scheduler is running at a repeat intervals?
Not sure if you are aware, but the scheduler can be set as Astro with offset of 2 hours. i guess your problem is that the above rule runs every let say 5 minutes. and you need another way to definitely trigger the rollers at -2 sunrise and +2 sunset.
the easiest approach is to duplicate the rule and use an astro triggered scheduler.
I also have seen another post where now the guys were using 2-3 schedulers in the when block combined with "Or" puzzle. you can try that as well.
I modified the rule using 2 schedulers in the when block combined with an AND.
For each scheduler, the trigger is 1/2h with an Astro offset. The first one 2h after sunrise, the second one 1h30 before sunset.
It doesn't work.
It's not logical to use an OR because the condition will be always TRUE. Each 1/2h, it will be always between sunrise or sunset.
The other way, duplicate the rule whith 2 different triggers, is no so smart. I'd prefer to have just one rule.
If you have an idea to help me, thank you.
I modified the rule using 2 schedulers in the when block combined with an AND.
For each scheduler, the trigger is 1/2h with an Astro offset. The first one 2h after sunrise, the second one 1h30 before sunset.
It doesn't work.
It's not logical to use an OR because the condition will be always TRUE. Each 1/2h, it will be always between sunrise or sunset.
The other way, duplicate the rule whith 2 different triggers, is no so smart. I'd prefer to have just one rule.
If you have an idea to help me, thank you.
Replies have been locked on this page!