# Can't connect to emoncms local

**URL:** <https://community.openenergymonitor.org/t/cant-connect-to-emoncms-local/16287>\
**Category:** Emoncms\
**Tags:** emonpi, emoncms\
**Created:** [19 December 2020 19:03 UTC](https://community.openenergymonitor.org/t/cant-connect-to-emoncms-local/16287 "2020-12-19T19:03:39Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![johnbanks](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/c6cbf5/32.png) [@johnbanks](https://community.openenergymonitor.org/u/johnbanks)\
**Post date:** [23 December 2020 23:08 UTC](https://community.openenergymonitor.org/t/cant-connect-to-emoncms-local/16287/24 "2020-12-23T23:08:10Z")

</div>

@pearsonhenry2  
Yes – “If the Pi drops off the WiFi it can’t then tell you is isn’t on the network”.

An alternative (which I use) could be to run a script (daily?) that sends you an email with the message eg: “ALL OK – I’m online”. Then if you don’t receive the daily email you know something is amiss.

It appears that you are concerned about feeds to [emoncms.org](http://emoncms.org) not happening.  
If [emoncms.org](http://emoncms.org) is used solely for backup reasons then having a local backup would side step the loss of WiFi issue.

The local backup would be to the SDHC but it could also be copied to a USB flash drive as an added protection:

> [@Automatic backup](https://community.openenergymonitor.org/t/automatic-backup/16243/17):
>
> @TrystanLea Whilst this is not an automated backup solution to USB, it may be a starting point? I’m running the July 2020 emon image updated to v10.2.6 on a Raspberry Pi. Thanks to you OEM guys there is an export backup script that can be run from the Admin webpage or from an SSH terminal with the command … ./opt/emoncms/modules/backup/emoncms-export.sh This saves the backup to the SDHC. I’ve taken it a bit further by then copying the backup to a USB flash drive. Excuse any verbosity as I…

Going further (as I do) it is possible to have a second Raspberry Pi on the local network (hardwired) that receives the data from the first RPi. This adds a further level of backup protection.

Also I can envisage a script (using nmap?) running on the second RPi that periodically checks for the WiFi connected first RPi and sends an email if it’s not found on the network.

By sheer coincidence, I’ve recently posted to a thread re: sending emails:

> [@Alerts sending issue to an email from local host emoncms](https://community.openenergymonitor.org/t/alerts-sending-issue-to-an-email-from-local-host-emoncms/16316):
>
> I am struggling with sending email alerts (to an email address) for specific cases from my logs in emoncms. Any help in this regard would be appreciated.

Hope some of this may help

---

_[View the full topic](https://community.openenergymonitor.org/t/cant-connect-to-emoncms-local/16287)._
