Software: modifications and extensions Toon

Everything about software tools, new software development and toolchains. For developers, mostly.

Moderators: marcelr, TerrorSource, Toonz, TheHogNL

Re: Software: modifications and extensions Toon

Postby marcelr » Sun Jan 15, 2017 10:00 am

OK, Thanks.
f.lux for linux is only available as a set of binaries for x86 and x86-64 hardware. Won't work on toon ...
marcelr
Global Moderator
Global Moderator
 
Posts: 1103
Joined: May 2012
Location: Ehv

Re: Software: modifications and extensions Toon

Postby Toonz » Sun Jan 15, 2017 5:10 pm

new version:

changelog:
- temperature on tile and last update date now using local formats (thanks Marcel)
- big icon on tile (day/night) now based on sunrise/sunset times from buienradar xml file.

I tried to read the selected station at start again but it gives bad results most of the time (to the extend that even the default location data is not shown).
Will need further testing myself first.
This version should be safe for daily use I guess.

Regards,

Toonz

EDIT: my source control is lousy. I noticed the actual buienradar images are not refreshed anymore in version 4.0.2beta (removed), was working fine in 4.0.1beta
4.0.3 currently being tested, will be posted later today (17/1)
Last edited by Toonz on Tue Jan 17, 2017 10:06 pm, edited 1 time in total.
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1375
Joined: December 2016

Re: Software: modifications and extensions Toon

Postby komorebi » Sun Jan 15, 2017 8:35 pm

Also I've hacked my Toon and now I'm trying to make a modification in the GUI.
In the dimmed screen there is quite some unused space at the right bottom. It is where in the non-dimmed screen the 4 temperature buttons are located.
I think that space is just big enough to fit one widget.
I already found out that I can add something at the bottom of the file HCBv2\qml\apps\thermostat\ThermostatSidePanel.qml (around line 767), and that it then will appear in the dimmed screen at the right bottom position.
Now I tried this with just a simple Text item, but I'm a little stuck how to add an actual widget here.
It would be nice if I can add the buienradar app here. (Great work Toonz!)
Can someone maybe help me out a little?
Thanks!
komorebi
Starting Member
Starting Member
 
Posts: 1
Joined: January 2017

Re: Software: modifications and extensions Toon

Postby Toonz » Mon Jan 16, 2017 7:17 pm

komorebi wrote:It would be nice if I can add the buienradar app here. (Great work Toonz!)
Can someone maybe help me out a little?


Interesting idea, but you can't show the buienradar data in the non-dimmed state at that location.
If it is just the temperature and the icon in dimmed state then it can be done but you will need to copy/paste some of the buienradar app functionality into the thermostat app. Personally I prefer to keep the 'system' apps and the homebrew apps separated.

Regards,

Toonz
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1375
Joined: December 2016

Re: Software: modifications and extensions Toon

Postby Ierlandfan » Mon Jan 16, 2017 7:19 pm

Attached is the boiler folder
Attachments
Toon.rar
boiler app
(42.17 KiB) Downloaded 169 times
Ierlandfan
Member
Member
 
Posts: 150
Joined: October 2013

Re: Software: modifications and extensions Toon

Postby Toonz » Mon Jan 16, 2017 7:34 pm

Thanks, I quickly checked the BoilerApp.qml, it doesn't contain/initialise a tile item at all, just a menu item and screens. Will try later this evening on my dev Toon.
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1375
Joined: December 2016

Re: Software: modifications and extensions Toon

Postby Toonz » Mon Jan 16, 2017 10:14 pm

Ierlandfan wrote:Attached is the boiler folder

Hi Ierland fan,

I only got this working on my dev toon which has firmware 3.6 (which is now my prod Toon on the wall haha).
It is an app called 'Ketelhulp' which informs you of any malfunction in the boiler.
It first tries to connect to Eneco to get a list of known boilers which fails of course (I believe you need a subscription for this functionality)
Probably best to write a new app to show data, eagerly awaiting for Marcelr's new app :-)

That leaves one question: on my now dev toon with firmware 3.1: can I reopen the vpn to Eneco and run the software update to 3.6 safely or do I need to go through the whole routing process again afterwards?

Regards,

Toon
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1375
Joined: December 2016

Re: Software: modifications and extensions Toon

Postby Ierlandfan » Mon Jan 16, 2017 10:18 pm

You can uograde but on 3.6.3 ip_toon:10080/happ_thermstat?action=printTableInfo is not updating. You can uninstall the app and go back to a earlier one. It doesn't break anything.

Did you find any boiler logs in the rrd databases in /HCBv2/data/hcb_rrd/?


That's a yes.
I used MarcelR's (Edit: I just saw it was you post) rra -to-csv (unpublishd here I think, it's called hcb_rrd.php) to search through the rra files and found the names (and the values)
See attachment
Attachments
rra-to-csv.png
rra names
rra-to-csv.png (108.99 KiB) Viewed 7637 times
Ierlandfan
Member
Member
 
Posts: 150
Joined: October 2013

Re: Software: modifications and extensions Toon

Postby marcelr » Mon Jan 16, 2017 10:28 pm

When the boiler data are part of the rrd databases, it should be fairly easy to add graphs of those data to the graphs screen. Everything that's shown there is taken from the rrd databases.
I used MarcelR's (Edit: I just saw it was you post) rra -to-csv (unpublishd here I think, it's called hcb_rrd.php) to search through the rra files and found the names (and the values)

IIRC that script is somewhere in the first thread about toon (the one with the 390+ posts ). Posted in december 2015, just after the publication of the rooting process. Go and take a look :-).
marcelr
Global Moderator
Global Moderator
 
Posts: 1103
Joined: May 2012
Location: Ehv

Re: Software: modifications and extensions Toon

Postby Toonz » Tue Jan 17, 2017 7:43 pm

marcelr wrote:IIRC that script is somewhere in the first thread about toon (the one with the 390+ posts ). Posted in december 2015, just after the publication of the rooting process. Go and take a look :-).


Can't find it :? I would be grateful if you can upload it again. Thanks in advance.
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1375
Joined: December 2016

Re: Software: modifications and extensions Toon

Postby marcelr » Tue Jan 17, 2017 8:10 pm

marcelr
Global Moderator
Global Moderator
 
Posts: 1103
Joined: May 2012
Location: Ehv

Re: Software: modifications and extensions Toon

Postby Toonz » Tue Jan 17, 2017 8:19 pm

This is really embarrasing, I started looking from the next page or so......Thanks
BTW: I also used the forum search function, but a search on "hcb_rrd" does not give the post above...
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1375
Joined: December 2016

Re: Software: modifications and extensions Toon

Postby Toonz » Tue Jan 17, 2017 10:26 pm

New (or old) buienradar release.
Apologies for my lousy version control. The earlier posted 4.0.2beta didn't refresh the actual radarimages anymore (4.0.1 was ok).
This has been fixed now in 4.0.3. No further functional changes, just this bug fix.

EDIT (marcelr): attachment removed, please get the latest version from the downloads section.
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1375
Joined: December 2016

All Graph functionality unlocked

Postby Toonz » Tue Jan 17, 2017 10:39 pm

Something else while I was looking at the rrd data.

I found that you can actually use all the official tiles with graphs (populated with data from the rrd database).
You will need to edit the GraphApp.qml in apps/graph:

replace the following lines in the function init() , 3 or more times depending on your firmware version:

if (!globals.features["standalone"]) {

with

if (globals.features["standalone"]) {

This will fully unlock all reporting functionality including historical data etc per hour,day,week,month,year....... Magic!!!!!
The standard usage tiles are now alive, clicking them brings you to details screens, really nice.......
(no need for converting into CSV files anymore)

reboot the gui and enjoy :D :D

Regards,

Toonz
Last edited by Toonz on Tue Nov 21, 2017 11:12 am, edited 1 time in total.
member of the Toon Software Collective
User avatar
Toonz
Forum Moderator
Forum Moderator
 
Posts: 1375
Joined: December 2016

Re: Software: modifications and extensions Toon

Postby Ierlandfan » Tue Jan 17, 2017 10:50 pm

That seems great (I can't test atm, I screwed up by trying out what dumpmeuk meant, ...again but deliberete this time, it factory resets Toon, so I lost port 22...dropbear still there)
Can you give an example?
Ierlandfan
Member
Member
 
Posts: 150
Joined: October 2013

PreviousNext

Return to Toon software development

Who is online

Users browsing this forum: No registered users and 0 guests

cron