Page 6 of 20

Re: Toon App: solarPanel ---> solar data without hardware

Posted: Wed Feb 03, 2021 1:54 pm
by Tebogo
Geweldig dit, gebruik deze al enkele weken.

Helaas is m’n metermodule overleden. Ik zou graag zien dat op de manier zoals je de zonnepanelen uit domoticz kunt halen met
“domoticz. Connect via domoticz. (For 1 inverter, give 1 IDX. For 2 inverters give 2 IDX like 14+19)”
dat dat ook kan/zou gaan werken voor GAS en STROOM. En eventuele andere meters, b.v. Water. Domoticz leest deze nu allemaal uit. Mooi als die zichtbaar worden net al de zonnepanelen op Toon

Ik wil graag als test fungeren mocht dat nodig zijn!

Alvast dank!

Re: Toon App: solarPanel ---> solar data without hardware

Posted: Wed Feb 03, 2021 8:08 pm
by oepi-loepi
ik begrijp wat je bedoeld. Je hebt waarschijnlijk de P1 op een Pi of op een Esp aangesloten en stuurt dat dan naar Domoticz.

Is het niet eenvoudiger en zeker sneller om te vragen voor een metermodule op marktplaats of hier op het forum? Dan ben je waarschijnlijk in een dag al voorzien van data en heb je de echte snelle data direct in Toon.

Ik ben wel al bezig met de app voor de watermeter (inclusief een ESP oplossing voor de meter zelf).

Re: Toon App: solarPanel ---> solar data without hardware

Posted: Thu Feb 04, 2021 3:31 am
by Boldy
Er gaat iets mis maar kan niet vinden wat??

Image

Re: Toon App: solarPanel ---> solar data without hardware

Posted: Thu Feb 04, 2021 11:26 am
by oepi-loepi
Eerst het merk kiezen van je omvormer in de lijst en dan het groene knopje "selecteer" klikken. Daarnaa krijg je de rest te zien. Als je dan alles hebt ingevuld dan "opslaan"

Re: Toon App: solarPanel ---> solar data without hardware

Posted: Thu Feb 04, 2021 3:02 pm
by Tebogo
oepi-loepi wrote:ik begrijp wat je bedoeld. Je hebt waarschijnlijk de P1 op een Pi of op een Esp aangesloten en stuurt dat dan naar Domoticz.

Is het niet eenvoudiger en zeker sneller om te vragen voor een metermodule op marktplaats of hier op het forum? Dan ben je waarschijnlijk in een dag al voorzien van data en heb je de echte snelle data direct in Toon.

Ik ben wel al bezig met de app voor de watermeter (inclusief een ESP oplossing voor de meter zelf).
Laat maar weten, ik wil wel als test fungeren. Toch zou ook de gas en elektra en eventuele extra sensoren via generieke oplossing vanuit domoticz naar Toon een mooi aanvulling zijn..

Re: Toon App: solarPanel ---> solar data without hardware LIVE

Posted: Thu Feb 04, 2021 11:50 pm
by oepi-loepi
SolarShed wrote:I have a question about the teruglevering. is there a reason why it's not showing in the graph? I'm currently generating more power then I'm using but not spotting details about this.
It should be solved in the next update: i hopenthis weekend.

Re: Toon App: solarPanel ---> solar data without hardware

Posted: Fri Feb 05, 2021 12:58 am
by Boldy
oepi-loepi wrote:Eerst het merk kiezen van je omvormer in de lijst en dan het groene knopje "selecteer" klikken. Daarnaa krijg je de rest te zien. Als je dan alles hebt ingevuld dan "opslaan"
ik voel mij toch wat rood worden op de wangen,,, hartelijk dank voor deze hulp.
Solis omvormer werkt perfect met Toon, zelfs beter dan de Solis app.

Re: Toon App: solarPanel ---> solar data without hardware

Posted: Fri Feb 05, 2021 7:24 pm
by oepi-loepi
Boldy wrote:
oepi-loepi wrote:Eerst het merk kiezen van je omvormer in de lijst en dan het groene knopje "selecteer" klikken. Daarnaa krijg je de rest te zien. Als je dan alles hebt ingevuld dan "opslaan"
ik voel mij toch wat rood worden op de wangen,,, hartelijk dank voor deze hulp.
Solis omvormer werkt perfect met Toon, zelfs beter dan de Solis app.
Mooi! Bedankt voor de terugkoppeling. Ik zal Solis (Ginglong) op getest zetten.

Re: Toon App: solarPanel ---> solar data without hardware

Posted: Sun Feb 07, 2021 11:18 am
by oepi-loepi
Nieuwe versie:

1.3.3
- text changed in screen when 2 inverters are selected
- also setting sunrise and sunset after reboot (not only at 0400)
- changed scraping of prod and usage data from energyInsights to rra database (http)
- added a js file for most used functions

Re: Toon App: solarPanel ---> solar data without hardware

Posted: Wed Feb 10, 2021 12:22 am
by oepi-loepi
Ik heb nu voor de sma (sb1.5, 2.5, 3.6 etc) nu ook even een test met https erin gezet op verzoek.

Re: Toon App: solarPanel ---> solar data without hardware

Posted: Wed Feb 10, 2021 10:29 pm
by beer
Dankje oepi-loepi voor de SMA3 plugin.

Ik krijg hem echter niet aan de gang vanuit Toon. Het lijkt erop dat het request naar de sma wordt afgekeurd maar ik zie niet waarom. Het is gewoon een https verbinding en als ik het vanuit de dev console van chrome uitvoer, dan krijg ik wel verbinding en data.Echter als ik het via Toon doe, dan gaat het mis op het opzetten van de verbinding.

Oftewel de response op var url = "https://" + urlString + "/dyn/login.json" waarbij de urlString het ip adres is van de SMA SB3.6 in dit geval geeft de volgende melding terug.
qml: *********SolarPanel error: 0

Het is mij compleet onduidelijk waarom

Re: Toon App: solarPanel ---> solar data without hardware

Posted: Thu Feb 11, 2021 2:01 pm
by mAiden
beer wrote:Dankje oepi-loepi voor de SMA3 plugin.

Ik krijg hem echter niet aan de gang vanuit Toon. Het lijkt erop dat het request naar de sma wordt afgekeurd maar ik zie niet waarom. Het is gewoon een https verbinding en als ik het vanuit de dev console van chrome uitvoer, dan krijg ik wel verbinding en data.Echter als ik het via Toon doe, dan gaat het mis op het opzetten van de verbinding.

Oftewel de response op var url = "https://" + urlString + "/dyn/login.json" waarbij de urlString het ip adres is van de SMA SB3.6 in dit geval geeft de volgende melding terug.
qml: *********SolarPanel error: 0

Het is mij compleet onduidelijk waarom
Probeer eens op Toon een curl te doen. Misschien dat je dan wel de foutmelding ziet.

dus: curl https://ipadresSMA/dyn/login.json

Re: Toon App: solarPanel ---> solar data without hardware

Posted: Thu Feb 11, 2021 6:06 pm
by oepi-loepi
Probeer eens op Toon een curl te doen. Misschien dat je dan wel de foutmelding ziet.

dus: curl https://ipadresSMA/dyn/login.json
inderdaad een goede tip van mAiden, ik heb hem wat verder uitgediept:
stap 1:
curl https://ipadresSMA/dyn/login.json?pass= ... &right=usr

moet een error als {"err":404} geven

stap 2
curl -H "Content-Type: application/json, Accept-Charset: UTF-8" -X POST -d '{"pass" : "xxx", "right" : "usr"}' https://ipadresSMA/dyn/login.json

zou een result als {"result":{"sid":"gckdxxxxxxxxxxxxx5"}} moeten geven

stap 3
terugposten van de sid in de url zou dan een resultaat moeten geven (indien snel achter elkaar uitgevoerd)
curl -H "Content-Type: application/json, Accept-Charset: UTF-8" -X POST -d '{"destDev":[],"keys":["6400_00260100","6400_00262200","6100_40263F00"]}' https://ipadresSMA/dyn/getValues.json?s ... xxxxxxxxx5

Re: Toon App: solarPanel ---> solar data without hardware

Posted: Thu Feb 11, 2021 6:33 pm
by beer
curl https://192.168.178.21/dyn/login.json
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.


curl https://192.168.178.21/dyn/login.json?p ... &right=usr
eneco-001-070867:~# curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.

curl -H "Content-Type: application/json, Accept-Charset: UTF-8" -X POST -d '{"pass" : "Geheim", "right" : "usr"}' https://192.168.178.21
/dyn/login.json
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.

Re: Toon App: solarPanel ---> solar data without hardware

Posted: Thu Feb 11, 2021 9:17 pm
by oepi-loepi
So you are missing a certificate i heard from a specialist.

No problem, you can add one yourself:

1.visit your SMA with chrome webbroser and get the certificate details and save them to file. Like explained here https://medium.com/@menakajain/export-d ... fc41ea46a2
2. copy the new certificate to /usr/local/share/ca-certificates/ and rename to .crt
3. execute command /usr/sbin/update-ca-certificates