Ill have to test it out again.[quote=“schapper05, post:1, topic:38202, full:true”]
Yongfeng_Zhang:
Hi, since I see a lot of people being not clear about how the device works, I’d like to briefly explain it here.
The device takes a picture and does the other measurements about every 5 minutes. It then uploads the image along with the data to our server. It will stop uploading pictures at night, but the other data won’t stop updating. It’s 24 hrs a day, 7 days/week. If you call the API at night, the image URL will be the last one taken before dark.
We define ‘night’ as half an hour past sunset. We don’t use the luminance sensor to tell it. We calculate the sunset and sunrise time with the lat, lon, utc and dst of the device. So the device stops updating pictures half and hour after sunset, and restarts it half an hour before sunrise. The time-lapse video will be generated about 45 minutes after sunset.
And the luminance sensor is very direction-sensitive. The hole that lets the light in is small. So if you want to use the data in a sensible way, you need to adjust the direction to avoid direct sunlight, reflections, moonlight etc. The luminance sensor is located right to the camera, or left. For this reason, we didn’t show the data in the app, it’s more a reference. Remember that the camera, LUX sensor and UV sensor as whole is adjustable. You can move it up and down.
And a couple of articles about setting up devices:
https://bloomsky.desk.com/customer/en/portal/articles/2320558-i-set-up-my-device-but-it-shows-as-offline
https://bloomsky.desk.com/customer/en/portal/articles/2320512-"sorry-your-bloomsky-has-failed-to-connect-correctly-would-you-like-to-try-again-"-error-message
To minimize clutter, If you would like to share your weather ID information please use this link. Thank you!
You can still apply for a free Bloomsky(costs shipping ~$20ish) here. “Apply by Wednesday, February 17th at 11:59pm PST to qualify.”
@Slagle Has been kind enough to offer the following Device type and smart app:
Short Instructions:
After correctly adding Bloomsky (Connect) app in mobile, Smartapp should create a device.
Service Manager(Bloomsky (Connect) )!!!
Now all you have to do is install the service manager and you’re good to go! You will not need the “Scheduler” app anymore either, it’s done within the service manager.
This should work for multiple devices too. Don’t have multiple devices so I can’t test that, so don’t castrate me if it doesn’t work.
Make sure to uninstall the old device before copying in the new DTH code.
The service manager(Bloomsky (Connect) ) sets all the correct info for the device. No need to do anything other than hit done within the connect app .(Bloomsky (Connect) should add a device in your list.)
If you changed anything in the IDE for the device is recommend uninstalling and reinstalling.
/**
* BloomSky (Connect)
*
* Version History:
*
* 1.0 - 01/25/2017 - Storm Integration Testing
* 0.2 - remove logging option. Just log all the time. It's all good.
* 0.1 - Initial Version
*
* Copyright 2016 Tim Slagle
*
* 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.
*
This file has been truncated. show original
Long Instructions on Installation after adding the Bloomsky (Connect) Smartapp and Bloomsky Device Type in the IDE:
Thanks for the in-depth write up @keltymd ! All bolds below are emphasis by me, Italics are my comments.
keltymd:
In your web browser go to http://dashboard.bloomsky.com
Log in with your email address and password you used to register with Bloomsky
Click Developers at the bottom of the left had column
Copy your API key . (I Swear I entered my api key correctly like 3 times as soon as I emailed myself a copy and copy pasted it went through…)
I recommend you email the API key (can’t emphasize this enough, it’s the most likely spot of failure) to an email address on your smartphone so you can paste it in the next steps to prevent Fat fingering it.
In the Smartthings app on your smartphone click Marketplace and scroll to the bottom of SmartApps
Click
Find BloomSky (Connect) and select it
Paste or type (careful with this it’s case sensitive) your API in the API field and click Done
After this step the Bloomsky (Connect) App should create a device found on your network. The name wil be Bloomsky***** with the stars being randomly generated characters.
Please see the FAQ for using custom code by @JDRoberts
The original FAQ information in this thread refers to the original smartthings architecture, which was in place through the end of 2022 and a little beyond. Custom code was written in the groovy programming language and ran in the smartthings cloud.
As of May 2023, you can no longer add new Groovy DTH‘s or smartapps to your smartthings account. So if you came here because of a link in an old forum thread, or on another site, I’m afraid the Groovy information is no longer usable.
All of this was replaced by a new architecture. Cloud to cloud integrations use the smartthings API. Hub connected devices, mostly Zigbee and zwave, now use “Edge Drivers,” written in the LUA programming language. Here’s the official announcement on those:
The process for using a custom Edge Driver in the new …
GitHub FAQ:
I couldn’t find a good/in-depth FAQ for a GitHub How to with ST so here goes:
If you’re looking for uk integration:
Please, I am by no means an Expert, If you find an error or see something that I should change let me know and I will update it.
Log into the IDE @ https://account.smartthings.com
Enable and Link your GitHub Account: Section taken from Smartthings developer docs
Step 1 - Enable GitHub Integration
Click the Enable GitHub Integration link on the My SmartApps or My Device >Types page. This will launch a wizard that will guide you through the process.
[image]
Step 2 - Connect your GitHub Account to SmartThings
On Step 1 of the wizard, follow the instructions to authorize SmartThings to integrate >with your GitHub account. Click the Next button after you have done t…
zj4x4:
Add his GitHub to your IDE, then all you have to do is click:
Followed by:
Here are the settings you need for Tim’s repository:
Continuing the discussion from Bloomsky Weather Station :
@Natec @brianjlambert @schapper05 @cdmobile @Turb02 @slagle
Any chance anybody would be willing to help me work through this? I followed the instructions quoted above, but it’s not working all the way through. So, I’m kind of stuck.
I now have a new (for me, second; the other one is for something else) station in my WU-PWS account.
I have a camera listed under ‘Your Current Cameras’.
However, the camera entry’s ‘source link’ field is blank, because I’m not sure what to do next.
If I go in to edit the camera, at the point where I choose a station to associate it with, I only see my old, original station ID in there; the new one for the BloomSky is not in the ‘Associate with PWS’ drop-down list, even though it’s in my WU-PWS a…
[/quote]
schapper05:
Yongfeng_Zhang:
Hi, since I see a lot of people being not clear about how the device works, I’d like to briefly explain it here.
The device takes a picture and does the other measurements about every 5 minutes. It then uploads the image along with the data to our server. It will stop uploading pictures at night, but the other data won’t stop updating. It’s 24 hrs a day, 7 days/week. If you call the API at night, the image URL will be the last one taken before dark.
We define ‘night’ as half an hour past sunset. We don’t use the luminance sensor to tell it. We calculate the sunset and sunrise time with the lat, lon, utc and dst of the device. So the device stops updating pictures half and hour after sunset, and restarts it half an hour before sunrise. The time-lapse video will be generated about 45 minutes after sunset.
And the luminance sensor is very direction-sensitive. The hole that lets the light in is small. So if you want to use the data in a sensible way, you need to adjust the direction to avoid direct sunlight, reflections, moonlight etc. The luminance sensor is located right to the camera, or left. For this reason, we didn’t show the data in the app, it’s more a reference. Remember that the camera, LUX sensor and UV sensor as whole is adjustable. You can move it up and down.
And a couple of articles about setting up devices:
https://bloomsky.desk.com/customer/en/portal/articles/2320558-i-set-up-my-device-but-it-shows-as-offline
https://bloomsky.desk.com/customer/en/portal/articles/2320512-"sorry-your-bloomsky-has-failed-to-connect-correctly-would-you-like-to-try-again-"-error-message
To minimize clutter, If you would like to share your weather ID information please use this link. Thank you!
You can still apply for a free Bloomsky(costs shipping ~$20ish) here. “Apply by Wednesday, February 17th at 11:59pm PST to qualify.”
@Slagle Has been kind enough to offer the following Device type and smart app:
Short Instructions:
After correctly adding Bloomsky (Connect) app in mobile, Smartapp should create a device.
Service Manager(Bloomsky (Connect) )!!!
Now all you have to do is install the service manager and you’re good to go! You will not need the “Scheduler” app anymore either, it’s done within the service manager.
This should work for multiple devices too. Don’t have multiple devices so I can’t test that, so don’t castrate me if it doesn’t work.
Make sure to uninstall the old device before copying in the new DTH code.
The service manager(Bloomsky (Connect) ) sets all the correct info for the device. No need to do anything other than hit done within the connect app .(Bloomsky (Connect) should add a device in your list.)
If you changed anything in the IDE for the device is recommend uninstalling and reinstalling.
https://github.com/tslagle13/SmartThingsPersonal/blob/master/devicetypes/tslagle13/bloomsky.src/bloomsky.groovy
https://github.com/tslagle13/SmartThingsPersonal/blob/master/smartapps/tslagle13/bloomsky-connect.src/bloomsky-connect.groovy
Long Instructions on Installation after adding the Bloomsky (Connect) Smartapp and Bloomsky Device Type in the IDE:
Thanks for the in-depth write up @keltymd ! All bolds below are emphasis by me, Italics are my comments.
keltymd:
In your web browser go to http://dashboard.bloomsky.com
Log in with your email address and password you used to register with Bloomsky
Click Developers at the bottom of the left had column
Copy your API key . (I Swear I entered my api key correctly like 3 times as soon as I emailed myself a copy and copy pasted it went through…)
I recommend you email the API key (can’t emphasize this enough, it’s the most likely spot of failure) to an email address on your smartphone so you can paste it in the next steps to prevent Fat fingering it.
In the Smartthings app on your smartphone click Marketplace and scroll to the bottom of SmartApps
Click
Find BloomSky (Connect) and select it
Paste or type (careful with this it’s case sensitive) your API in the API field and click Done
After this step the Bloomsky (Connect) App should create a device found on your network. The name wil be Bloomsky***** with the stars being randomly generated characters.
Please see the FAQ for using custom code by @JDRoberts
[OBSOLETE] FAQ: An Overview of Using Custom Code in SmartThings (SmartThings Classic, Groovy Code)
GitHub FAQ:
FAQ: Github Integration How to Add and Update from Repositories [OBSOLETE]
zj4x4:
Add his GitHub to your IDE, then all you have to do is click:
Followed by:
Here are the settings you need for Tim’s repository:
BloomSky & Weather Underground