Accessing Emoncms from anywhere using HUAWEI E220

Hello,

First just to mention I am beginner into this new world :)

 I have RFM69Pi Raspberry Pi Base Station board (only board since I have my own raspberry, sd card and Wifi dongle) and emonTH Temp and Hum Node

 

Currently its working great I receive the Temp, Hum & voltage and I am able to see the graph by writing the ip in the browser.​

My goal is to access the data from any where using internet.

I am able to connect raspberry pi with USB dongle (HUAWEI E220) and I try to access web page (such as google.com)

My question is how to integrate the USB dongle with the station board so I can access emoncms from any where and view my data

Thanks for your help in advance :)

M7md's picture

Re: Accessing Emoncms from anywhere using HUAWEI E220

Still stuck at the same point :(

Appreciate any link, help or idea can resolve the issue.

Robert Wall's picture

Re: Accessing Emoncms from anywhere using HUAWEI E220

Do a search here for "Huawei" and you'll find some references. Have you looked at the Raspberry Pi website and their forums? I'm no networking expert, but I think yours is a general problem, not specifically emonCMS. 

Bramco's picture

Re: Accessing Emoncms from anywhere using HUAWEI E220

As Robert says, if you want to access your local Pi from outside your firewall (which is in your router) your problem is more generic than an emoncms problem.

If you want to do this then you make the Pi visible from outside the firewall by allowing access to it's internal address and port (80) by changing the settings in your router. You will probably also have to set up an account at duckdns (or similar) if your isp gives you a variable ip address in it's network. If you have a fixed address you won't need this. But all of the instructions to do this are freely available with a bit of searching on the internet and at your isp.

The 2nd option and probably by far the easiest is to send your data in parallel  to emoncms.org and access it from there. You can adjust your emonhub settings to do this, instructions are on the site if you search. Once you have the data being received in the public emoncms.org setup you can set up your feeds and dashboards to duplicate what you have locally. Don't think there's a way to copy your feeds and dashboards from your local pi to the .org site but it shouldn't take long to set up .org as a duplicate as it sounds as if you only have a couple of inputs. I would take this route unless there are other reasons for wanting to access the pi on your local network.

Simon

M7md's picture

Re: Accessing Emoncms from anywhere using HUAWEI E220

Thank you Robert and

Thank you very much Bramco, this was very helpful. In the last days, I was reading about forwarding port method but unfortunately port 80 is blocked even though I open it from router :(

The good news that I am able to do it with the second method which is through emoncms.org which a great improvement.

Now I connected my raspberry pi with HUWAWI E220 USB modem and its work fine and updating with emoncms.org

But still I need to access the data and see the graphs from internet/ remote places without using the emoncms.org, any alternative solution?

Bramco's picture

Re: Accessing Emoncms from anywhere using HUAWEI E220

Emoncms.org is a public website. So you can access it from anywhere in the world!

Robert Wall's picture

Re: Accessing Emoncms from anywhere using HUAWEI E220

M7md: "I need to access the data and see the graphs from internet/ remote places without using the emoncms.org"

[My emphasis]  I read that as meaning that M7md wants to access his Raspberry Pi, and presumably his customised emonCMS, from anywhere in the world. That means he needs a static IP address from his Internet provider, and he needs to enable access from outside his local network, if that's not already done.

Bramco's picture

Re: Accessing Emoncms from anywhere using HUAWEI E220

Hi Robert, guess we'll see if the OP responds, although your interpretation/translation is probably right.

I wasn't sure why they wouldn't want to access via emoncms.org and wanted to make it clear that was probably the only route if port 80 is blocked on their router.

Simon

 

M7md's picture

Re: Accessing Emoncms from anywhere using HUAWEI E220

Hi Bramco and Robert,

as Robert mention I want to access it from anywhere in the world but I am unable to open port 80 

In the last few days I was thinking about the this option as alternative:

Buy a domain and upload emoncms on it (Is it possible? or any better idea?)

 

OK, My next step is to have a threshold that when it reach certain limit it will give a notification to the mobile, for example I will set the Temp limit to 40C. If it reach to it I want a notification to my mobile either iOS or andriod.

Is it done earlier? any hints how to do it? :)

 

Bramco's picture

Re: Accessing Emoncms from anywhere using HUAWEI E220

M7md - I don't think you understood the earlier information about emoncms.org

You don't have to have any local installation of emoncms or your own copy on your own domain. All you have to do is to set up an account on the public site emoncms.org (http://emoncms.org/site/home). Once you have set up an account you can use all of the functionality. All you have to do to see your data is to make sure that you send it to emoncms.org from your emonTX or emonTH using the apikey for your account. There is full documentation on how to set this up on the site if you follow the link above.

As for sending an alert to your mobile, there are several ways of doing that. There is a new event module - check this link out -> http://openenergymonitor.org/emon/node/12083

simon

M7md's picture

Re: Accessing Emoncms from anywhere using HUAWEI E220

Hi Simon, thanks for your fast reply.

I understand your point. Currently I am running my system on emoncms.org and its updating and working fine with me.

However, my concern was to have another alternative reliable solution incase of website crash or server fail. 

For mobile alert point, I checked the link and its look great!! Is it implemented already or I need to integrate it?

 

pb66's picture

Re: Accessing Emoncms from anywhere using HUAWEI E220

It may well be possible to open a different port and serve emoncms on another port rather than 80 by tweaking the server set up. node-red, openhab etc all serve via a non-80 port.

You may perhaps be better off with shared hosting or (my preference) a second Pi elsewhere with a Ethernet or WiFi connection for a emoncms server. A 3g server may become slow and/or expensive if you have a lot of data/content and/or access it frequently, depends on your tariff, coverage and application.

Paul

MrGlasspoole's picture

Re: Accessing Emoncms from anywhere using HUAWEI E220

If you want to do that then you better dive into the world of securing a LAN and hardening Linux.
If you don't know what you are doing and make your LAN accessible from WAN maybe someday somebody turns your lights on and off or turns on your sprinkler in the garden *lol

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.