# iOS app

**URL:** <https://community.openenergymonitor.org/t/ios-app/1579>\
**Category:** Mobile\
**Tags:** appscollaboration, mobile, ios, emoncms\
**Created:** [14 September 2016 11:47 UTC](https://community.openenergymonitor.org/t/ios-app/1579 "2016-09-14T11:47:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattjgalloway](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/mattjgalloway/32/1172_2.png) [@mattjgalloway](https://community.openenergymonitor.org/u/mattjgalloway)\
**Post date:** [14 September 2016 11:47 UTC](https://community.openenergymonitor.org/t/ios-app/1579/1 "2016-09-14T11:47:50Z")

</div>

After thinking about it for a while, I finally decided to embark on making an iOS app for emoncms.

I’m developing it here: [GitHub - mattjgalloway/emoncms-ios](https://github.com/mattjgalloway/emoncms-ios)

It’s not pretty so far. But you can log in, view a list of your feeds with current value, and see a graph of the last 24 hours of a feed.

My aim is to make it like the Android app.

If anyone wants to help out, let me know! I’m using it as a way to try out some new things, as well as try out Swift 3 properly in a brand new app. I can talk through the design philosophy with anyone who wants to chip in. I’d love to collaborate on this!

![](https://community.openenergymonitor.org/uploads/default/original/2X/b/bd4a8f6ebc2b510c9c5a8536191503b2c8a2b88e.png) ![](https://community.openenergymonitor.org/uploads/default/original/2X/a/a06e22ca998df3211eba4cfb447e8748dae9003c.png) ![](https://community.openenergymonitor.org/uploads/default/original/2X/9/9a5bed83fcbba68b58b65b3bfcfdb02b6b1598af.png)

---

<div class="post-metadata">

**Author:** ![glyn.hudson](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/glyn.hudson/32/35003_2.png) [@glyn.hudson](https://community.openenergymonitor.org/u/glyn.hudson)\
**Post date:** [14 September 2016 12:25 UTC](https://community.openenergymonitor.org/t/ios-app/1579/2 "2016-09-14T12:25:36Z")

</div>

Awesome! Nice work! 👍 😄

I will send out a tweet on the OpenEnergyMonitor twitter to try and find some more IOS developers interested in this.

_I hope you don’t mind, I edited you post to include the screen grabs_

---

<div class="post-metadata">

**Author:** ![Paul](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/paul/32/28_2.png) [@Paul](https://community.openenergymonitor.org/u/Paul)\
**Post date:** [14 September 2016 12:52 UTC](https://community.openenergymonitor.org/t/ios-app/1579/3 "2016-09-14T12:52:39Z")

</div>

Matt, is it being structured in such a way that at some time it could be ported to Android too?  
Or is to purely iOS?

It would be good to have consistency.

Paul

---

<div class="post-metadata">

**Author:** ![Jon](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/jon/32/1876_2.png) [@Jon](https://community.openenergymonitor.org/u/Jon)\
**Post date:** [14 September 2016 15:07 UTC](https://community.openenergymonitor.org/t/ios-app/1579/4 "2016-09-14T15:07:56Z")

</div>

Matt - I can help via testing. I have Xcode loaded up on a MacBook Pro and just need to locate instructions to get your app onto an iPhone (or into iTunes and on the iPhone).

---

<div class="post-metadata">

**Author:** ![mattjgalloway](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/mattjgalloway/32/1172_2.png) [@mattjgalloway](https://community.openenergymonitor.org/u/mattjgalloway)\
**Post date:** [14 September 2016 16:13 UTC](https://community.openenergymonitor.org/t/ios-app/1579/5 "2016-09-14T16:13:52Z")

</div>

> [@glyn.hudson](#):
>
> I hope you don’t mind, I edited you post to include the screen grabs

Not at all! Thanks!

> [@Paul](#):
>
> Matt, is it being structured in such a way that at some time it could be ported to Android too?Or is to purely iOS?

I was going to try out React Native which would have the added benefit of being easier to do an Android version. But I ended up getting a bit bogged down, and realised since my skill really lies in pure iOS, I should stick to that.

> [@Paul](#):
>
> It would be good to have consistency.

We can ensure this even without a combined code base. Even these cross platform libraries you only really get the benefit of sharing some layers of the code - and that layer would be quite thin on an app like this.

> [@Jon](#):
>
> Matt - I can help via testing. I have Xcode loaded up on a MacBook Pro and just need to locate instructions to get your app onto an iPhone (or into iTunes and on the iPhone).

Sweet! Yeh I will set up a beta test program once I’ve got a bit further. It’s very early days so far. I’m sort of playing around with some new Swift/iOS shinyness while I’m making this.

---

<div class="post-metadata">

**Author:** ![bidouilleur](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/bidouilleur/32/12_2.png) [@bidouilleur](https://community.openenergymonitor.org/u/bidouilleur)\
**Post date:** [14 September 2016 16:41 UTC](https://community.openenergymonitor.org/t/ios-app/1579/6 "2016-09-14T16:41:21Z")

</div>

can also help test if needed, am on testflight and also have xcode on machine  
not a coder but used to test for others

---

<div class="post-metadata">

**Author:** ![mattjgalloway](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/mattjgalloway/32/1172_2.png) [@mattjgalloway](https://community.openenergymonitor.org/u/mattjgalloway)\
**Post date:** [14 September 2016 17:46 UTC](https://community.openenergymonitor.org/t/ios-app/1579/7 "2016-09-14T17:46:11Z")

</div>

> [@bidouilleur](#):
>
> can also help test if needed, am on testflight and also have xcode on machinenot a coder but used to test for others

Sweet! I’ll put out a call for email addresses to add people to the beta program once I’m ready for that.

---

<div class="post-metadata">

**Author:** ![Dmacnz](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/d/898d66/32.png) [@Dmacnz](https://community.openenergymonitor.org/u/Dmacnz)\
**Post date:** [14 September 2016 21:09 UTC](https://community.openenergymonitor.org/t/ios-app/1579/8 "2016-09-14T21:09:06Z")

</div>

I’m happy to help out where I can. Limited programming skills. But happy to help where I can. Using a emonpi in my home with a solar PV setup.

---

<div class="post-metadata">

**Author:** ![mattjgalloway](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/mattjgalloway/32/1172_2.png) [@mattjgalloway](https://community.openenergymonitor.org/u/mattjgalloway)\
**Post date:** [14 September 2016 22:12 UTC](https://community.openenergymonitor.org/t/ios-app/1579/9 "2016-09-14T22:12:36Z")

</div>

> [@Dmacnz](#):
>
> I’m happy to help out where I can

Cool! If you’ve got an iPhone/iPod/iPad then testing would be definitely appreciated. If you fancy getting into coding, let me know and I can help you get set up.

---

<div class="post-metadata">

**Author:** ![mattjgalloway](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/mattjgalloway/32/1172_2.png) [@mattjgalloway](https://community.openenergymonitor.org/u/mattjgalloway)\
**Post date:** [14 September 2016 22:15 UTC](https://community.openenergymonitor.org/t/ios-app/1579/10 "2016-09-14T22:15:56Z")

</div>

I’m on my way with a basic MyElectric app.

It pains me that we have to write these 3 times - WWW, Android and iOS. And then there’s the massive duplication between MyElectric, MySolarPV, etc.

The right way to go long term is everything in Javascript, using React, so that it can run on WWW (vanilla React) and mobile (React Native). But that’s a big undertaking, which I don’t have time to do.

---

<div class="post-metadata">

**Author:** ![Dmacnz](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/d/898d66/32.png) [@Dmacnz](https://community.openenergymonitor.org/u/Dmacnz)\
**Post date:** [14 September 2016 23:51 UTC](https://community.openenergymonitor.org/t/ios-app/1579/11 "2016-09-14T23:51:14Z")

</div>

I’m away from my computer for a few more days. But have most Apple gadgets to test it on. Have had a look at xcode in the past.  
Looks like a cool project

---

<div class="post-metadata">

**Author:** ![mattjgalloway](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/mattjgalloway/32/1172_2.png) [@mattjgalloway](https://community.openenergymonitor.org/u/mattjgalloway)\
**Post date:** [15 September 2016 20:45 UTC](https://community.openenergymonitor.org/t/ios-app/1579/12 "2016-09-15T20:45:37Z")

</div>

I got a bit further today…

 ![](https://community.openenergymonitor.org/uploads/default/original/2X/0/0112748685d2935cceeca3a2dd4f1da91c68afba.png)

The styling needs to be done for sure, but this is basically a straight clone of the Android My Electric app. Funnily enough, the charting library I’m using is a direct port of the same charting library that’s used on the emoncms Android app. So getting things looking similar is pretty easy!

Just a few more tweaks on that and it’ll be usable. Things that need doing:

- “Use today” is clearly not right - it’s just the current value of the kWh feed. Just testing!
- Bar chart needs a little bit of styling to get the nice M T W T F S S in the bottom of the bars.
- It needs to auto-update. And probably a refresh button in the top right.
- It needs buttons to change to 1 hour, 8 hour, 1 day, zoom, pan, etc.

But we’re getting there!

---

<div class="post-metadata">

**Author:** ![Paul](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/paul/32/28_2.png) [@Paul](https://community.openenergymonitor.org/u/Paul)\
**Post date:** [15 September 2016 21:44 UTC](https://community.openenergymonitor.org/t/ios-app/1579/13 "2016-09-15T21:44:24Z")

</div>

It’s looking good Matt!

Paul

---

<div class="post-metadata">

**Author:** ![Jon](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/jon/32/1876_2.png) [@Jon](https://community.openenergymonitor.org/u/Jon)\
**Post date:** [16 September 2016 00:43 UTC](https://community.openenergymonitor.org/t/ios-app/1579/14 "2016-09-16T00:43:46Z")

</div>

for what it is worth - I like the nice clean white background like in the first post. I am personally not a fan of dark backgrounds. Just my 2 cents worth as an armchair quarterback / back seat driver! 😉

---

<div class="post-metadata">

**Author:** ![jeremypoulter](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/jeremypoulter/32/1006_2.png) [@jeremypoulter](https://community.openenergymonitor.org/u/jeremypoulter)\
**Post date:** [16 September 2016 08:22 UTC](https://community.openenergymonitor.org/t/ios-app/1579/15 "2016-09-16T08:22:39Z")

</div>

> [@mattjgalloway](#):
>
> It pains me that we have to write these 3 times - WWW, Android and iOS. And then there’s the massive duplication between MyElectric, MySolarPV, etc.

I have been thinking that maybe we could do something similar to the dashboard editor that is more targeted at full screen/mobile/tablet display.

Then just the rendering of these would have to be ported to the different platforms.

---

<div class="post-metadata">

**Author:** ![pb66](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/pb66/32/27_2.png) [@pb66](https://community.openenergymonitor.org/u/pb66)\
**Post date:** [16 September 2016 11:46 UTC](https://community.openenergymonitor.org/t/ios-app/1579/16 "2016-09-16T11:46:59Z")

</div>

> [@mattjgalloway](#):
>
> I’m on my way with a basic MyElectric app.
> 
> It pains me that we have to write these 3 times - WWW, Android and iOS. And then there’s the massive duplication between MyElectric, MySolarPV, etc.

Hi Matt, Like what doing, personally I do not use iOS but I was interested by your original approach which looked more like the mainstream or full emoncms feed page than the emoncms apps. Is that a route you intend to pursue further or are you now going for the emoncms apps as the main feature set?

With regard to the MyElectric and MySolar duplication, I wanted to mention some change in the pipeline for the AndroidApp that I would also like to add to the emoncms web apps, so you may want to concider them here too?

Whilst the MySolar app is quite specific to the overall picture (but could have alternatives eg your MyDiverted app or hydro/wind etc) and would usually (but not always) only be needed once in any account, the MyElectric app is a simple report based on a single power&energy feed pair, This could be used for several different feed pairs to report a multitude of different things from the more obvious electricals (eg EV charging or hot-tub heating etc) but also as “rate & total” pairs, other instances of “MyElectric” could also report gas, oil or water consumption or even rainfall etc too.

It would be good to collaborate and move the AndroidApp, emoncms apps and the iOS app forward together for this, if you have any interest in making “myElectric” a group of user defined (freetext title/2x feeds/1x colour each) pages rather than a single page, I think many users would find this extremely useful.

[Android programmer to expand MyElectric app](https://community.openenergymonitor.org/t/android-programmer-to-expand-myelectric-app/1397)

We are also in the process of making the AndroidApp multi account too, but I understand that maybe a less appealing feature as many users only have a single emoncms account.

---

<div class="post-metadata">

**Author:** ![mattjgalloway](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/mattjgalloway/32/1172_2.png) [@mattjgalloway](https://community.openenergymonitor.org/u/mattjgalloway)\
**Post date:** [16 September 2016 14:49 UTC](https://community.openenergymonitor.org/t/ios-app/1579/17 "2016-09-16T14:49:21Z")

</div>

> [@Jon](#):
>
> for what it is worth - I like the nice clean white background like in the first post. I am personally not a fan of dark backgrounds. Just my 2 cents worth as an armchair quarterback / back seat driver!

I tend to agree. I just wanted to make it the same for now. Although it doesn’t really fit in with the iOS way. So I think it does need to change.

> [@jeremypoulter](#):
>
> I have been thinking that maybe we could do something similar to the dashboard editor that is more targeted at full screen/mobile/tablet display.

Totally agree. I would love to add something like that eventually!

> [@pb66](#):
>
> It would be good to collaborate and move the AndroidApp

YES YES, and YES. Any thoughts on best ways we can collaborate? Should we have some place where we discuss things? And maybe come up with a combined roadmap? This goes with your other points. It would be great to share a roadmap so that we can keep track of where everything is going so as not to diverge, and also share in the thoughts of each app.

> [@pb66](#):
>
> We are also in the process of making the AndroidApp multi account too, but I understand that maybe a less appealing feature as many users only have a single emoncms account.

It’s part of my design from the start for iOS. It’s not there just yet, because it’s not top priority, but it’ll work eventually 😃

---

<div class="post-metadata">

**Author:** ![pb66](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/pb66/32/27_2.png) [@pb66](https://community.openenergymonitor.org/u/pb66)\
**Post date:** [16 September 2016 16:56 UTC](https://community.openenergymonitor.org/t/ios-app/1579/18 "2016-09-16T16:56:42Z")

</div>

> [@mattjgalloway](#):
>
> Any thoughts on best ways we can collaborate? Should we have some place where we discuss things? And maybe come up with a combined roadmap?

I actually like having an open discussion in an easily accessible and central location, like here on the forum and then raising specific tasks/bugs/todo’s etc as issues on GitHub, that keeps the chit chat out of the “issues” and keeps everyone involved in the discussions rather than developing behind closed doors, from the forum, issues can be linked rather than spreading one discussion across many locations. In this instance though there are at least 3 repo’s (iOS, Android and web apps) in play and with multiple contributors this could easily double/triple.

Since we will not all get access to multiple emoncms repo’s to make use of the issue tracking labels, assignment and milestones I could set up a dummy/temporary github repo just for some central issue tracking during development, that way we can all have some access.

---

<div class="post-metadata">

**Author:** ![mattjgalloway](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/mattjgalloway/32/1172_2.png) [@mattjgalloway](https://community.openenergymonitor.org/u/mattjgalloway)\
**Post date:** [17 September 2016 07:32 UTC](https://community.openenergymonitor.org/t/ios-app/1579/19 "2016-09-17T07:32:17Z")

</div>

> [@pb66](#):
>
> I actually like having an open discussion in an easily accessible and central location, like here on the forum and then raising specific tasks/bugs/todo’s etc as issues on GitHub, that keeps the chit chat out of the “issues” and keeps everyone involved in the discussions rather than developing behind closed doors, from the forum, issues can be linked rather than spreading one discussion across many locations. In this instance though there are at least 3 repo’s (iOS, Android and web apps) in play and with multiple contributors this could easily double/triple.

Yeh, having the discussion on here is fine. I just wondered if we should ask for a separate section? Or actually, we can just use a tag. I tagged this post with “mobile” for example. I’ve not used Discourse much, but maybe there’s a way to subscribe to a tag so that interested people can be notified when there’s a mobile discussion going on?!

---

<div class="post-metadata">

**Author:** ![pb66](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/pb66/32/27_2.png) [@pb66](https://community.openenergymonitor.org/u/pb66)\
**Post date:** [17 September 2016 08:49 UTC](https://community.openenergymonitor.org/t/ios-app/1579/20 "2016-09-17T08:49:24Z")

</div>

> [@mattjgalloway](#):
>
> but maybe there’s a way to subscribe to a tag

If you click on any “mobile” tag you will get [this page](https://community.openenergymonitor.org/tags/mobile), on the right near the top, directly under your profile pic/button, there is a dropdown offering these options

![](https://community.openenergymonitor.org/uploads/default/original/2X/4/437b82ab5fe62747002298afeaa57716a359b55b.png)

so it is possible to get notified, perhaps an “appscollaboration” tag would be less likely to get used for general mobile related topics and could include the emoncms web apps too?

EDIT - See the [appscollaboration](https://community.openenergymonitor.org/tags/appscollaboration) tag.

[Next page](https://community.openenergymonitor.org/t/ios-app/1579.md?page=2)
