iPhone Web App for pvoutput.org

  • Idea
  • Updated 5 months ago
I have created a simple Web App for the iPhone that I have been using to monitor my own installation. This uses the pvoutput.org APIs and should now work for any installation. Let me know if you would be interested in trying this out.



You can mail me at mark@briggsplace.co.uk
Photo of MarkM

Mark

  • 120 Posts
  • 14 Reply Likes

Posted 3 years ago

  • 6
Photo of bankstownbloke

bankstownbloke

  • 2708 Posts
  • 78 Reply Likes
Looks great, any chance of a public release?
Photo of Eric Sandeen

Eric Sandeen

  • 168 Posts
  • 4 Reply Likes
If it's a web app, can you just post the URL?
Photo of MarkM

Mark

  • 120 Posts
  • 14 Reply Likes
IMPORTANT: Please note I am in the process of moving this Web app to a different host. As a result the urls in this documentation have been amended. Please update your bookmarks accordingly.

Ok there is some documentation below. Please try it out and let me know what you think.

This iPhone Web app has been developed to monitor live generation via pvoutput.org. It can also display live consumption information if that is also logged on pvoutput.org.

The Web app is currently located at the following url:

http://pvoutput.web44.net/index.php

In order to access the above url the following mandatory parameters must be specified to call the Web app:
Parameter Description Example
sid System ID 3764
key API key mykey

The API key can be generated via your Settings page when logged on to pvoutput.org

Therefore an example url would be as follows:

http://pvoutput.web44.net/index.php?sid=3764&key=mykey
The following optional parameters can also be specified on the above url:
Parameter Description Example
cons Display Consumption 1
pmax Max Power Consumption (W) 3000
emax Max Energy Consumption (kWh) 15
m1 Jan Generation Target (kWh) 100
m2 Feb Generation Target (kWh) 147
m3 Mar Generation Target (kWh) 225
m4 Apr Generation Target (kWh) 312
m5 May Generation Target (kWh) 370
m6 Jun Generation Target (kWh) 350
m7 Jul Generation Target (kWh) 374
m8 Aug Generation Target (kWh) 333
m9 Sep Generation Target (kWh) 268
m10 Oct Generation Target (kWh) 191
m11 Nov Generation Target (kWh) 113
m12 Dec Generation Target (kWh) 72

If the cons parameter is set to ‘1’ then gauges will be displayed showing instantaneous power consumption and daily cumulative energy consumption.

The pmax parameter is used to denote the 100% point on the instantaneous power consumption gauge.

The emax parameter is used to denote the 100% point on the daily cumulative energy consumption gauge.

The m1-12 parameters are used to denote the monthly generation target and are used to display the daily target, the % generation and to calibrate the daily cumulative energy generation gauge.

Therefore an example url might look as follows:

http://pvoutput.web44.net/index.php?sid=3764&key=mykey&cons=1&pmax=3000&emax=15&m1=100&m2=147&m3=225&m4=312&m5=370&m6=350&m7=374&m8=333&m9=268&m10=191&m11=113&m12=72
This may look difficult to enter but this only needs to be done once on the iPhone. The Web app can then be added to the Home Screen from Safari using the icon and then selecting ‘Add to Home Screen’:



This will place an icon on the Home Screen of your iPhone which should then be used to access the Web app.

Web app screenshots


Photo of Eric Sandeen

Eric Sandeen

  • 168 Posts
  • 4 Reply Likes
Finally tried it out; pretty cool! No consumption graph, though?

Actually with cons=1 I lose the gauges, and have only the production graph...
Photo of MarkM

Mark

  • 120 Posts
  • 14 Reply Likes
I have added the consumption graph if cons=1

The missing gauge was due to pmax and emax not being passed. I have now defaulted these values to 3000 and 15 respectively.

Please try again.
Photo of nicholsbeN

nicholsbe

  • 18 Posts
  • 0 Reply Likes
Love this! I wonder if BB would be interested in redirecting mobile traffic to pvoutput over to a similar layout? Would also love to see more custom display options (similar to the full web site) optimized for mobile traffic.
Thanks!
Photo of MarkM

Mark

  • 120 Posts
  • 14 Reply Likes
I have added a temperature gauge which should be visible if you upload temperature data to your pvoutput.org installation....

Photo of Scott Robuck

Scott Robuck

  • 48 Posts
  • 0 Reply Likes
Hi Mark... Thanks for your wonderful use of the API. Is there an optional parameter to change Celsius to Fahrenheit?
Photo of Marcel030NL

Marcel030NL

  • 19 Posts
  • 1 Reply Like
Option has been added on your request. http://pvdashboard.org
Photo of nicholsbeN

nicholsbe

  • 18 Posts
  • 0 Reply Likes
Hi Mark,
Love your Web app and I use it daily. I was wondering how the background color is calculated? It gets more red as there is more production. I was wondering if you could incorporate net for those of us that are collecting both production and consumption data? For example, if I'm consuming a lot more than production, have the color be red but if I'm producing a ton make it more green? And not a big deal to me, but some others might like a Fahrenheit option for the temp.
Thanks again!
Brian
Photo of MarkM

Mark

  • 120 Posts
  • 14 Reply Likes
Hi nicholsbe,

I am glad that you are finding it useful. When I created the app it was just for my own use but I then realised that it would be relatively easy to parameterise it to allow anyone with a pvoutput account to access it. Unfortunately I don't have much free time to make any significant enhancements at the minute but I will bear in mind your suggestions.

Currently the background colour is set based on instantaneous power output. There are 10 colours that you can see at the bottom of the Generation section which relate to 10% increments of the maximum power output (parameter pmax). On the image just above you can see that the power output is 2604W and I have pmax=3300. Therefore the colour is the 8th in the scale representing 70-80% of max output.
Photo of nicholsbeN

nicholsbe

  • 18 Posts
  • 0 Reply Likes
Thanks for the Net meter!
Brian
Photo of gm4jjjG

gm4jjj

  • 35 Posts
  • 0 Reply Likes
Thanks Brian - much appreciated.
Photo of eric martensEM

eric martens

  • 12 Posts
  • 0 Reply Likes
works great
Photo of eric martensEM

eric martens

  • 12 Posts
  • 0 Reply Likes
is there a way to get compare 3 systems on one web page?
Photo of MarkM

Mark

  • 120 Posts
  • 14 Reply Likes
Are you referring to the Web App or the pvoutput.org website?

The Web App is only designed to display data from a single system.
Photo of eric martensEM

eric martens

  • 12 Posts
  • 0 Reply Likes
can i get a copy of it to put on my website so I don't have to use yours?
Photo of MarkM

Mark

  • 120 Posts
  • 14 Reply Likes
Sorry no I am not willing to give away the source code. Why do you want this?
Photo of eric martensEM

eric martens

  • 12 Posts
  • 0 Reply Likes
just so i am not going halfway around the world each time i check my system
Photo of Chris Yang

Chris Yang

  • 19 Posts
  • 0 Reply Likes
Awesome! Love it. Perfect for my iPhone and I opened it in Safari on my Mac and used the webclip feature to make a dashboard app.
Photo of MarkM

Mark

  • 120 Posts
  • 14 Reply Likes
Nice one! Glad you like it. I did the same on the iMac :-)
Photo of David Lucas-MedwayComputers

David Lucas-MedwayComputers

  • 20 Posts
  • 1 Reply Like
Hi,
I'm new to this solar and have just had panels installed with a Sunny boy inverter that has bluetooth.
How do I get the data from my sunny boy to pvoutput using my MAC please?
and how do I create the web clip

I have setup the pvoutput account.

thankyou.
Photo of MarkM

Mark

  • 120 Posts
  • 14 Reply Likes
There are a number of options. I use a windows machine with bluetooth and Sunny Explorer to communicate with the inverter. I then installed and configured PVBeanCounter to automatically upload the data to pvoutput.

On your mac you create a web clip in Safari via the File -> Open in Dashboard... menu
Photo of Roman

Roman

  • 13 Posts
  • 0 Reply Likes
Is your site getting overloaded? I got the following message...

Forbidden 403: Exceeded 60 requests per hour
Photo of MarkM

Mark

  • 120 Posts
  • 14 Reply Likes
No - This is a restriction of the pvoutput API. You are making too many requests per hour!

Please see the following section in the API documentation:

http://pvoutput.org/help.html#api-rat...

"Forbidden 403: Exceeded 60 requests per hour
The maximum number of requests per hour has been reached for the API key. Wait till the next hour before making further requests."
Photo of Roman

Roman

  • 13 Posts
  • 0 Reply Likes
I only tried it about 10 times just to get the syntax correct. Not 60, that for sure, unless each time I access the URL it queries the API multiple times.
Photo of MarkM

Mark

  • 120 Posts
  • 14 Reply Likes
Each access of the url makes a total of 2 API calls (one to getStatus and one to getStatistic). Additionally the webpage auto refreshes every 5 minutes.