Page 11 of 24

Re: Toon firmware: issues (and solutions)

Posted: Sat Nov 25, 2017 4:58 pm
by marcelr
Final question: can you make a list of installed packages on your toon?

Code: Select all

opkg list-installed > opkg_list.txt 
and post (or PM to me) the output file opkg_list.txt?

Re: Toon firmware: issues (and solutions)

Posted: Sun Nov 26, 2017 9:21 pm
by Martin101010
Marcel,

Thanks for your help. The gui interface is working again. :)

Martin

Re: Toon firmware: issues (and solutions)

Posted: Thu Nov 30, 2017 7:29 pm
by Ierlandfan
@Toonz @ MarcelR

You think something like this will give us a start to show the BoilerInfo? I am not shure if it updates in the background or if we need to do some init. (Nothing in console.log)
if we get this function to work we can extend it with the other values and we only need to update (App) boilerstatus a little.

Code: Select all

 import QtQuick 1.1

import qb.components 1.0
import qb.base 1.0
import BxtClient 1.0

App {
	id: boilerStatus

//Do we need a property declaration here
       
		function retrieveBoilerData() {		

		var msg = bxtFactory.newBxtMessage(BxtMessage.ACTION_INVOKE, p.thermstatUuid, "specific1", "BoilerChPressure");
		// Timeout is one second more than the timeout in happ_scsync
		bxtClient.doAsyncBxtRequest(msg, retrieveBoilerData, 16);
		console.log("BoilerStatus requested");
                return BoilerChPressure; //Or for debug just whatever it returns, if it returns something
	}

Timer {
	id: datetimeTimer
	interval: 60000  // update every minute 
	triggeredOnStart: true
	running: true
	repeat: true
	onTriggered: retrieveBoilerData()
        console.log("BoilerStatus Updated");
    }

}

Re: Toon firmware: issues (and solutions)

Posted: Thu Nov 30, 2017 8:57 pm
by Toonz
This will not work. They have not implemented this call in the bxtFactory.
Use our http calls with XMLHttpRequest instead to retrieve data via the webserver.

And needs some coding to parse it properly I think (not tested yet)

Re: Toon firmware: issues (and solutions)

Posted: Thu Nov 30, 2017 9:18 pm
by Ierlandfan
How to know wich calls are suported in bxtfactory?

Re: Toon firmware: issues (and solutions)

Posted: Thu Nov 30, 2017 9:42 pm
by Toonz
Ierlandfan wrote:How to know wich calls are suported in bxtfactory?
reverse engineering with notepad ++ :-) :-)

You can safely assume that all you can see on Toon's screens today is supported but nothing else.

Re: Toon firmware: issues (and solutions)

Posted: Fri Dec 01, 2017 9:03 am
by Ierlandfan
Could you enlighten me on the bxtfactory part? As in where to find the commands to use?

I am trying to understand the relationship or differences between the binary bxt and bxtfactory calls.

Temperature offset

Posted: Sat Dec 30, 2017 9:01 pm
by gijsje
I now have my toon rooted bu terroursource and i did change the offset of the temperature because it was a few decrees off
But now it is way of and i can not change it with the button down as it does do nothing
How can make it correct again??
Image

Re: Toon firmware: issues (and solutions)

Posted: Sat Dec 30, 2017 10:27 pm
by michel30
What happens if you click on the small reset button under the Toon?
you need to use a pencel to push it in.

Re: Toon firmware: issues (and solutions)

Posted: Sat Dec 30, 2017 11:35 pm
by gijsje
It stays the same :(

Re: Toon firmware: issues (and solutions)

Posted: Sun Dec 31, 2017 3:41 pm
by gijsje
I did a factory reset and did take my some time get it back up again but the temp looks ok now.
There is still a issue with getting the correct date and time.
It stays at January 2011 and the time and date is not updated
It says it has internet connection and i can login to it but not update of the time
Any suggestions?

Re: Toon firmware: issues (and solutions)

Posted: Mon Jan 01, 2018 7:22 pm
by marcelr
To get time updates, the chrony daemon needs to be up and running. You can test this by:

Code: Select all

 ps | grep chron

This should give output like this:

Code: Select all

1091 root      2616 S    /usr/sbin/chronyd -r
 3210 root      2964 S    grep chron
The top line indicates that the daemon runs, with process ID 1091 (YMMV).
Then of course, the configuration of the chrony daemon needs to be set as described in the rooting manual.

Re: Toon firmware: issues (and solutions)

Posted: Mon Jan 01, 2018 8:10 pm
by gijsje
Stil learning so i will search what it means what you say but in the mean time this was the result but no clue if thats ok or not

Code: Select all

 1208 root      2616 S    /usr/sbin/chronyd -r
25697 root      2960 S    grep chron

Re: Toon firmware: issues (and solutions)

Posted: Mon Jan 01, 2018 8:22 pm
by gijsje
If i check the manual it seems that it is setup correctly
This is the chrony.conf

Code: Select all

#server time.quby.nl minpoll 8
server www.nist.gov minpoll 8
#keyfile /etc/chrony/chrony.keys
#commandkey 1
driftfile /var/lib/chrony/chrony.drift
#log tracking measurements statistics
logdir /var/log/chrony
dumponexit
dumpdir /var/lib/chrony
local stratum 10
allow 10/8
allow 192.168/16
allow 172.16/12
# Generate syslog messages if large offsets occur (> x secs)
logchange 10
# Specify that the real time clock keeps UTC not local time
rtconutc
#rtcfile /var/lib/chrony/chrony.rtc
# Step system clock if large correction is needed (> x secs within y clkupdates)
makestep 1000 100
# Trim the system clock on boot-up. (> x secs from host)
#initstepslew 30 time.quby.nl
initstepslew 30 www.nist.gov
# Stop bad estimates upsetting machine clock
maxupdateskew 100.0

Re: Toon firmware: issues (and solutions)

Posted: Mon Jan 01, 2018 11:44 pm
by gijsje
I did some more study and installed the traffic app on the toon and it is not able to update the traffic and it says it has no internet connection.
If i look at the www status it says it is connected to the internet and i am also able to access it from my computer and the data is coming into domoticz so it is connected to my local network.
It looks like no date from the outside is coming to the toon and then it can of course also not update the time.

Image

Image