Re: Dashticz - Feature Requests
Posted: Tuesday 13 February 2018 22:12
Please how do you do this?naitsirhc wrote: ↑Tuesday 13 February 2018 18:50 this worked for me![]()
https://api.buienradar.nl/image/1.0/Rad ... =0&forc=48
Please how do you do this?naitsirhc wrote: ↑Tuesday 13 February 2018 18:50 this worked for me![]()
https://api.buienradar.nl/image/1.0/Rad ... =0&forc=48
Code: Select all
{
"ActTime" : 1519415468,
"AstrTwilightEnd" : "19:26",
"AstrTwilightStart" : "04:43",
"CivTwilightEnd" : "17:41",
"CivTwilightStart" : "06:27",
"DayLength" : "09:42",
"NautTwilightEnd" : "18:33",
"NautTwilightStart" : "05:35",
"ServerTime" : "2018-02-23 20:51:08",
"SunAtSouth" : "12:05",
"Sunrise" : "07:13",
"Sunset" : "16:55",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Locked",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 1,
"HardwareName" : "ZStick",
"HardwareType" : "OpenZWave USB",
"HardwareTypeVal" : 21,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "00002801",
"Image" : "Light",
"InternalState" : "Locked",
"IsSubDevice" : false,
"LastUpdate" : "2018-02-23 20:49:57",
"Level" : 0,
"LevelInt" : 0,
"MaxDimLevel" : 100,
"Name" : "Garagedörren",
"Notifications" : "true",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Locked",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "Switch",
"SwitchType" : "Door Lock",
"SwitchTypeVal" : 19,
"Timers" : "false",
"Type" : "Light/Switch",
"TypeImg" : "door",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "260"
}
],
"status" : "OK",
"title" : "Devices"
}
Hi Freek,nosehook wrote: ↑Monday 05 March 2018 14:20 Hoi Rob,
First of all, I love Dashticz so far!
What I was wondering:
1) Is it possible to use google to calculate the (car based) commute time at present to work? I generally use Dashticz in the morning when I wake up and this would make me quite happy, since I work at irregular times.
2) traffic jams/accidents that have happened on the route to work.
3) check flight status (on time/delay) of a specific flight (pulled from google callendar)
Keep up the amazing work!
Regards,
Freek
Code: Select all
buttons.Route = {width:10, title: 'Route to work', url: 'https://www.google.com/maps/embed/v1/directions?key=INSERT_YOUR_GOOGLE_API&origin=STREETNAME+123,+1234+AB+CITYNAME,+COUNTRY&destination=STREETNAME+123,+1234+AB+CITYNAME'}
Code: Select all
buttons.Route = {width:10, title: 'Route to work', url: 'https://www.google.com/maps/embed/v1/directions?key=AIzaRyDPHISSPkc5g6Elcm4pWRTcGdDcfeGJtM&origin=Damrak+1,+1012+LG+Amsterdam&destination=Noordeinde+1,+2514+GA+Den+Haag'}
mm very great feature....Ingmar wrote: ↑Monday 05 March 2018 23:00Hi Freek,nosehook wrote: ↑Monday 05 March 2018 14:20 Hoi Rob,
First of all, I love Dashticz so far!
What I was wondering:
1) Is it possible to use google to calculate the (car based) commute time at present to work? I generally use Dashticz in the morning when I wake up and this would make me quite happy, since I work at irregular times.
2) traffic jams/accidents that have happened on the route to work.
3) check flight status (on time/delay) of a specific flight (pulled from google callendar)
Keep up the amazing work!
Regards,
Freek
Maybe not exactly what you are looking for, but I am using the following code: It creates a button on your dashboard and when you click it it will show a popup with your route to work (or whatever you set it on) including the time required with traffic and alternative routes. Just like as if you planned your route with Google maps.
So for example:Code: Select all
buttons.Route = {width:10, title: 'Route to work', url: 'https://www.google.com/maps/embed/v1/directions?key=INSERT_YOUR_GOOGLE_API&origin=STREETNAME+123,+1234+AB+CITYNAME,+COUNTRY&destination=STREETNAME+123,+1234+AB+CITYNAME'}
Obviously the API in the piece of code above is not my API, i changed bits to make sure it doesn't workCode: Select all
buttons.Route = {width:10, title: 'Route to work', url: 'https://www.google.com/maps/embed/v1/directions?key=AIzaRyDPHISSPkc5g6Elcm4pWRTcGdDcfeGJtM&origin=Damrak+1,+1012+LG+Amsterdam&destination=Noordeinde+1,+2514+GA+Den+Haag'}
![]()
Got it working! Many thanks.Ingmar wrote: ↑Monday 05 March 2018 23:00Hi Freek,nosehook wrote: ↑Monday 05 March 2018 14:20 Hoi Rob,
First of all, I love Dashticz so far!
What I was wondering:
1) Is it possible to use google to calculate the (car based) commute time at present to work? I generally use Dashticz in the morning when I wake up and this would make me quite happy, since I work at irregular times.
2) traffic jams/accidents that have happened on the route to work.
3) check flight status (on time/delay) of a specific flight (pulled from google callendar)
Keep up the amazing work!
Regards,
Freek
Maybe not exactly what you are looking for, but I am using the following code: It creates a button on your dashboard and when you click it it will show a popup with your route to work (or whatever you set it on) including the time required with traffic and alternative routes. Just like as if you planned your route with Google maps.
So for example:Code: Select all
buttons.Route = {width:10, title: 'Route to work', url: 'https://www.google.com/maps/embed/v1/directions?key=INSERT_YOUR_GOOGLE_API&origin=STREETNAME+123,+1234+AB+CITYNAME,+COUNTRY&destination=STREETNAME+123,+1234+AB+CITYNAME'}
Obviously the API in the piece of code above is not my API, i changed bits to make sure it doesn't workCode: Select all
buttons.Route = {width:10, title: 'Route to work', url: 'https://www.google.com/maps/embed/v1/directions?key=AIzaRyDPHISSPkc5g6Elcm4pWRTcGdDcfeGJtM&origin=Damrak+1,+1012+LG+Amsterdam&destination=Noordeinde+1,+2514+GA+Den+Haag'}
![]()
You can take a look at this thread.nosehook wrote: ↑Monday 05 March 2018 14:20 Hoi Rob,
First of all, I love Dashticz so far!
What I was wondering:
1) Is it possible to use google to calculate the (car based) commute time at present to work? I generally use Dashticz in the morning when I wake up and this would make me quite happy, since I work at irregular times.
2) traffic jams/accidents that have happened on the route to work.
3) check flight status (on time/delay) of a specific flight (pulled from google callendar)
Keep up the amazing work!
Regards,
Freek
You can try the (undocumented) 'units' configuration option:jake wrote: ↑Friday 23 March 2018 19:44 Please add the option to the blocks to control the amount of digits. At the moment I calculate the outputs from several micro inverters together, to show the total power generation. It is displayed in Dashticz as 1250,00 W. I know this is how the info comes from Domoticz, but it would be nice to be able to shorten this display (in my case) to 1250 W. This would help as well to keep the whole text on 1 line.
Code: Select all
config['units'] = {
names: {
kwh: 'kWh',
watt: 'W',
},
decimals: {
kwh: 2,
watt: 0,
},
separators: {
decimal: ',',
thousands: '.'
}
};
Thanks this works for most of the electrical sensors.aiolos wrote:You can try the (undocumented) 'units' configuration option:jake wrote: ↑Friday 23 March 2018 19:44 Please add the option to the blocks to control the amount of digits. At the moment I calculate the outputs from several micro inverters together, to show the total power generation. It is displayed in Dashticz as 1250,00 W. I know this is how the info comes from Domoticz, but it would be nice to be able to shorten this display (in my case) to 1250 W. This would help as well to keep the whole text on 1 line.Code: Select all
config['units'] = { names: { kwh: 'kWh', watt: 'W', }, decimals: { kwh: 2, watt: 0, }, separators: { decimal: ',', thousands: '.' } };
it could be added for other sensors too, they are handled a bit different, but it should be possible to work the same way. I'll have a look how this can be reached.jake wrote: ↑Tuesday 27 March 2018 19:12Thanks this works for most of the electrical sensors.aiolos wrote:You can try the (undocumented) 'units' configuration option:jake wrote: ↑Friday 23 March 2018 19:44 Please add the option to the blocks to control the amount of digits. At the moment I calculate the outputs from several micro inverters together, to show the total power generation. It is displayed in Dashticz as 1250,00 W. I know this is how the info comes from Domoticz, but it would be nice to be able to shorten this display (in my case) to 1250 W. This would help as well to keep the whole text on 1 line.Code: Select all
config['units'] = { names: { kwh: 'kWh', watt: 'W', }, decimals: { kwh: 2, watt: 0, }, separators: { decimal: ',', thousands: '.' } };
It would be good to put the opion in the Wiki.
The PV-output sensor, which publishes the daily energy harvest on the dashboard, doesn't comply with the setting, it keeps the 3 digits accuracy and uses a '.' instead of the intended ','
Is it possible to add m3 gas to it as well? I don't really care for the last dm3/liter on the dashboard. 1 digit would be plenty to display