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

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

Post Reply
beer
Starting Member
Starting Member
Posts: 4
Joined: Mon Feb 08, 2021 10:16 pm

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

Post by beer »

I was almost there, except i forgot to update the certificates. Anyways done that, but yet it still fails.Partly due to, i think, being aninsecure certificate.

if i connect from the terminal
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.

yet if i pass the -k option i can get a sessionid
curl -k -H "Content-Type: application/json, Accept-Charset: UTF-8" -X POST -d '{"pass" : "Geheim", "right" : "usr"}' https://192.168.178.21/dyn/login.json
{"result":{"sid":"PnLiT_anQZPnt8K9"}}

Unfortunately the app still can't handle this situation of a probably insecure certificate.
oepi-loepi
Advanced Member
Advanced Member
Posts: 628
Joined: Sat Feb 09, 2019 7:18 pm

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

Post by oepi-loepi »

beer wrote:I was almost there, except i forgot to update the certificates. Anyways done that, but yet it still fails.Partly due to, i think, being aninsecure certificate.

yet if i pass the -k option i can get a sessionid
curl -k -H "Content-Type: application/json, Accept-Charset: UTF-8" -X POST -d '{"pass" : "Geheim", "right" : "usr"}' https://192.168.178.21/dyn/login.json
{"result":{"sid":"PnLiT_anQZPnt8K9"}}

Unfortunately the app still can't handle this situation of a probably insecure certificate.
And no change to get the certificate fom the SMA portal i guess or set the SMA from HTTPS to HTTP? Dit you also try to get the certificate with:

echo | openssl s_client -showcerts -servername SMAIPADRESS -connect SMAIPADRESS:443 2>/dev/null | awk '/-----BEGIN CERTIFICATE-----/, /-----END CERTIFICATE-----/' >> /usr/local/share/ca-certificates/sma-inverter.crt

update-ca-certificates

If you tried all that, there is no option for JavaScript to connect since javaScript cannot bypass the check like curl does.
beer
Starting Member
Starting Member
Posts: 4
Joined: Mon Feb 08, 2021 10:16 pm

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

Post by beer »

nope extrating the certificate as suggested does not work either

i don't see any option in the webconnect or manual of the sma to disable https

I could try to get the data from sunnyportal, except you need an api key for that. Apparantly i don't have that cause the installer registered the inverter. However i have regular login credentials (user/pass). Maybe we can make the connection through sunny portal on user/pass instead of api key.
oepi-loepi
Advanced Member
Advanced Member
Posts: 628
Joined: Sat Feb 09, 2019 7:18 pm

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

Post by oepi-loepi »

Connect to the webportal on user/pass is not possible. We have tried many, many ways. Maybe it is possible to login to the loacal sma page but for that i need to connect to your inverter to find further possibilities.

I don’t know if you have a pi running somewhere or domoticz? There are some plugins for domoticz to connect to the sma. I made a plugin to connect to domoticz. Other possibility is to change the domoticz plugin and start a webserver on pi which will output a json result to that webserver. Toon can get data from that webserver then.
Panomi
Starting Member
Starting Member
Posts: 7
Joined: Sat Dec 08, 2018 7:17 pm

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

Post by Panomi »

I've downloaded the app from Github and placed it in folder 'solarpanel' in /qmf/qml/apps/. After GUI reboot the app is not loading.
Buitenradar and Sonos works with the same procedure.

Any advice?
oepi-loepi
Advanced Member
Advanced Member
Posts: 628
Joined: Sat Feb 09, 2019 7:18 pm

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

Post by oepi-loepi »

Panomi wrote:I've downloaded the app from Github and placed it in folder 'solarpanel' in /qmf/qml/apps/. After GUI reboot the app is not loading.
Buitenradar and Sonos works with the same procedure.

Any advice?
For this app:

1. update your rooted toon from the tsc menu.
2. goto toonStore and install from there
3. choose the new tiles from the General section.
4. select one of the tiles and goto setup menu and fill in your solar inverter credentials. Your toon will reboot.
5. after reboot you can select the tiles from the solar section.

If you want you install it manually the forlder should be named solarPanel so wit uppercase P
Last edited by oepi-loepi on Mon Feb 22, 2021 7:32 pm, edited 1 time in total.
ravensteijn
Starting Member
Starting Member
Posts: 14
Joined: Tue Apr 21, 2009 10:34 pm
Location: Netherlands

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

Post by ravensteijn »

I've got the app (growatt)working.thnxs!

The only problem is that I can't remove the tile. All other apps no problem.
oepi-loepi
Advanced Member
Advanced Member
Posts: 628
Joined: Sat Feb 09, 2019 7:18 pm

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

Post by oepi-loepi »

ravensteijn wrote:I've got the app (growatt)working.thnxs!

The only problem is that I can't remove the tile. All other apps no problem.
You have to click on the tile top left border and hold for a second.
ravensteijn
Starting Member
Starting Member
Posts: 14
Joined: Tue Apr 21, 2009 10:34 pm
Location: Netherlands

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

Post by ravensteijn »

oepi-loepi wrote:
ravensteijn wrote:I've got the app (growatt)working.thnxs!

The only problem is that I can't remove the tile. All other apps no problem.
You have to click on the tile top left border and hold for a second
Thnxs. :roll:
oepi-loepi
Advanced Member
Advanced Member
Posts: 628
Joined: Sat Feb 09, 2019 7:18 pm

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

Post by oepi-loepi »

Altenery (APS) inverters have been added to the plugins.
Panomi
Starting Member
Starting Member
Posts: 7
Joined: Sat Dec 08, 2018 7:17 pm

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

Post by Panomi »

I'm trying to add one solarpanel. I've configured password and ip for SB 1.5. Upon saving, some checks are done. The application hangs at 'checking solarpanel 2'.?

I've only one inverter...

So, I thought, let's add the second one. Stil hangs at 'checking pluging inverter nr2'....

Restarted the device multiple times.. but hangs when saving settings.

Can somebody advice?
oepi-loepi
Advanced Member
Advanced Member
Posts: 628
Joined: Sat Feb 09, 2019 7:18 pm

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

Post by oepi-loepi »

Switch the toggle on the top “Aantal inverters” to the left.
AppieHeijn
Starting Member
Starting Member
Posts: 2
Joined: Tue Apr 06, 2021 12:56 pm

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

Post by AppieHeijn »

Hello,

I recently bought a Toon V2 and I also have an SMA Tripower 10.0. I don't get it working with solarpanel, tried http and https option. Both are not working
When i login on the SMA by using it ipadres in Chrome, i get first a certificate error (might be the reason it won't work with solarpanel?) after that i get onto the following screen
[img=1174,778]https://tweakers.net/i/ZCbKnzDcVMbkHrg0 ... user_large[/img]
BTW i have acces to the user and also to the installer/admin account on this SMA

Please let me know if I can help in some way to get solarpanel working with this new inverters.
oepi-loepi
Advanced Member
Advanced Member
Posts: 628
Joined: Sat Feb 09, 2019 7:18 pm

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

Post by oepi-loepi »

AppieHeijn wrote:Hello,

I recently bought a Toon V2 and I also have an SMA Tripower 10.0. I don't get it working with solarpanel, tried http and https option. Both are not working
When i login on the SMA by using it ipadres in Chrome, i get first a certificate error (might be the reason it won't work with solarpanel?) after that i get onto the following screen
[img=1174,778]https://tweakers.net/i/ZCbKnzDcVMbkHrg0 ... user_large[/img]
BTW i have acces to the user and also to the installer/admin account on this SMA

Please let me know if I can help in some way to get solarpanel working with this new inverters.
We have tried these new inverters but we couldn’t get them working because of the certificate. I am sorry.
AppieHeijn
Starting Member
Starting Member
Posts: 2
Joined: Tue Apr 06, 2021 12:56 pm

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

Post by AppieHeijn »

Image
Post Reply

Return to “Toon Apps”