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

Forum about forum-provided applications on Toon

Moderators: marcelr, TerrorSource, Toonz, TheHogNL

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

Postby beer » Fri Feb 12, 2021 12:57 am

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.
beer
Starting Member
Starting Member
 
Posts: 4
Joined: February 2021

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

Postby oepi-loepi » Fri Feb 12, 2021 1:09 pm

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.
oepi-loepi
Member
Member
 
Posts: 272
Joined: February 2019

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

Postby beer » Fri Feb 12, 2021 7:40 pm

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.
beer
Starting Member
Starting Member
 
Posts: 4
Joined: February 2021

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

Postby oepi-loepi » Fri Feb 12, 2021 10:02 pm

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.
oepi-loepi
Member
Member
 
Posts: 272
Joined: February 2019

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

Postby Panomi » Sat Feb 20, 2021 7:25 pm

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?
Panomi
Starting Member
Starting Member
 
Posts: 7
Joined: December 2018

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

Postby oepi-loepi » Mon Feb 22, 2021 5:59 pm

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.
oepi-loepi
Member
Member
 
Posts: 272
Joined: February 2019

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

Postby ravensteijn » Mon Feb 22, 2021 7:23 pm

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

The only problem is that I can't remove the tile. All other apps no problem.
ravensteijn
Starting Member
Starting Member
 
Posts: 14
Joined: April 2009
Location: Netherlands

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

Postby oepi-loepi » Mon Feb 22, 2021 7:29 pm

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.
oepi-loepi
Member
Member
 
Posts: 272
Joined: February 2019

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

Postby ravensteijn » Mon Feb 22, 2021 8:16 pm

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:
ravensteijn
Starting Member
Starting Member
 
Posts: 14
Joined: April 2009
Location: Netherlands

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

Postby oepi-loepi » Sun Mar 07, 2021 11:02 am

Altenery (APS) inverters have been added to the plugins.
oepi-loepi
Member
Member
 
Posts: 272
Joined: February 2019

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

Postby Panomi » Wed Mar 31, 2021 6:52 pm

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?
Panomi
Starting Member
Starting Member
 
Posts: 7
Joined: December 2018

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

Postby oepi-loepi » Thu Apr 01, 2021 8:11 pm

Switch the toggle on the top “Aantal inverters” to the left.
oepi-loepi
Member
Member
 
Posts: 272
Joined: February 2019

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

Postby AppieHeijn » Tue Apr 06, 2021 1:12 pm

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/ZCbKnzDcVMbkHrg03rtVvOa7Amc=/full-fit-in/4000x4000/filters:no_upscale():fill(white):strip_exif()/f/image/z71S5mYMn6uVLT3v037m4MOX.png?f=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.
AppieHeijn
Starting Member
Starting Member
 
Posts: 2
Joined: April 2021

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

Postby oepi-loepi » Tue Apr 06, 2021 6:41 pm

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/ZCbKnzDcVMbkHrg03rtVvOa7Amc=/full-fit-in/4000x4000/filters:no_upscale():fill(white):strip_exif()/f/image/z71S5mYMn6uVLT3v037m4MOX.png?f=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.
oepi-loepi
Member
Member
 
Posts: 272
Joined: February 2019

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

Postby AppieHeijn » Tue Apr 06, 2021 6:44 pm

Image
AppieHeijn
Starting Member
Starting Member
 
Posts: 2
Joined: April 2021

PreviousNext

Return to Toon Apps

Who is online

Users browsing this forum: No registered users and 1 guest

cron