@hvxl
I'm testing with the local image file (2.3 in the document) but seems i cant get it working..
Logs:
file://qmf/qml/apps/xxx/xxxTile.qml:53:2: QML Image: Error transferring http://localhost/images/xxx/xxx_large.jpg - server replied: Not Found
qml file:
source: "http://localhost/images/xxx/xxx_large.jpg"
image file:
/HCBv2/qml/images/xxx/xxx_large.jpg
Developing apps for Toon
Moderators: marcelr, TheHogNL, Toonz
-
- Administrator
- Posts: 494
- Joined: Thu May 04, 2017 9:28 pm
Re: Developing apps for Toon
I just tested it again to make sure it works. This is the code I used (in directory /HCBv2/qml/apps/xxx):
XxxApp.qml:
XxxTile.qml:
What happens if you try to access the file from the command line?:
cd /tmp
wget http://localhost/images/xxx/xxx_large.jpg
I'm doing this on a toon 1. I expect it works on toon 2 as well, but I don't have one to test that assumption.
XxxApp.qml:
Code: Select all
import QtQuick 2.1
import qb.base 1.0
App {
property url tileUrl: "XxxTile.qml"
function init() {
const args = {
thumbCategory: "general",
thumbLabel: "Xxx",
thumbIcon: "qrc:/images/unknown.svg",
thumbIconVAlignment: "center",
thumbWeight: 30
}
registry.registerWidget("tile", tileUrl, this, null, args);
}
}
Code: Select all
import QtQuick 2.1
import qb.components 1.0
Tile {
Image {
anchors.centerIn: parent
source: "http://localhost/images/xxx/xxx_large.jpg"
}
}
cd /tmp
wget http://localhost/images/xxx/xxx_large.jpg
I'm doing this on a toon 1. I expect it works on toon 2 as well, but I don't have one to test that assumption.
Schelte
Re: Developing apps for Toon
I'm a newbie in building apps. I'm looking into showing the values of my SolarEdge inverter.
Is it a lot of work to build an app that shows only 1 value. SolarEdge has an api. Andy I found a pyton script. https://pypi.org/project/solaredge/
For history etc. I use the SolarEdge app. It's nice to see the current Kw/h of the solarpanels on my Toon.
Is it a lot of work to build an app that shows only 1 value. SolarEdge has an api. Andy I found a pyton script. https://pypi.org/project/solaredge/
For history etc. I use the SolarEdge app. It's nice to see the current Kw/h of the solarpanels on my Toon.
Re: Developing apps for Toon
Why not invest in a 25 euro kWh meter and then use the native solar app on the Toon? The values from the solaredge api are only updated once per 5 minutes.ralph123 wrote:I'm a newbie in building apps. I'm looking into showing the values of my SolarEdge inverter.
Is it a lot of work to build an app that shows only 1 value. SolarEdge has an api. Andy I found a pyton script. https://pypi.org/project/solaredge/
For history etc. I use the SolarEdge app. It's nice to see the current Kw/h of the solarpanels on my Toon.
Member of the Toon Software Collective
Re: Developing apps for Toon
Sorry for deleting my previous posts, I solved them finally.
I want to test the thumbnail icon for my application.
If I try: property url thumbnailIcon: "http://localhost/nl-icon.png"
I get the error: qrc:/apps/homescreen/TileThumbnail.qml:73:3: QML Image: Failed to get image from provider: image://scaled//localhost/nl-icon.png
I know I can use above url for an image elsewhere in the app, but I want to test it for the thumbnail icon.
Is there a way to test my own thumbnail icon before it is in the TSC resource file?
Edit:
Answer: above is not possible. Has to use resourcefile for thumbnail
I want to test the thumbnail icon for my application.
If I try: property url thumbnailIcon: "http://localhost/nl-icon.png"
I get the error: qrc:/apps/homescreen/TileThumbnail.qml:73:3: QML Image: Failed to get image from provider: image://scaled//localhost/nl-icon.png
I know I can use above url for an image elsewhere in the app, but I want to test it for the thumbnail icon.
Is there a way to test my own thumbnail icon before it is in the TSC resource file?
Edit:
Answer: above is not possible. Has to use resourcefile for thumbnail
Re: Developing apps for Toon
Is anybody interested to create an App for a BUVA home ventilation system?
As the protocol of the remotes is not standard there is a workaround to use the/a spare wireless remote and hook this up to a Wemos.
The hardware part incl. flashing the Wemos is easy for me i would not know where to start to create an app that 'calls' the 5 web URL's to 'switch'
The idee for the hardware-wemos solution I found here:
https://community.homey.app/t/howto-buv ... -hack/7596
Cheers,
Frans
As the protocol of the remotes is not standard there is a workaround to use the/a spare wireless remote and hook this up to a Wemos.
The hardware part incl. flashing the Wemos is easy for me i would not know where to start to create an app that 'calls' the 5 web URL's to 'switch'
The idee for the hardware-wemos solution I found here:
https://community.homey.app/t/howto-buv ... -hack/7596
Cheers,
Frans