Toon app: mySolar (FP4ALL)

Forum about forum-provided applications on Toon

Moderators: marcelr, TheHogNL, Toonz

Marek320
Starting Member
Starting Member
Posts: 3
Joined: Sun Mar 10, 2019 11:02 am

Re: Toon app: mySolar (FP4ALL)

Post by Marek320 »

It is Solar Edge, and i'm totally unknown in this area.

How can I get the information about it and where should I search?
Marek320
Starting Member
Starting Member
Posts: 3
Joined: Sun Mar 10, 2019 11:02 am

Re: Toon app: mySolar (FP4ALL)

Post by Marek320 »

SDeath
Member
Member
Posts: 53
Joined: Tue Jan 01, 2019 5:23 pm

Re: Toon app: mySolar (FP4ALL)

Post by SDeath »

Hi Marek,

I've seen the same document indeed.
There are some limitations though:
Daily Limitation
Use of the monitoring server API is subject to a query limit of 300 requests for a specific account token and a parallel query limit
of 300 requests for each specific site ID from the same source IP.
Which means it isn't going to be realtime data, like I can do on my FP4All logger, which I can fetch every second for realtime data.
It will be every 5 minutes or something like that.
Will that be of any use?
Toon1 running firmware 5.33.9 (rooted)
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon app: mySolar (FP4ALL)

Post by TheHogNL »

The Solaredge inverter doesn't push the data any time faster to the servers also, so 5 min. is probably enough. And gathering data while the sun is set isn't necessary also by the way :-)

But I'm wondering why you want this? ZonopToon can show this information (you only need to install a extra kWh meter, but that is not that expensive).
Member of the Toon Software Collective
SDeath
Member
Member
Posts: 53
Joined: Tue Jan 01, 2019 5:23 pm

Re: Toon app: mySolar (FP4ALL)

Post by SDeath »

So a direct pull from the inverter like I can do with the FP4All logger would more functional, hence the question if it would be usefull for him, and sure you can stop doing that during the night but still it would be delayed data for a few minutes. So live power readings would be useless.
Unless for total power for the day.

The kWh meter for my 3 fase installation would cost €199, not very cheap, according to the ZonopToon website.
And my dual cabinet breaker box is already full, so I have nowhere to put it in my situation.
Toon1 running firmware 5.33.9 (rooted)
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon app: mySolar (FP4ALL)

Post by TheHogNL »

Realtime data from a solaredge inverter is available if you connect to modbus but that is another thing.


For zonoptoon you could use https://www.kwhmeter.nl/Webwinkel-Produ ... keurd.html also.
Probably you can feed your fp4logger data directy to the toon to skip this installation of the kWh meter. But for that you will need to simulate the pulses in to meteradapter. I am doing exactly that (from my own solar installation) in this python script. The raspberry pi GPIO 18 connects to my meteradapter. Result is a perfect running zonoptoon, near realtime data.

Code: Select all

import RPi.GPIO as GPIO
import requests
import time
import urllib


GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.OUT)

# how long in seconds should the pulse set to HIGH to be detected by the connect equipment
ledPulseWidth = 0.01
# after how many seconds new realtime Watts should be collected from the solar installation
collectWattsInterval = 5
# Start watts, can not be zero due to division by zero so initial is a bit higher
watts = 0.01
# pulses per WattHour which the script should simulate (pwh = 2  is the same as 2000 imp/kWh)
pwh = 2
# value is used to calculate the last generated pulse
last = time.time()


def getWatts():
        r = requests.get('a url to get json data showing realtime generated solar data')
        json = r.json()
        value = json['results'][0]['series'][0]['values'][0][1]
        try:
                newwatts = float(value)
        except ValueError:
                newwatts = watts
        print "New watts: ",newwatts
        return newwatts

watts = getWatts()
lastWattsPull=time.time()
nextPulseTime = 3600/watts/pwh

while True:
        if (time.time() > (last+nextPulseTime)):
                last = time.time()
                nextPulseTime = float(3600/watts/pwh)
                if (watts > 10):
                        GPIO.output(18,GPIO.HIGH)
                        print "pulse"
                        time.sleep(ledPulseWidth)
                        GPIO.output(18,GPIO.LOW)
        if (time.time() > (lastWattsPull+collectWattsInterval)):
                watts = getWatts()
                lastWattsPull=time.time()
        time.sleep(0.01)
GPIO.cleanup()
The debug output is like this:

Code: Select all

pulse
New watts:  346.646002867
pulse
New watts:  346.646002867
pulse
New watts:  346.646002867
pulse
New watts:  344.85
pulse
New watts:  336.025598423
pulse
New watts:  336.025598423
pulse
New watts:  324.025598423
pulse
New watts:  316.45080388
pulse
New watts:  316.45080388
pulse
New watts:  316.45080388
pulse
New watts:  316.45080388
pulse
New watts:  306.674213404
New watts:  306.674213404
pulse
Member of the Toon Software Collective
SDeath
Member
Member
Posts: 53
Joined: Tue Jan 01, 2019 5:23 pm

Re: Toon app: mySolar (FP4ALL)

Post by SDeath »

How would that be connected to the meteradapter?
I have analog gas and power sensors, not a P1 capable meter.
Toon1 running firmware 5.33.9 (rooted)
TheHogNL
Forum Moderator
Forum Moderator
Posts: 2125
Joined: Sun Aug 20, 2017 8:53 pm

Re: Toon app: mySolar (FP4ALL)

Post by TheHogNL »

It should be connected as a normal S0 connection to the ZonopToon (see download/file.php?id=3515 and viewtopic.php?f=95&t=11969&hilit=zonopt ... =15#p85351)

But you must have a smart P1 meter to do this (as zonoptoon requires also the delivered-to-the-grid counter from the smart meter) and the zonoptoon S0 connects to the analog port of the meteradapter (which you now are using for the normal kwh meter). No worries, within two years all houses should have P1 meters installed, isn't it? :-)
Member of the Toon Software Collective
Arnolddebeer
Starting Member
Starting Member
Posts: 5
Joined: Sun Mar 03, 2019 2:04 pm

Re: Toon app: mySolar (FP4ALL)

Post by Arnolddebeer »

Hi there.

I've got a new meter that has 4 counters 2 for what i use and 2 for what i diliver to the net

If i check in the toon the meter numbers i see all 4 of them does anyone know how to get them into zon op toon?
Regards
marcelr
Global Moderator
Global Moderator
Posts: 1153
Joined: Thu May 10, 2012 10:58 pm
Location: Ehv

Re: Toon app: mySolar (FP4ALL)

Post by marcelr »

The data will not show up in zon op toon. That module uses S0 signals coming from an optical sensor attached to a kWh meter or data from a zwave-enabled kWh meter.
Chris83
Starting Member
Starting Member
Posts: 4
Joined: Sat Oct 19, 2019 1:34 pm

Re: Toon app: mySolar (FP4ALL)

Post by Chris83 »

i have a steca 500 logger from FP4all, Will this also work?
Toonz
Forum Moderator
Forum Moderator
Posts: 1873
Joined: Mon Dec 19, 2016 1:58 pm

Re: Toon app: mySolar (FP4ALL)

Post by Toonz »

hi all,

version 1.0.4 is available in the ToonStore, no new functionality but preparing for the future move to GitHub for all custom apps.
Changelog:
- settings json files moved to the /mnt/data/tsc folder
- firmware 5 compatible only, support for lower firmwares has been dropped

Kind regardz,

Toonz
member of the Toon Software Collective
Ossegek
Starting Member
Starting Member
Posts: 28
Joined: Mon Dec 09, 2019 1:08 pm

Re: Toon app: mySolar (FP4ALL)

Post by Ossegek »

SDeath wrote:Hi Marek,

I've seen the same document indeed.
There are some limitations though:
Daily Limitation
Use of the monitoring server API is subject to a query limit of 300 requests for a specific account token and a parallel query limit
of 300 requests for each specific site ID from the same source IP.
Which means it isn't going to be realtime data, like I can do on my FP4All logger, which I can fetch every second for realtime data.
It will be every 5 minutes or something like that.
Will that be of any use?
Beter late than never, for me it's not a problem that there is a delay for 5 minutes. And i like the idea not to spend any € extra to read out the data.
So if you can, i like to have the option for SolarEdge in you're app.
ralph123
Starting Member
Starting Member
Posts: 7
Joined: Sat Jan 11, 2020 11:51 pm

Re: Toon app: mySolar (FP4ALL)

Post by ralph123 »

I found a pyton script that reads the api.

https://pypi.org/project/solaredge/
Ridder
Starting Member
Starting Member
Posts: 4
Joined: Sun Mar 07, 2021 10:28 pm

Re: Toon app: mySolar (FP4ALL)

Post by Ridder »

Just installed my rooted Toon and it has mySolar installed.
I put the IP address of my inverter in (Growatt 3600 MTL) but there are no data on Toon...
When I connect to the inverter with its IP address in a browser, I need to put in my login name and password.....where can I do that on the Toon?

I also have a kWh meter and `i connected it to Toon, but I am not shure if I connected it the right way....on 1 terminal I put the white wire (that should be the left channel/tip of the jack plug) and the others on the other terminal: red and common ground (the metal shielding of the 2 wires).
Should it be visible on the meter adapter if it is receicing pulses?
Now both leds blink every ~10m seconds (flame and lightning)
Gas and electricity consumption via P1 work fine.....
Post Reply

Return to “Toon Apps”