Homey.ink on a tablet/desktop

https://github.com/moment/moment/blob/develop/locale/nb.js This is the correct one.

2 Likes

Thanks, changed the no.json file to nb.json, please use lang=nb for Norwegian from now on.

1 Like

Hi @Sebastien,
I don’t see anything on Github, could you post it here or send me a PM?

Finally got the multi-line values working, with help from Kalle’s code. It now displays temp, humid & battery for my Xiaomi sensors and watt & gas usage for my Plugwise P1. Still have to put some effort in getting the decimal back for the temperature and the humidity:

ohh dear, i need to get into this. hope to find some time to check this out. also maybe i can use my old ipad for it…

Do you have this code on github? I would like to add it to my version and for my howizard energy link I would also like it /

Depends on the definition of “old “
Here the Danee versions don’t work on IOS 9.x
The standard Emile version works tho.

1 Like

No, but i can copy paste some here… :stuck_out_tongue:
Hmm, i see the JS formatting disappears after paste. But i think you will get an idea of what to do i suppose.
I also added 1 line in the web.css file to align all values to the right . Just add " text-align: right; " at the end under the “.device .value” section. I also did some adjustments to the font and line size there too, so if it doesn’t fit the tile, you can play around with the values in that same section (don’t forget to adjust the #decimal value too :stuck_out_tongue:)

First block (append somewhere in the “homey.devices.getdevices” section):

//FIRST BLOCK STARTS HERE
if ( device.capabilitiesObj.measure_temperature && device.capabilitiesObj.measure_humidity && device.capabilitiesObj.measure_battery ) {
device.makeCapabilityInstance(‘measure_temperature’, function(value){
var $device = document.getElementById(‘device-’ + device.id);
if( $device ) {
var $value = document.getElementById(‘value-’ + device.id);
var integer = Math.floor(device.capabilitiesObj.measure_temperature.value)
var integer1 = Math.floor(device.capabilitiesObj.measure_humidity.value)
var integer2 = Math.floor(device.capabilitiesObj.measure_battery.value)
$value.innerHTML = “<div style="font-size: 75%;top: 1.5vh;line-height: 2vh;">” + integer +" °
" + integer1 + " %
" + integer2 + " %
"
}
});
}
if ( device.capabilitiesObj.measure_power && device.capabilitiesObj.measure_gas ) {
device.makeCapabilityInstance(‘measure_power’, function(value){
var $device = document.getElementById(‘device-’ + device.id);
if( $device ) {
var $value = document.getElementById(‘value-’ + device.id);
var integer = Math.floor(device.capabilitiesObj.measure_power.value)
var integer1 = Math.floor(device.capabilitiesObj.measure_gas.value)
$value.innerHTML = “<div style="font-size: 75%;top: 1.5vh;line-height: 3vh;">” + integer +" W
" + integer1 + " M³
"
}
});
}
//FIRST BLOCK ENDS HERE

Second block (append somewhere in the “function renderDevices” section):

//SECOND BLOCK STARTS HERE
if ( device.capabilitiesObj.measure_temperature && device.capabilitiesObj.measure_humidity && device.capabilitiesObj.measure_battery ) {
var integer = Math.floor(device.capabilitiesObj.measure_temperature.value)
var integer1 = Math.floor(device.capabilitiesObj.measure_humidity.value)
var integer2 = Math.floor(device.capabilitiesObj.measure_battery.value)
$value.innerHTML = “<div style="font-size: 75%;top: 1.5vh;line-height: 2vh;">” + integer +" °
" + integer1 + " %
" + integer2 + " %
"
}
if ( device.capabilitiesObj.measure_power && device.capabilitiesObj.measure_gas ) {
var integer = Math.floor(device.capabilitiesObj.measure_power.value)
var integer1 = Math.floor(device.capabilitiesObj.measure_gas.value)
$value.innerHTML = “<div style="font-size: 75%;top: 1.5vh;line-height: 3vh;">” + integer +" W
" + integer1 + " M³
"
}
//SECOND BLOCK ENDS HERE

1 Like

to bad I already found that out… bummer…

I want to install homey ink on my Symology.
Can you tell me how to do that?
Need to install web server? And then?

Download the files and upload them in the “Web” folder on ur Synology. Make a map like “Homey” in de Web map. Adress will be IP/Homey/app/index.html/?token=TOKEN&theme=web
And first make the map Homey and upload the files in there ofc.

1 Like

Unfortunately I no longer have an iPad running iOS 9 so it’s very hard to find out why it’s not working, Sorry.

I have one running in the bar. Bring a laptop and we take a beer!

3 Likes

can i instal it on a apple airport ?

Uploaded a new version in which you can cycle through the (number) capabilities available on a device. When you click a device tile you will get the next capability and the title is shown for a short time.
Selected values will not be saved between sessions and the layout for the values and units is also not completely done. It’s device independent so should work for any device with any and all capabilities (although I filtered out measure_battery)
Currently only changes in measure_temperature and flora_measure_moisture will automatically update its value on a tile, I’m looking into registering changes in all capabilities.

image image image image
(can’t upload video here, so static screenshots in which I can’t show the title change unfortunately)

6 Likes

It is an gen 4 iPad. Don’t know what ios it has but it uses the last available one.
@Rocodamelshekima

A 4 will do the job.

Have some, so if I can support, would also very happy if I can use these old devices for something again :wink:

Have some, so if I can support, would also very happy if I can use these old devices for something again :wink:

1 Like

Errrrr you might want to remove this response before anyone else sees it :wink:

1 Like