Page 60 of 184

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 20 April 2017 18:31
by Clemen
robgeerts wrote:NEW VERSION
- Swipe to change screens
- New thermostat-design (Thanks to @madrian)
- Some small performance fixes
- Graph on iphone battery-status block
- Bug in fan-block (mentioned by @gielie)
- Added swedish translations
- Disabled ios double click to zoom-function
- Fix when using device AND scene with same IDX-numbers
- Translations of wind direction (thanks to @Wizjos)

BE CAREFUL, THINGS MAY FAIL SO BACKUP YOUR OLD DASHBOARD-FOLDER!!!
NICE!
If i have multiple thermostat set points on the screen in this version and changes the set point. then it changes on every thermostat on that page.

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 20 April 2017 18:49
by robgeerts
Thats right, i have to fix that multiple thermostats are allowed...

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 20 April 2017 19:36
by mvveelen
And how about the weather? Because, when I enter the api key, the screen won't load anymore.

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 20 April 2017 19:38
by robgeerts
mvveelen wrote:And how about the weather? Because, when I enter the api key, the screen won't load anymore.
Most likely, there's a javascript-error.
Could you send me your config.js OR open console (f12) en check for an error? (Just after loading the page)

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 20 April 2017 19:39
by madrian
robgeerts wrote:Thats right, i have to fix that multiple thermostats are allowed...
I am working on it.

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 20 April 2017 19:39
by EdwinK
SwordFish wrote:
I changed your script a little to my needs 8-)
Care to share? Btw. I hope that @ierlandfan will make another version for those special days that trash isn't collected. And since our city doesn't use the orange bin, those could go too.

Will also try to use the 'official' version of Afvalwijzer. For now it's good.

Image

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 20 April 2017 19:41
by EdwinK
mvveelen wrote:And how about the weather? Because, when I enter the api key, the screen won't load anymore.
Perhaps you made an error with the APIkey. It should go between the ' '. And make sure you don't delete the ; and the end of the line. It might cause the problem

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 20 April 2017 19:44
by mvveelen
I'm sure I didn't make an error. I copy-pasted the key between the 's and didn't delete the ;

Maybe rob can find out what's wrong. I've sent him a message.

By-the-way, I like the afvalwijzer add-on. I uploaded the lua script and made a selector switch. I have to take a look at the week numbers, but that won't be a problem. Nice !

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 20 April 2017 19:46
by robgeerts
Error only occured when no blocks, screens or something were defined, fixed in latest version!

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 20 April 2017 19:54
by mvveelen
robgeerts wrote:Error only occured when no blocks, screens or something were defined, fixed in latest version!

Thanks Rob !

Update the api key, and now I have no problems loading the screen, except.....I don't see any weather blocks. I might have to read the whole topic I guess :o

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 20 April 2017 19:55
by freakshock
Thanks for the new version Rob, I like the new thermostat buttons :)
They work, but the information on the dashboard is a bit confusing.
If you change for instance 19 degrees to 19.5 degrees, it shows 19.5 for a second, and then returns to 19 degrees. After a while it shows 19.5 again, probably when the dashboard gets this value back from Domoticz again. Not sure if there is a fix for this, it's not a big problem for me.

Also I found an error which causes the news block not to show:

Code: Select all

XMLHttpRequest cannot load http://www.nu.nl/rss/algemeen. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://192.168.1.88' is therefore not allowed access.

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 20 April 2017 19:59
by robgeerts
freakshock wrote:Thanks for the new version Rob, I like the new thermostat buttons :)
They work, but the information on the dashboard is a bit confusing.
If you change for instance 19 degrees to 19.5 degrees, it shows 19.5 for a second, and then returns to 19 degrees. After a while it shows 19.5 again, probably when the dashboard gets this value back from Domoticz again. Not sure if there is a fix for this, it's not a big problem for me.
I know, will fix this!
freakshock wrote: Also I found an error which causes the news block not to show:

Code: Select all

XMLHttpRequest cannot load http://www.nu.nl/rss/algemeen. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://192.168.1.88' is therefore not allowed access.
Try adding https://crossorigin.me before the url, so:

Code: Select all

https://crossorigin.me/http://www.nu.nl/rss/algemeen
(Yes, seems strange, but try :))

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 20 April 2017 20:03
by madrian
robgeerts wrote:
freakshock wrote:Thanks for the new version Rob, I like the new thermostat buttons :)
[/code]
(Yes, seems strange, but try :))
Yeah, it's working pretty awkward. For me it's jumping 1 number instead of 0.5. +:hover style is strange too, when I move mouse over button it's always changing. +icons are flashing:


Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 20 April 2017 20:10
by axelbaas
robgeerts wrote:
axelbaas wrote:See underneath.

It is a MySensors Temperature sensors
Spoiler: show
{
"ActTime" : 1492694695,
"ServerTime" : "2017-04-20 15:24:55",
"Sunrise" : "06:31",
"Sunset" : "20:43",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "20.5 C, 38 %",
"Description" : "",
"DewPoint" : "5.69",
"Favorite" : 1,
"HardwareID" : 9,
"HardwareName" : "Mysensors_PI",
"HardwareType" : "MySensors Gateway with LAN interface",
"HardwareTypeVal" : 42,
"HaveTimeout" : false,
"Humidity" : 38,
"HumidityStatus" : "Comfortable",
"ID" : "4B01",
"LastUpdate" : "2017-04-20 15:24:50",
"Name" : "Huiskamer",
"Notifications" : "false",
"PlanID" : "4",
"PlanIDs" : [ 4 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "WTGR800",
"Temp" : 20.5,
"Timers" : "false",
"Type" : "Temp + Humidity",
"TypeImg" : "temperature",
"Unit" : 0,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "288"
}
],
"status" : "OK",
"title" : "Devices"
}
Try latest version I've just pushed!
You nailed it!

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 20 April 2017 20:18
by freakshock
robgeerts wrote: Try adding https://crossorigin.me before the url, so:

Code: Select all

https://crossorigin.me/http://www.nu.nl/rss/algemeen
(Yes, seems strange, but try :))
That works, thanks :) Sent you some tablet money, hehe ;)

Another thing I've found: The graph direct display function ('graph_1') does not display the graphs immediately after page refresh, I have to click one of the three options (laatste uren,vandaag,afgelopen maand) first for the graph to show.

A better solution for me anyway would be to have clickable blocks for gas and power usage, but that's already been requested ;)

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 20 April 2017 20:22
by Ierlandfan
@EdKo66

the trash is defined in weeks. So if it's a special "week" don't put the weeknumber into the bincolor.
If you don't have a orange bin, then there are no weeknumbers needed in the part for orange.
And so no orange value will reach Domoticz.

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 20 April 2017 20:26
by EdwinK
Just noticed that the 'Buienradar' wind tile doesn't give the 'gust' anymore.

This is the output from the json

Code: Select all

ActTime" : 1492712572,
   "ServerTime" : "2017-04-20 20:22:52",
   "Sunrise" : "06:35",
   "Sunset" : "20:46",
   "result" : [
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "Chill" : 7.7999999999999998,
         "CustomImage" : 0,
         "Data" : "270.0;W;30;46;9.4;7.8",
         "Description" : "",
         "Direction" : 270.0,
         "DirectionStr" : "W",
         "Favorite" : 1,
         "Gust" : "3",
         "HardwareID" : 21,
         "HardwareName" : "Buienradar",
         "HardwareType" : "Buienradar.nl (Weather lookup)",
         "HardwareTypeVal" : 94,
         "HaveTimeout" : false,
         "ID" : "00150006",
         "LastUpdate" : "2017-04-20 20:08:18",
         "Name" : "Wind",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Speed" : "2",
         "SubType" : "TFA",
         "Temp" : 9.4000000000000004,
         "Timers" : "false",
         "Type" : "Wind",
         "TypeImg" : "wind",
         "Unit" : 6,
         "Used" : 1,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "98"
      }
   ],
   "status" : "OK",
   "title" : "Devices"
}

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 20 April 2017 20:32
by SwordFish
EdKo66 wrote:
SwordFish wrote:
I changed your script a little to my needs 8-)
Care to share? Btw. I hope that @ierlandfan will make another version for those special days that trash isn't collected. And since our city doesn't use the orange bin, those could go too.

Will also try to use the 'official' version of Afvalwijzer. For now it's good.

Image
Sure,
I put in the weeknumbers and days when they come to collect the garbage.

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 20 April 2017 20:34
by EdwinK
Bedankt :)

Re: Dashticz v2.0, custom positioning and multiple screens

Posted: Thursday 20 April 2017 20:34
by robgeerts
freakshock wrote: That works, thanks :) Sent you some tablet money, hehe ;)
Thanks!!!
freakshock wrote: A better solution for me anyway would be to have clickable blocks for gas and power usage, but that's already been requested ;)
It is already available but not all devices get recognized correctly... Please send me the output of the devices and I will fix it a.s.a.p.

EdKo66 wrote:Just noticed that the 'Buienradar' wind tile doesn't give the 'gust' anymore.

This is the output from the json

Code: Select all

ActTime" : 1492712572,
   "ServerTime" : "2017-04-20 20:22:52",
   "Sunrise" : "06:35",
   "Sunset" : "20:46",
   "result" : [
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "Chill" : 7.7999999999999998,
         "CustomImage" : 0,
         "Data" : "270.0;W;30;46;9.4;7.8",
         "Description" : "",
         "Direction" : 270.0,
         "DirectionStr" : "W",
         "Favorite" : 1,
         "Gust" : "3",
         "HardwareID" : 21,
         "HardwareName" : "Buienradar",
         "HardwareType" : "Buienradar.nl (Weather lookup)",
         "HardwareTypeVal" : 94,
         "HaveTimeout" : false,
         "ID" : "00150006",
         "LastUpdate" : "2017-04-20 20:08:18",
         "Name" : "Wind",
         "Notifications" : "false",
         "PlanID" : "0",
         "PlanIDs" : [ 0 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Speed" : "2",
         "SubType" : "TFA",
         "Temp" : 9.4000000000000004,
         "Timers" : "false",
         "Type" : "Wind",
         "TypeImg" : "wind",
         "Unit" : 6,
         "Used" : 1,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "98"
      }
   ],
   "status" : "OK",
   "title" : "Devices"
}
Will fix this a.s.a.p.


Currently, I'm working on bigger buttons for blinds:
Image

When this is done, I will make mediaplayer buttons bigger too.