This has been in the repository for a while, now. Thanks for the suggestion, though.
Guess I missed that, is it buggy for anyone else? if I’m not very careful on how I toggle lets say lights it will just loop continually loop on and off.
Make sure to remove the data-event-touchend properties from your widgets in the dashboard layout files. The issue is outlined here: Touch registers twice for switches on Android · Issue #13 · FlorianZ/hadashboard · GitHub
@florianz - my icons still move around, in addition, I’ve removed all the “data-event-touchend” from my main.erb, but now, i can’t click on any of the switches. Here is an example:
<li data-row="1" data-col="6"
data-sizex="1" data-sizey="1">
<div data-id="Masterbedroomlight"
data-view="Stswitch"
data-icon="lightbulb-o"
data-title="Master Bedroom"
data-device="Master Bedroom Light"
data-event-click="onClick">
</div>
</li>
I also made sure the new entry is in application.coffee file.
What am I doing wrong?
Your working directory is in some really weird state. You definitely don’t have the latest changes from the repository.
I suggest you make backups of your dashboard .erb files, and then run this command to completely overwrite everything in your working directory with what’s in the repository:
$ git reset --hard origin/master
Remember this will replace all your modifications, so make sure to backup your dashboard .erb files, so you can copy them back into the working directory after running the command above.
@florianz , Okay, just so I’m clear. . . .do I run that command from the root C:\users\Hadashboard directory, or should I be in the Hadashboard\xx(my)dashboard directory when running that command from the CMD prompt?
Also, when I type that I get the following:
“
fatal: ambiguous argument ‘origin/master’: unknown revision or path not in the w
orking tree.
Use ‘–’ to separate paths from revisions, like this:
‘git […] – […]’”
Whatever the root of your git working tree is. You can run this command anywhere under the root to print out what the root directory is:
$ git rev-parse --show-toplevel
If you are still getting the same error in your working directory root, you can try this command instead:
$ git fetch origin
$ git reset --hard FETCH_HEAD
@florianz , Okay, I’m getting somewhere, now when I typed “git reset --hard FETCH_HEAD”
I get:
“HEAD is now at e5b5dd0 Fixing a typo which may cause the mode widgets to not update.”
But nothing happens?
No, that sounds great. You should be good to go now. Restore your dashboard files, and play the git commit + push dance as outlined in the instructions:
$ gid add .
$ git commit -m "Restoring my dashboards."
$ git push heroku master
If the last command fails, you may have to force-push the first time, simply append a --force to the end of the last command to do that.
YES! That worked! I was just getting confused when I need to switch from the top level directory down to my dashboard.
one last question, is there a way to change the contact sensor to light up GREEN instead of GREY when it’s closed?
Thanks so much @florianz ! Why ST doesn’t offer this as a package is beyond me.
When I did heroku create, it doesn’t return the last line, remote heroku added just the first 3 lines:
C:\Users\pnguyen\hadashboard>heroku create
Creating fast-taiga-6291… done, stack is cedar
http://fast-taiga-6291.herokuapp.com/ | git@heroku.com:fast-taiga-6291.git
You have to make sure to call heroku create from within your git working directory. The working directory should have already been set up before you call that command. The working directory is established when you first checkout from my GitHub repository. Not sure what’s going on in your case, but this could mean that you’ll run into issues further down in the installation instructions.
To verify that your working directory is set up correctly, you can run git remote -v from the directory to print out a list of remotes. heroku should be one of them.
If the heroku remote hasn’t been added for whatever reason, you can simply add it yourself:
$ heroku git:remote -a fast-taiga-6291
git remote -v does return heroku, but I still get the same error when I do git push heroku. Here’s the last half of the error. I can’t figure out what it’s trying to do:
Could not create directory ‘u/.ssh’.
The authenticity of host ‘heroku.com (50.19.85.156)’ can’t be established.
RSA key fingerprint is 8b:48:5e:67:0e:c9:16:47:32:f2:87:0c:1f:c8:60:ad.
Are you sure you want to continue connecting (yes/no)?
Looks like this is some sort of cygwin issue. Take a look at this discussion. Try setting the HOME environment variable, like suggested in that post.
Were you able to integrate Sonos/Obithing in your dashboard? can you share how you do it? Thanks!!
Hi,
first of all, great work! This is just what I was looking for! I was able to get most of the widgets working with my hub, but there is only one issue I am facing: stweather shows the weather in fahrenheit and I live in Brazil, which uses celsius by default. The weather forecast seems correct, but I could not find any way to switch it to celsius. My smartthings account is configured to use celsius. Any suggestions? Thanks!
@megahit I have seen the °F is hard coded in the stweather and sttemp widgets, does the temp show fahrenheit number or just the symbol? If it’s just the symbol that is wrong you can change the html files in hadashboard\widgets\stweather\stweather.html change line 5
°F to °C
In the hadashboard\widgets\sttemp\sttemp.html change line 4
°F to °C
What @mattjfrank said fixes the display issues, but to get the temperature values in celsius from the weather service you will also need to make modifications to hadashboard/jobs/smartthings.rb: At the very bottom of that file is where I pull out the weather data. You’ll see some references to temp_f and fahrenheit, and those will need to be changed to temp_c and celsius respectively.
Looks like we need a better way to configure this…
Thanks @florianz I guess I just assumed it was pulling the data directly from ST and adding the F.